All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] [PATCH] kernel/drivers/net/drivers/fec: fix compile-time errors
@ 2016-01-25  7:50 LOYAU, Florian
  2016-01-25  8:28 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 2+ messages in thread
From: LOYAU, Florian @ 2016-01-25  7:50 UTC (permalink / raw)
  To: xenomai

As requested by Gilles, here's a patch fixing minor build issues with the
FEC RTnet driver for i.MX platforms. This doesn't alter Kconfig, so doesn't
reenable building it, since I believe you guys will want to make sure
everything works right before then.

Be aware that as i mentionned in the earlier mail, it doesn't seem to fully
work, as the device rx rtskb pool seems to run out after some time. However
we observed the same issues with different drivers, and they might just
have been fixed since then.

---
 kernel/drivers/net/drivers/fec.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/drivers/net/drivers/fec.c
b/kernel/drivers/net/drivers/fec.c
index 290b765..753dab7 100644
--- a/kernel/drivers/net/drivers/fec.c
+++ b/kernel/drivers/net/drivers/fec.c
@@ -1047,7 +1047,7 @@ static int fec_enet_mii_probe(struct rtnet_device
*ndev)

        snprintf(phy_name, sizeof(phy_name), PHY_ID_FMT, mdio_bus_id,
phy_id);
        /* attach the mac to the phy using the dummy linux netdev */
-       phy_dev = phy_connect(fep->netdev, phy_name, &fec_enet_adjust_link,
0,
+       phy_dev = phy_connect(fep->netdev, phy_name, &fec_enet_adjust_link,
/* 0, */
                              fep->phy_interface);
        if (IS_ERR(phy_dev)) {
                printk(KERN_ERR "%s: could not attach to PHY\n",
ndev->name);
@@ -1266,7 +1266,7 @@ static int fec_enet_alloc_buffers(struct rtnet_device
*ndev)

        bdp = fep->rx_bd_base;
        for (i = 0; i < RX_RING_SIZE; i++) {
-               skb = rtnetdev_alloc_rtskb(netdev, FEC_ENET_RX_FRSIZE); /*
RTnet */
+               skb = rtnetdev_alloc_rtskb(ndev, FEC_ENET_RX_FRSIZE); /*
RTnet */
                if (!skb) {
                        fec_enet_free_buffers(ndev);
                        return -ENOMEM;
--
1.7.10.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-01-25  8:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-25  7:50 [Xenomai] [PATCH] kernel/drivers/net/drivers/fec: fix compile-time errors LOYAU, Florian
2016-01-25  8:28 ` Gilles Chanteperdrix

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.