lkml.org 
[lkml]   [2014]   [Oct]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v3 09/15] net: dsa: Add support for switch EEPROM access
    > +static int dsa_slave_get_eeprom_len(struct net_device *dev)
    > +{
    > + struct dsa_slave_priv *p = netdev_priv(dev);
    > + struct dsa_switch *ds = p->parent;
    > +
    > + if (ds->pd->eeprom_len)
    > + return ds->pd->eeprom_len;
    > +
    > + if (ds->drv->get_eeprom_len)
    > + return ds->drv->get_eeprom_len(ds);
    > +
    > + return 0;
    > +}
    > +

    Hi Guenter

    I just started doing some testing with this patchset. A bit late since
    David just accepted it, but...

    root@dir665:~# ethtool -e lan4
    Cannot get EEPROM data: Invalid argument
    root@dir665:~# ethtool -e eth0
    Cannot get EEPROM data: Operation not supported

    There is no eeprom for the hardware i'm testing. Operation not
    supported seems like a better error code and Invalid argument, and is
    what other network drivers i tried returned.

    Andrew


    \
     
     \ /
      Last update: 2014-10-30 22:41    [W:4.490 / U:0.092 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site