Re: [PATCH 2/2] net/smsc911x: Move interrupt allocation to open/stop

2016-09-01 Thread Andrew Lunn
On Thu, Sep 01, 2016 at 01:47:44PM -0500, Jeremy Linton wrote: > Hi Andrew, > > Thanks for taking a look at this! > > On 09/01/2016 12:06 PM, Andrew Lunn wrote: > >Hi Jeremy > > > >Please don't add forward references. Move the function earlier in the > >file. > > Ok, but I thought it was a

Re: [PATCH 2/2] net/smsc911x: Move interrupt allocation to open/stop

2016-09-01 Thread Andrew Lunn
Hi Jeremy Please don't add forward references. Move the function earlier in the file. > static inline u32 __smsc911x_reg_read(struct smsc911x_data *pdata, u32 reg) > { > if (pdata->config.flags & SMSC911X_USE_32BIT) > @@ -1514,6 +1516,7 @@ static int smsc911x_open(struct net_device *dev)

Re: [PATCH 2/2] net/smsc911x: Move interrupt allocation to open/stop

2016-09-01 Thread Jeremy Linton
Hi Andrew, Thanks for taking a look at this! On 09/01/2016 12:06 PM, Andrew Lunn wrote: Hi Jeremy Please don't add forward references. Move the function earlier in the file. Ok, but I thought it was a fairly large move due to further dependent functions.. static inline u32 __s

Re: [PATCH 2/2] net/smsc911x: Move interrupt allocation to open/stop

2016-09-01 Thread Jeremy Linton
Hi, On 09/01/2016 02:45 PM, Andrew Lunn wrote: On Thu, Sep 01, 2016 at 01:47:44PM -0500, Jeremy Linton wrote: Hi Andrew, Thanks for taking a look at this! On 09/01/2016 12:06 PM, Andrew Lunn wrote: Hi Jeremy Please don't add forward references. Move the function earlier in the file.

[PATCH 2/2] net/smsc911x: Move interrupt allocation to open/stop

2016-09-01 Thread Jeremy Linton
The /proc/irq/xx information is incorrect for smsc911x because the request_irq is happening before the register_netdev has the proper device name. Moving it to the open also fixes the case of when the device is renamed. Reported-by: Will Deacon Signed-off-by: Jeremy Linton --- drivers/net/ether