Re: [PATCH] sh_eth: add wake-on-lan support via magic packet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Simon,

Thanks for your feedback.

On 2016-12-08 14:22:44 +0100, Simon Horman wrote:

<snip>

> > > 
> > > > --- a/drivers/net/ethernet/renesas/sh_eth.h
> > > > +++ b/drivers/net/ethernet/renesas/sh_eth.h
> > > > @@ -493,6 +493,7 @@ struct sh_eth_cpu_data {
> > > >         unsigned shift_rd0:1;   /* shift Rx descriptor word 0 right by 16 */
> > > >         unsigned rmiimode:1;    /* EtherC has RMIIMODE register */
> > > >         unsigned rtrate:1;      /* EtherC has RTRATE register */
> > > > +       unsigned magic:1;       /* EtherC have PMDE in ECMR and MPDIP in ECSIPR */
> > > 
> > > Instead of adding a new flag, perhaps you can just check for the ECSR_MPD flag
> > > in ecsr_value?
> > 
> > I briefly considered this but decided against it since I do not have 
> > documentation for all versions of the device and no way to test it. You 
> > tested and confirmed functionality on r8a7740, which leaves:
> > 
> > - sh7734-gether
> > - sh7763-gether
> > - sh7757-gether
> > 
> > To figure out if they support MagicPacket in the same fashion as r8a7740 
> > and r8a779x. If anyone have access to documentation or hardware to 
> > confirm this I be more then happy to get rid of the magic flag in favor 
> > och checking for ECSR_MPD in ecsr_value.
> 
> Perhaps documentation can be found but if not I wonder if we can use some
> other mechanism to blacklist SoC which we are unsure about.
> 
> From my POV it would be very nice if things just worked™ on SoCs where
> the feature has been verified.

I agree, I will follow Sergies advice and Geerts testing to enable Gen2 
family and r8a7740/armadillo in two separate patches. Then if we later 
can confirm it works on other models we can enable them in separate 
patches by setting the magic flag in struct sh_eth_cpu_data for those 
models. Do you agree this is the best way to handle this?

-- 
Regards,
Niklas Söderlund



[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux