Re: [PATCH v5] ethernet/arc/arc_emac - Add new driver

From: Alexey Brodkin
Date: Thu Jun 20 2013 - 07:23:30 EST


On 06/20/2013 02:37 PM, Florian Fainelli wrote:
> 2013/6/20 Alexey Brodkin <Alexey.Brodkin@xxxxxxxxxxxx>:
>> On 06/20/2013 01:57 PM, Florian Fainelli wrote:
>>> 2013/6/20 Alexey Brodkin <Alexey.Brodkin@xxxxxxxxxxxx>:
[]

> No, it would be c0fc2000, which is, so we are just fine. Drivers that
> support DT instantiation or platform_device/driver should in general
> use <pdev->name>-<pdev->id> which works fine in both cases.
Ok, I see now.

"pdev->name" indeed leads to "bus->id" = "c0fc2000.etherne".
Initially I thought about "pdev->dev.of_node->name" because I passed
"pdev->dev.of_node" to "arc_mdio_probe".

Thanks for clarification.

-Alexey
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/