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 = _data}, > > + { .compatible = "mediatek,mt7623-eth", .data = _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 = _data}, > + { .compatible = "mediatek,mt7623-eth", .data = _data}, > {}, Hi Sean The binding document also lists

[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