net: smc911x: Determine bus width at runtime
authorAndre Przywara <andre.przywara@arm.com>
Mon, 28 Jun 2021 13:30:31 +0000 (14:30 +0100)
committerRamon Fried <rfried.dev@gmail.com>
Tue, 6 Jul 2021 02:22:41 +0000 (05:22 +0300)
commitc08d4d792a099b3cdd4e726de89e9c6c0f0b4881
treee105ea16cb6defa9e80ef43160384a05c7d7c128
parentf26c9d7fedb6dce4dcd8f0e763adda707dcbeca6
net: smc911x: Determine bus width at runtime

The SMC911x Ethernet MACs can be integrated using a 16 or 32-bit bus.
The driver needs to know about this choice, which is the reason for us
having a Kconfig symbol for that.

Now this bus width is already described using a devicetree property, and
since the driver is DM compliant and is using the DT now, we should query
this at runtime. We leave the Kconfig choice around, in case the DT is
missing this property.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
drivers/net/smc911x.c