* [PATCH] net: smc91x: take into account register shift
@ 2016-09-25 21:00 Robert Jarzmik
2016-09-26 3:46 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Robert Jarzmik @ 2016-09-25 21:00 UTC (permalink / raw)
To: Nicolas Pitre, David S. Miller; +Cc: netdev, linux-kernel, Robert Jarzmik
This aligns smc91x with its cousin, namely smc911x.c.
This also allows the driver to run also in a device-tree based lubbock
board build, on which it was tested.
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
---
drivers/net/ethernet/smsc/smc91x.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/ethernet/smsc/smc91x.c b/drivers/net/ethernet/smsc/smc91x.c
index 726b80f45906..77ad2a3f59db 100644
--- a/drivers/net/ethernet/smsc/smc91x.c
+++ b/drivers/net/ethernet/smsc/smc91x.c
@@ -2316,6 +2316,9 @@ static int smc_drv_probe(struct platform_device *pdev)
} else {
lp->cfg.flags |= SMC91X_USE_16BIT;
}
+ if (!device_property_read_u32(&pdev->dev, "reg-shift",
+ &val))
+ lp->io_shift = val;
}
#endif
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] net: smc91x: take into account register shift
2016-09-25 21:00 [PATCH] net: smc91x: take into account register shift Robert Jarzmik
@ 2016-09-26 3:46 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2016-09-26 3:46 UTC (permalink / raw)
To: robert.jarzmik; +Cc: nico, netdev, linux-kernel
From: Robert Jarzmik <robert.jarzmik@free.fr>
Date: Sun, 25 Sep 2016 23:00:45 +0200
> This aligns smc91x with its cousin, namely smc911x.c.
> This also allows the driver to run also in a device-tree based lubbock
> board build, on which it was tested.
>
> Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Applied to net-next, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-09-26 3:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-25 21:00 [PATCH] net: smc91x: take into account register shift Robert Jarzmik
2016-09-26 3:46 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).