[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <FFCE9129-357E-4643-A350-9927A5AD5720@gmail.com>
Date: Tue, 29 Dec 2015 14:59:59 -0800
From: Florian Fainelli <f.fainelli@...il.com>
To: Xing Zheng <zhengxing@...k-chips.com>,
linux-rockchip@...ts.infradead.org
CC: heiko@...ech.de, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org,
Paul Gortmaker <paul.gortmaker@...driver.com>,
Geert Uytterhoeven <geert@...ux-m68k.org>, keescook@...gle.com,
leozwang@...gle.comi, davem@...emloft.net,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [RESEND PATCH v1 3/4] net: ethernet: arc: Add support emac for RK3036
On December 27, 2015 11:22:20 PM PST, Xing Zheng <zhengxing@...k-chips.com> wrote:
>The RK3036's GRFs offset are different with RK3066/RK3188, and need to
>set
>mac TX/RX clock before probe emac.
>
>Signed-off-by: Xing Zheng <zhengxing@...k-chips.com>
>---
<snip>
> };
>
> static const struct of_device_id emac_rockchip_dt_ids[] = {
>- { .compatible = "rockchip,rk3066-emac", .data =
>&emac_rockchip_dt_data[0] },
>- { .compatible = "rockchip,rk3188-emac", .data =
>&emac_rockchip_dt_data[1] },
>+ { .compatible = "rockchip,rk3036-emac", .data =
>&emac_rockchip_dt_data[0] },
>+ { .compatible = "rockchip,rk3066-emac", .data =
>&emac_rockchip_dt_data[1] },
>+ { .compatible = "rockchip,rk3188-emac", .data =
>&emac_rockchip_dt_data[2] },
> { /* Sentinel */ }
Food for thought, you might want to use an enum here to index emac_rockchip_dt_data which would be less error prone if you add/remove entries in this structure.
--
Florian
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists