* fixed phy support (warning related to FIXED_MII_100_FDX) @ 2008-01-21 19:19 Kumar Gala 2008-01-21 20:49 ` [PATCH] [NET] cpmac: convert to new Fixed PHY infrastructure (was: Re: fixed phy support (warning related to FIXED_MII_100_FDX)) Anton Vorontsov 0 siblings, 1 reply; 8+ messages in thread From: Kumar Gala @ 2008-01-21 19:19 UTC (permalink / raw) To: Anton Vorontsov; +Cc: linuxppc-dev list Anton, it looks like the "TI AR7 CPMAC Ethernet support" uses FIXED_PHY and was selecting FIXED_MII_100_FDX which is gone. Can you look into this. I get the following warning now: scripts/kconfig/conf -s arch/powerpc/Kconfig drivers/net/Kconfig:1713:warning: 'select' used by config symbol 'CPMAC' refers to undefined symbol 'FIXED_MII_100_FDX' - k ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH] [NET] cpmac: convert to new Fixed PHY infrastructure (was: Re: fixed phy support (warning related to FIXED_MII_100_FDX)) 2008-01-21 19:19 fixed phy support (warning related to FIXED_MII_100_FDX) Kumar Gala @ 2008-01-21 20:49 ` Anton Vorontsov 2008-01-30 16:35 ` Kumar Gala ` (2 more replies) 0 siblings, 3 replies; 8+ messages in thread From: Anton Vorontsov @ 2008-01-21 20:49 UTC (permalink / raw) To: Kumar Gala; +Cc: linuxppc-dev list, Eugene Konev, Jeff Garzik, netdev On Mon, Jan 21, 2008 at 01:19:41PM -0600, Kumar Gala wrote: > Anton, > > it looks like the "TI AR7 CPMAC Ethernet support" uses FIXED_PHY and > was selecting FIXED_MII_100_FDX which is gone. > > Can you look into this. I get the following warning now: > > scripts/kconfig/conf -s arch/powerpc/Kconfig > drivers/net/Kconfig:1713:warning: 'select' used by config symbol > 'CPMAC' refers to undefined symbol 'FIXED_MII_100_FDX' Wow. I thought there were no Fixed PHY users. :-) Jeff, as you've already Acked Fixed PHY rework to go through powerpc tree, would you please Ack this patch in addition? I hope cpmac maintainer will fix remaining issues as time goes by. Thanks! - - - - From: Anton Vorontsov <avorontsov@ru.mvista.com> Subject: [PATCH] [NET] cpmac: convert to new Fixed PHY infrastructure This patch converts cpmac to the new Fixed PHY infrastructure, though it doesn't fix all the problems with that driver. I didn't even bother to test this patch to compile, because cpmac driver is broken in several ways: 1. This driver won't compile by itself because lack of its header describing platform data; 2. It assumes that fixed PHYs should be created by the ethernet driver. It is wrong assumption: fixed PHYs creation is platform code authority, driver must blindly accept bus_id and phy_id platform data variables instead. Also, it seem that that driver doesn't have actual in-tree users, so nothing to fix further. The main purpose of that patch is to get rid of the following Kconfig warning: scripts/kconfig/conf -s arch/powerpc/Kconfig drivers/net/Kconfig:1713:warning: 'select' used by config symbol 'CPMAC' refers to undefined symbol 'FIXED_MII_100_FDX' Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> --- drivers/net/Kconfig | 4 +-- drivers/net/cpmac.c | 55 ++++++++++++++++---------------------------------- 2 files changed, 19 insertions(+), 40 deletions(-) diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 114771a..5380ff9 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -1707,10 +1707,8 @@ config SC92031 config CPMAC tristate "TI AR7 CPMAC Ethernet support (EXPERIMENTAL)" - depends on NET_ETHERNET && EXPERIMENTAL && AR7 + depends on NET_ETHERNET && EXPERIMENTAL && AR7 && BROKEN select PHYLIB - select FIXED_PHY - select FIXED_MII_100_FDX help TI AR7 CPMAC Ethernet support diff --git a/drivers/net/cpmac.c b/drivers/net/cpmac.c index 6fd95a2..88eeb1d 100644 --- a/drivers/net/cpmac.c +++ b/drivers/net/cpmac.c @@ -848,15 +848,6 @@ static void cpmac_adjust_link(struct net_device *dev) spin_unlock(&priv->lock); } -static int cpmac_link_update(struct net_device *dev, - struct fixed_phy_status *status) -{ - status->link = 1; - status->speed = 100; - status->duplex = 1; - return 0; -} - static int cpmac_open(struct net_device *dev) { int i, size, res; @@ -999,11 +990,11 @@ static int external_switch; static int __devinit cpmac_probe(struct platform_device *pdev) { int rc, phy_id, i; + int mdio_bus_id = cpmac_mii.id; struct resource *mem; struct cpmac_priv *priv; struct net_device *dev; struct plat_cpmac_data *pdata; - struct fixed_info *fixed_phy; DECLARE_MAC_BUF(mac); pdata = pdev->dev.platform_data; @@ -1017,9 +1008,23 @@ static int __devinit cpmac_probe(struct platform_device *pdev) } if (phy_id == PHY_MAX_ADDR) { - if (external_switch || dumb_switch) + if (external_switch || dumb_switch) { + struct fixed_phy_status status = {}; + + mdio_bus_id = 0; + + /* + * FIXME: this should be in the platform code! + * Since there is not platform code at all (that is, + * no mainline users of that driver), place it here + * for now. + */ phy_id = 0; - else { + status.link = 1; + status.duplex = 1; + status.speed = 100; + fixed_phy_add(PHY_POLL, phy_id, &status); + } else { printk(KERN_ERR "cpmac: no PHY present\n"); return -ENODEV; } @@ -1063,32 +1068,8 @@ static int __devinit cpmac_probe(struct platform_device *pdev) priv->msg_enable = netif_msg_init(debug_level, 0xff); memcpy(dev->dev_addr, pdata->dev_addr, sizeof(dev->dev_addr)); - if (phy_id == 31) { - snprintf(priv->phy_name, BUS_ID_SIZE, PHY_ID_FMT, cpmac_mii.id, - phy_id); - } else { - /* Let's try to get a free fixed phy... */ - for (i = 0; i < MAX_PHY_AMNT; i++) { - fixed_phy = fixed_mdio_get_phydev(i); - if (!fixed_phy) - continue; - if (!fixed_phy->phydev->attached_dev) { - strncpy(priv->phy_name, - fixed_phy->phydev->dev.bus_id, - BUS_ID_SIZE); - fixed_mdio_set_link_update(fixed_phy->phydev, - &cpmac_link_update); - goto phy_found; - } - } - if (netif_msg_drv(priv)) - printk(KERN_ERR "%s: Could not find fixed PHY\n", - dev->name); - rc = -ENODEV; - goto fail; - } + snprintf(priv->phy_name, BUS_ID_SIZE, PHY_ID_FMT, mdio_bus_id, phy_id); -phy_found: priv->phy = phy_connect(dev, priv->phy_name, &cpmac_adjust_link, 0, PHY_INTERFACE_MODE_MII); if (IS_ERR(priv->phy)) { -- 1.5.2.2 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] [NET] cpmac: convert to new Fixed PHY infrastructure (was: Re: fixed phy support (warning related to FIXED_MII_100_FDX)) 2008-01-21 20:49 ` [PATCH] [NET] cpmac: convert to new Fixed PHY infrastructure (was: Re: fixed phy support (warning related to FIXED_MII_100_FDX)) Anton Vorontsov @ 2008-01-30 16:35 ` Kumar Gala 2008-01-30 17:09 ` [PATCH] [NET] cpmac: convert to new Fixed PHY infrastructure Jeff Garzik 2008-01-31 4:30 ` [PATCH] [NET] cpmac: convert to new Fixed PHY infrastructure (was: Re: fixed phy support (warning related to FIXED_MII_100_FDX)) Kumar Gala 2 siblings, 0 replies; 8+ messages in thread From: Kumar Gala @ 2008-01-30 16:35 UTC (permalink / raw) To: Jeff Garzik; +Cc: linuxppc-dev list, Eugene Konev, netdev On Jan 21, 2008, at 2:49 PM, Anton Vorontsov wrote: > On Mon, Jan 21, 2008 at 01:19:41PM -0600, Kumar Gala wrote: >> Anton, >> >> it looks like the "TI AR7 CPMAC Ethernet support" uses FIXED_PHY and >> was selecting FIXED_MII_100_FDX which is gone. >> >> Can you look into this. I get the following warning now: >> >> scripts/kconfig/conf -s arch/powerpc/Kconfig >> drivers/net/Kconfig:1713:warning: 'select' used by config symbol >> 'CPMAC' refers to undefined symbol 'FIXED_MII_100_FDX' > > Wow. I thought there were no Fixed PHY users. :-) > > Jeff, as you've already Acked Fixed PHY rework to go through powerpc > tree, would you please Ack this patch in addition? I hope cpmac > maintainer will fix remaining issues as time goes by. > > Thanks! Jeff, just a reminder to look at this. - k > - - - - > From: Anton Vorontsov <avorontsov@ru.mvista.com> > Subject: [PATCH] [NET] cpmac: convert to new Fixed PHY infrastructure > > This patch converts cpmac to the new Fixed PHY infrastructure, > though it > doesn't fix all the problems with that driver. I didn't even bother to > test this patch to compile, because cpmac driver is broken in > several ways: > > 1. This driver won't compile by itself because lack of its header > describing > platform data; > 2. It assumes that fixed PHYs should be created by the ethernet > driver. > It is wrong assumption: fixed PHYs creation is platform code > authority, > driver must blindly accept bus_id and phy_id platform data variables > instead. > > Also, it seem that that driver doesn't have actual in-tree users, so > nothing to fix further. > > The main purpose of that patch is to get rid of the following Kconfig > warning: > > scripts/kconfig/conf -s arch/powerpc/Kconfig > drivers/net/Kconfig:1713:warning: 'select' used by config symbol > 'CPMAC' refers to undefined symbol 'FIXED_MII_100_FDX' > > Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> > --- > drivers/net/Kconfig | 4 +-- > drivers/net/cpmac.c | 55 +++++++++++++++ > +---------------------------------- > 2 files changed, 19 insertions(+), 40 deletions(-) > > diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig > index 114771a..5380ff9 100644 > --- a/drivers/net/Kconfig > +++ b/drivers/net/Kconfig > @@ -1707,10 +1707,8 @@ config SC92031 > > config CPMAC > tristate "TI AR7 CPMAC Ethernet support (EXPERIMENTAL)" > - depends on NET_ETHERNET && EXPERIMENTAL && AR7 > + depends on NET_ETHERNET && EXPERIMENTAL && AR7 && BROKEN > select PHYLIB > - select FIXED_PHY > - select FIXED_MII_100_FDX > help > TI AR7 CPMAC Ethernet support > > diff --git a/drivers/net/cpmac.c b/drivers/net/cpmac.c > index 6fd95a2..88eeb1d 100644 > --- a/drivers/net/cpmac.c > +++ b/drivers/net/cpmac.c > @@ -848,15 +848,6 @@ static void cpmac_adjust_link(struct net_device > *dev) > spin_unlock(&priv->lock); > } > > -static int cpmac_link_update(struct net_device *dev, > - struct fixed_phy_status *status) > -{ > - status->link = 1; > - status->speed = 100; > - status->duplex = 1; > - return 0; > -} > - > static int cpmac_open(struct net_device *dev) > { > int i, size, res; > @@ -999,11 +990,11 @@ static int external_switch; > static int __devinit cpmac_probe(struct platform_device *pdev) > { > int rc, phy_id, i; > + int mdio_bus_id = cpmac_mii.id; > struct resource *mem; > struct cpmac_priv *priv; > struct net_device *dev; > struct plat_cpmac_data *pdata; > - struct fixed_info *fixed_phy; > DECLARE_MAC_BUF(mac); > > pdata = pdev->dev.platform_data; > @@ -1017,9 +1008,23 @@ static int __devinit cpmac_probe(struct > platform_device *pdev) > } > > if (phy_id == PHY_MAX_ADDR) { > - if (external_switch || dumb_switch) > + if (external_switch || dumb_switch) { > + struct fixed_phy_status status = {}; > + > + mdio_bus_id = 0; > + > + /* > + * FIXME: this should be in the platform code! > + * Since there is not platform code at all (that is, > + * no mainline users of that driver), place it here > + * for now. > + */ > phy_id = 0; > - else { > + status.link = 1; > + status.duplex = 1; > + status.speed = 100; > + fixed_phy_add(PHY_POLL, phy_id, &status); > + } else { > printk(KERN_ERR "cpmac: no PHY present\n"); > return -ENODEV; > } > @@ -1063,32 +1068,8 @@ static int __devinit cpmac_probe(struct > platform_device *pdev) > priv->msg_enable = netif_msg_init(debug_level, 0xff); > memcpy(dev->dev_addr, pdata->dev_addr, sizeof(dev->dev_addr)); > > - if (phy_id == 31) { > - snprintf(priv->phy_name, BUS_ID_SIZE, PHY_ID_FMT, cpmac_mii.id, > - phy_id); > - } else { > - /* Let's try to get a free fixed phy... */ > - for (i = 0; i < MAX_PHY_AMNT; i++) { > - fixed_phy = fixed_mdio_get_phydev(i); > - if (!fixed_phy) > - continue; > - if (!fixed_phy->phydev->attached_dev) { > - strncpy(priv->phy_name, > - fixed_phy->phydev->dev.bus_id, > - BUS_ID_SIZE); > - fixed_mdio_set_link_update(fixed_phy->phydev, > - &cpmac_link_update); > - goto phy_found; > - } > - } > - if (netif_msg_drv(priv)) > - printk(KERN_ERR "%s: Could not find fixed PHY\n", > - dev->name); > - rc = -ENODEV; > - goto fail; > - } > + snprintf(priv->phy_name, BUS_ID_SIZE, PHY_ID_FMT, mdio_bus_id, > phy_id); > > -phy_found: > priv->phy = phy_connect(dev, priv->phy_name, &cpmac_adjust_link, 0, > PHY_INTERFACE_MODE_MII); > if (IS_ERR(priv->phy)) { > -- > 1.5.2.2 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] [NET] cpmac: convert to new Fixed PHY infrastructure 2008-01-21 20:49 ` [PATCH] [NET] cpmac: convert to new Fixed PHY infrastructure (was: Re: fixed phy support (warning related to FIXED_MII_100_FDX)) Anton Vorontsov 2008-01-30 16:35 ` Kumar Gala @ 2008-01-30 17:09 ` Jeff Garzik 2008-01-30 17:24 ` Kumar Gala 2008-01-31 4:30 ` [PATCH] [NET] cpmac: convert to new Fixed PHY infrastructure (was: Re: fixed phy support (warning related to FIXED_MII_100_FDX)) Kumar Gala 2 siblings, 1 reply; 8+ messages in thread From: Jeff Garzik @ 2008-01-30 17:09 UTC (permalink / raw) To: avorontsov; +Cc: linuxppc-dev list, Eugene Konev, netdev Anton Vorontsov wrote: > On Mon, Jan 21, 2008 at 01:19:41PM -0600, Kumar Gala wrote: >> Anton, >> >> it looks like the "TI AR7 CPMAC Ethernet support" uses FIXED_PHY and >> was selecting FIXED_MII_100_FDX which is gone. >> >> Can you look into this. I get the following warning now: >> >> scripts/kconfig/conf -s arch/powerpc/Kconfig >> drivers/net/Kconfig:1713:warning: 'select' used by config symbol >> 'CPMAC' refers to undefined symbol 'FIXED_MII_100_FDX' > > Wow. I thought there were no Fixed PHY users. :-) > > Jeff, as you've already Acked Fixed PHY rework to go through powerpc > tree, would you please Ack this patch in addition? I hope cpmac > maintainer will fix remaining issues as time goes by. > > Thanks! > > - - - - > From: Anton Vorontsov <avorontsov@ru.mvista.com> > Subject: [PATCH] [NET] cpmac: convert to new Fixed PHY infrastructure > > This patch converts cpmac to the new Fixed PHY infrastructure, though it > doesn't fix all the problems with that driver. I didn't even bother to > test this patch to compile, because cpmac driver is broken in several ways: > > 1. This driver won't compile by itself because lack of its header describing > platform data; > 2. It assumes that fixed PHYs should be created by the ethernet driver. > It is wrong assumption: fixed PHYs creation is platform code authority, > driver must blindly accept bus_id and phy_id platform data variables > instead. > > Also, it seem that that driver doesn't have actual in-tree users, so > nothing to fix further. > > The main purpose of that patch is to get rid of the following Kconfig > warning: > > scripts/kconfig/conf -s arch/powerpc/Kconfig > drivers/net/Kconfig:1713:warning: 'select' used by config symbol > 'CPMAC' refers to undefined symbol 'FIXED_MII_100_FDX' > > Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> ACK ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] [NET] cpmac: convert to new Fixed PHY infrastructure 2008-01-30 17:09 ` [PATCH] [NET] cpmac: convert to new Fixed PHY infrastructure Jeff Garzik @ 2008-01-30 17:24 ` Kumar Gala 2008-01-30 17:40 ` Jeff Garzik 0 siblings, 1 reply; 8+ messages in thread From: Kumar Gala @ 2008-01-30 17:24 UTC (permalink / raw) To: Jeff Garzik; +Cc: linuxppc-dev list, Eugene Konev, netdev On Jan 30, 2008, at 11:09 AM, Jeff Garzik wrote: > Anton Vorontsov wrote: >> On Mon, Jan 21, 2008 at 01:19:41PM -0600, Kumar Gala wrote: >>> Anton, >>> >>> it looks like the "TI AR7 CPMAC Ethernet support" uses FIXED_PHY >>> and was selecting FIXED_MII_100_FDX which is gone. >>> >>> Can you look into this. I get the following warning now: >>> >>> scripts/kconfig/conf -s arch/powerpc/Kconfig >>> drivers/net/Kconfig:1713:warning: 'select' used by config symbol >>> 'CPMAC' refers to undefined symbol 'FIXED_MII_100_FDX' >> Wow. I thought there were no Fixed PHY users. :-) >> Jeff, as you've already Acked Fixed PHY rework to go through powerpc >> tree, would you please Ack this patch in addition? I hope cpmac >> maintainer will fix remaining issues as time goes by. >> Thanks! >> - - - - >> From: Anton Vorontsov <avorontsov@ru.mvista.com> >> Subject: [PATCH] [NET] cpmac: convert to new Fixed PHY infrastructure >> This patch converts cpmac to the new Fixed PHY infrastructure, >> though it >> doesn't fix all the problems with that driver. I didn't even bother >> to >> test this patch to compile, because cpmac driver is broken in >> several ways: >> 1. This driver won't compile by itself because lack of its header >> describing >> platform data; >> 2. It assumes that fixed PHYs should be created by the ethernet >> driver. >> It is wrong assumption: fixed PHYs creation is platform code >> authority, >> driver must blindly accept bus_id and phy_id platform data >> variables >> instead. >> Also, it seem that that driver doesn't have actual in-tree users, so >> nothing to fix further. >> The main purpose of that patch is to get rid of the following Kconfig >> warning: >> scripts/kconfig/conf -s arch/powerpc/Kconfig >> drivers/net/Kconfig:1713:warning: 'select' used by config symbol >> 'CPMAC' refers to undefined symbol 'FIXED_MII_100_FDX' >> Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> > > ACK Is this going through netdev or do you want me to pick it via the powerpc route? - k ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] [NET] cpmac: convert to new Fixed PHY infrastructure 2008-01-30 17:24 ` Kumar Gala @ 2008-01-30 17:40 ` Jeff Garzik 2008-01-30 18:36 ` Kumar Gala 0 siblings, 1 reply; 8+ messages in thread From: Jeff Garzik @ 2008-01-30 17:40 UTC (permalink / raw) To: Kumar Gala; +Cc: linuxppc-dev list, Eugene Konev, netdev Kumar Gala wrote: > > On Jan 30, 2008, at 11:09 AM, Jeff Garzik wrote: > >> Anton Vorontsov wrote: >>> On Mon, Jan 21, 2008 at 01:19:41PM -0600, Kumar Gala wrote: >>>> Anton, >>>> >>>> it looks like the "TI AR7 CPMAC Ethernet support" uses FIXED_PHY >>>> and was selecting FIXED_MII_100_FDX which is gone. >>>> >>>> Can you look into this. I get the following warning now: >>>> >>>> scripts/kconfig/conf -s arch/powerpc/Kconfig >>>> drivers/net/Kconfig:1713:warning: 'select' used by config symbol >>>> 'CPMAC' refers to undefined symbol 'FIXED_MII_100_FDX' >>> Wow. I thought there were no Fixed PHY users. :-) >>> Jeff, as you've already Acked Fixed PHY rework to go through powerpc >>> tree, would you please Ack this patch in addition? I hope cpmac >>> maintainer will fix remaining issues as time goes by. >>> Thanks! >>> - - - - >>> From: Anton Vorontsov <avorontsov@ru.mvista.com> >>> Subject: [PATCH] [NET] cpmac: convert to new Fixed PHY infrastructure >>> This patch converts cpmac to the new Fixed PHY infrastructure, though it >>> doesn't fix all the problems with that driver. I didn't even bother to >>> test this patch to compile, because cpmac driver is broken in several >>> ways: >>> 1. This driver won't compile by itself because lack of its header >>> describing >>> platform data; >>> 2. It assumes that fixed PHYs should be created by the ethernet driver. >>> It is wrong assumption: fixed PHYs creation is platform code >>> authority, >>> driver must blindly accept bus_id and phy_id platform data variables >>> instead. >>> Also, it seem that that driver doesn't have actual in-tree users, so >>> nothing to fix further. >>> The main purpose of that patch is to get rid of the following Kconfig >>> warning: >>> scripts/kconfig/conf -s arch/powerpc/Kconfig >>> drivers/net/Kconfig:1713:warning: 'select' used by config symbol >>> 'CPMAC' refers to undefined symbol 'FIXED_MII_100_FDX' >>> Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> >> >> ACK > > Is this going through netdev or do you want me to pick it via the > powerpc route? Based on your comments I sorta assumed it was most convenient to lump in with the rest of the powerpc changes... Jeff ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] [NET] cpmac: convert to new Fixed PHY infrastructure 2008-01-30 17:40 ` Jeff Garzik @ 2008-01-30 18:36 ` Kumar Gala 0 siblings, 0 replies; 8+ messages in thread From: Kumar Gala @ 2008-01-30 18:36 UTC (permalink / raw) To: Jeff Garzik; +Cc: linuxppc-dev list, Eugene Konev, netdev >>> Is this going through netdev or do you want me to pick it via the >>> powerpc route? > > Based on your comments I sorta assumed it was most convenient to > lump in with the rest of the powerpc changes... That's fine. I'll push it via the powerpc trees. - k ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] [NET] cpmac: convert to new Fixed PHY infrastructure (was: Re: fixed phy support (warning related to FIXED_MII_100_FDX)) 2008-01-21 20:49 ` [PATCH] [NET] cpmac: convert to new Fixed PHY infrastructure (was: Re: fixed phy support (warning related to FIXED_MII_100_FDX)) Anton Vorontsov 2008-01-30 16:35 ` Kumar Gala 2008-01-30 17:09 ` [PATCH] [NET] cpmac: convert to new Fixed PHY infrastructure Jeff Garzik @ 2008-01-31 4:30 ` Kumar Gala 2 siblings, 0 replies; 8+ messages in thread From: Kumar Gala @ 2008-01-31 4:30 UTC (permalink / raw) To: avorontsov; +Cc: linuxppc-dev list, Eugene Konev, Jeff Garzik, netdev > From: Anton Vorontsov <avorontsov@ru.mvista.com> > Subject: [PATCH] [NET] cpmac: convert to new Fixed PHY infrastructure > > This patch converts cpmac to the new Fixed PHY infrastructure, > though it > doesn't fix all the problems with that driver. I didn't even bother to > test this patch to compile, because cpmac driver is broken in > several ways: > > 1. This driver won't compile by itself because lack of its header > describing > platform data; > 2. It assumes that fixed PHYs should be created by the ethernet > driver. > It is wrong assumption: fixed PHYs creation is platform code > authority, > driver must blindly accept bus_id and phy_id platform data variables > instead. > > Also, it seem that that driver doesn't have actual in-tree users, so > nothing to fix further. > > The main purpose of that patch is to get rid of the following Kconfig > warning: > > scripts/kconfig/conf -s arch/powerpc/Kconfig > drivers/net/Kconfig:1713:warning: 'select' used by config symbol > 'CPMAC' refers to undefined symbol 'FIXED_MII_100_FDX' > > Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> > --- > drivers/net/Kconfig | 4 +-- > drivers/net/cpmac.c | 55 +++++++++++++++ > +---------------------------------- > 2 files changed, 19 insertions(+), 40 deletions(-) applied. - k ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-01-31 4:31 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-01-21 19:19 fixed phy support (warning related to FIXED_MII_100_FDX) Kumar Gala 2008-01-21 20:49 ` [PATCH] [NET] cpmac: convert to new Fixed PHY infrastructure (was: Re: fixed phy support (warning related to FIXED_MII_100_FDX)) Anton Vorontsov 2008-01-30 16:35 ` Kumar Gala 2008-01-30 17:09 ` [PATCH] [NET] cpmac: convert to new Fixed PHY infrastructure Jeff Garzik 2008-01-30 17:24 ` Kumar Gala 2008-01-30 17:40 ` Jeff Garzik 2008-01-30 18:36 ` Kumar Gala 2008-01-31 4:30 ` [PATCH] [NET] cpmac: convert to new Fixed PHY infrastructure (was: Re: fixed phy support (warning related to FIXED_MII_100_FDX)) Kumar Gala
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).