Re: [PATCH net-next v2 2/4] net-next: mediatek: add platform data to adapt into various hardware

2017-07-17 Thread Andrew Lunn
On Mon, Jul 17, 2017 at 03:43:09PM +0200, Andrew Lunn wrote: > > const struct of_device_id of_mtk_match[] = { > > - { .compatible = "mediatek,mt2701-eth" }, > > + { .compatible = "mediatek,mt2701-eth", .data = &mt2701_data}, > > + { .compatible = "mediatek,mt7623-eth", .data = &mt7623_data},

Re: [PATCH net-next v2 2/4] net-next: mediatek: add platform data to adapt into various hardware

2017-07-17 Thread Andrew Lunn
> const struct of_device_id of_mtk_match[] = { > - { .compatible = "mediatek,mt2701-eth" }, > + { .compatible = "mediatek,mt2701-eth", .data = &mt2701_data}, > + { .compatible = "mediatek,mt7623-eth", .data = &mt7623_data}, > {}, Hi Sean The binding document also lists "mediate

[PATCH net-next v2 2/4] net-next: mediatek: add platform data to adapt into various hardware

2017-07-17 Thread sean.wang
From: Sean Wang This patch is the preparation patch in order to adapt into various hardware through adding platform data which holds specific characteristics among MediaTek SoCs and introducing the unified clock handler for those distinct clock requirements depending on different features such as