[PATCH net 0/2] lan78xx: Fixes to lan78xx driver

2017-08-01 Thread Nisar.Sayed
From: Nisar Sayed This series of patches are for lan78xx driver. These patches fixes potential issues associated with lan78xx driver Nisar Sayed (2): USB fast connect/disconnect crash fix Fix to handle hard_header_len update drivers/net/usb/lan78xx.c | 18

[PATCH net 1/2] lan78xx: USB fast connect/disconnect crash fix

2017-08-01 Thread Nisar.Sayed
From: Nisar Sayed USB fast connect/disconnect crash fix When USB plugged/unplugged at fast rate, lan78xx_mdio_init() in lan78xx_bind() failing case is not handled. Whenever lan78xx_mdio_init() failed, dev->mdiobus will be freed, however since lan78xx_bind() not

[PATCH net 2/2] lan78xx: Fix to handle hard_header_len update

2017-08-01 Thread Nisar.Sayed
From: Nisar Sayed Fix to handle hard_header_len update When ifconfig up/down sequence is initiated hard_header_len get updated incrementally for each ifconfig up /down sequence, this leads invalid hard_header_len, moving to lan78xx_bind to have one time update of

RE: [PATCH v2 net] smsc95xx: Support only IPv4 TCP/UDP csum offload

2017-05-23 Thread Nisar.Sayed
> > When TX checksum offload is used, if the computed checksum is 0 the > > LAN95xx device do not alter the checksum to 0x. In the case of ipv4 > > UDP checksum, it indicates to receiver that no checksum is calculated. > > Under ipv6, UDP checksum yields a result of zero must be changed to >

[PATCH v2 net] smsc95xx: Support only IPv4 TCP/UDP csum offload

2017-05-19 Thread Nisar.Sayed
From: Nisar Sayed When TX checksum offload is used, if the computed checksum is 0 the LAN95xx device do not alter the checksum to 0x. In the case of ipv4 UDP checksum, it indicates to receiver that no checksum is calculated. Under ipv6, UDP checksum yields a

RE: [PATCH v4 net 2/3] lan78xx: Allow EEPROM write for less than MAX_EEPROM_SIZE

2017-09-20 Thread Nisar.Sayed
Thanks Sergei, I will update it and submit next version. - Nisar > Hello! > > On 09/19/2017 01:02 AM, Nisar Sayed wrote: > > > Allow EEPROM write for less than MAX_EEPROM_SIZE > > > > Fixes: 55d7de9de6c3 ("Microchip's LAN7800 family USB 2/3 to > > 10/100/1000 Ethernet device driver") > >

RE: [PATCH net] smsc95xx: Configure pause time to 0xffff when tx flow control enabled

2017-09-08 Thread Nisar.Sayed
> On Thu, Sep 07, 2017 at 06:51:37AM +, nisar.sa...@microchip.com > wrote: > > From: Nisar Sayed > > > > Configure pause time to 0x when tx flow control enabled > > Hi Nisar > > You should explain the 'Why' in the commit message. Why do we want a > pause time

RE: [PATCH 3/3] lan78xx: Use default value loaded from EEPROM/OTP when resetting

2017-09-08 Thread Nisar.Sayed
> On Thu, Sep 07, 2017 at 07:11:50AM +, nisar.sa...@microchip.com > wrote: > > From: Nisar Sayed > > > > Use default value loaded from EEPROM/OTP when resetting > > Hi Nisar > > Subject: [PATCH 3/3] > > Is this a fix for net, or further development for net-next?

[PATCH v1 net] smsc95xx: Configure pause time to 0xffff when tx flow control enabled

2017-09-11 Thread Nisar.Sayed
From: Nisar Sayed Configure pause time to 0x when tx flow control enabled Set pause time to 0x in the pause frame to indicate the partner to stop sending the packets. When RX buffer frees up, the device sends pause frame with pause time zero for partner to

[PATCH v2 net 2/3] lan78xx: Allow EEPROM write for less than MAX_EEPROM_SIZE

2017-09-11 Thread Nisar.Sayed
From: Nisar Sayed Allow EEPROM write for less than MAX_EEPROM_SIZE Fixes: 55d7de9de6c3 ("Microchip's LAN7800 family USB 2/3 to 10/100/1000 Ethernet device driver") Signed-off-by: Nisar Sayed --- drivers/net/usb/lan78xx.c | 4 ++-- 1 file

[PATCH v2 net 1/3] lan78xx: Fix for eeprom read/write when device auto suspend

2017-09-11 Thread Nisar.Sayed
From: Nisar Sayed Fix for eeprom read/write when device auto suspend Fixes: 55d7de9de6c3 ("Microchip's LAN7800 family USB 2/3 to 10/100/1000 Ethernet device driver") Signed-off-by: Nisar Sayed --- drivers/net/usb/lan78xx.c | 22

[PATCH v2 net 3/3] lan78xx: Use default value loaded from EEPROM/OTP when resetting

2017-09-11 Thread Nisar.Sayed
From: Nisar Sayed Use default value loaded from EEPROM/OTP when resetting The LAN78xx allows platform configurations to be loaded from EEPROM/OTP. Ex: When external phy is connected, the MAC can be configured to have speed, duplex, polarity configurations loadded from

[PATCH v2 net 0/3] lan78xx: Fixes to lan78xx driver

2017-09-11 Thread Nisar.Sayed
From: Nisar Sayed This series of patches are for lan78xx driver. These patches fixes potential issues associated with lan78xx driver v2 - Added patch version information - Added fixes tag - Updated patch description - Updated changes as per comments v1 - Spitted

RE: [PATCH v1 net] smsc95xx: Configure pause time to 0xffff when tx flow control enabled

2017-09-11 Thread Nisar.Sayed
> On Mon, Sep 11, 2017 at 12:32:10PM +, nisar.sa...@microchip.com > wrote: > > From: Nisar Sayed > > > > Configure pause time to 0x when tx flow control enabled > > > > Set pause time to 0x in the pause frame to indicate the partner to > > stop sending the

[PATCH v2 net] smsc95xx: Configure pause time to 0xffff when tx flow control enabled

2017-09-11 Thread Nisar.Sayed
From: Nisar Sayed Configure pause time to 0x when tx flow control enabled Set pause time to 0x in the pause frame to indicate the partner to stop sending the packets. When RX buffer frees up, the device sends pause frame with pause time zero for partner to

[PATCH net 1/4] lan78xx: Fix for crash associated with System suspend

2017-09-06 Thread Nisar.Sayed
From: Nisar Sayed Fix for crash associated with System suspend Since ndo_stop removes phydev which makes phydev NULL. Whenever system suspend is initiated or after "ifconfig down", if set_wol or get_wol is triggered phydev is NULL leads system crash. Hence

[PATCH net 0/4] lan78xx: Fixes and Enhancements to lan78xx driver

2017-09-06 Thread Nisar.Sayed
From: Nisar Sayed This series of patches are for lan78xx driver. These patches supports fixes and enhancements to lan78xx driver Nisar Sayed (4): Fix for crash associated with System suspend Add fixed_phy device support for LAN7801 device Fix for eeprom

[PATCH net 4/4] lan78xx: Use default value loaded from EEPROM/OTP when resetting the chip

2017-09-06 Thread Nisar.Sayed
From: Nisar Sayed Use default value loaded from EEPROM/OTP when resetting the chip Signed-off-by: Nisar Sayed --- drivers/net/usb/lan78xx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/usb/lan78xx.c

[PATCH net 2/4] lan78xx: Add fixed_phy device support for LAN7801 device

2017-09-06 Thread Nisar.Sayed
From: Nisar Sayed Add fixed_phy device support for LAN7801 device When LAN7801 device connected to PHY Device which does not have MDIO/MDC access, fixex_phy device will be added. Signed-off-by: Nisar Sayed --- drivers/net/usb/Kconfig |

[PATCH net 3/4] lan78xx: Fix for eeprom read/write when device autosuspend

2017-09-06 Thread Nisar.Sayed
From: Nisar Sayed Fix for eeprom read/write when device autosuspend Signed-off-by: Nisar Sayed --- drivers/net/usb/lan78xx.c | 26 ++ 1 file changed, 22 insertions(+), 4 deletions(-) diff --git

RE: [PATCH net 3/4] lan78xx: Fix for eeprom read/write when device autosuspend

2017-09-06 Thread Nisar.Sayed
Thanks, will make separate patch. > Hi Nisar > > > + else if ((ee->magic == LAN78XX_EEPROM_MAGIC) && > > +(ee->offset >= 0 && ee->offset < MAX_EEPROM_SIZE) && > > +(ee->len > 0 && (ee->offset + ee->len) <= > MAX_EEPROM_SIZE)) > > + ret =

RE: [PATCH net 2/4] lan78xx: Add fixed_phy device support for LAN7801 device

2017-09-06 Thread Nisar.Sayed
Thanks Andrew, will try to change as suggested. > On Wed, Sep 06, 2017 at 10:51:44AM +, nisar.sa...@microchip.com > wrote: > > From: Nisar Sayed > > > > Add fixed_phy device support for LAN7801 device > > > > When LAN7801 device connected to PHY Device which does

RE: [PATCH net 1/4] lan78xx: Fix for crash associated with System suspend

2017-09-06 Thread Nisar.Sayed
Thanks Andrew inputs. > On Wed, Sep 06, 2017 at 10:51:31AM +, nisar.sa...@microchip.com > wrote: > > From: Nisar Sayed > > > > Fix for crash associated with System suspend > > > > Since ndo_stop removes phydev which makes phydev NULL. > > Whenever system suspend

RE: [PATCH v2 net 1/3] lan78xx: Fix for eeprom read/write when device auto suspend

2017-09-12 Thread Nisar.Sayed
> > From: Nisar Sayed > > > > Fix for eeprom read/write when device auto suspend > > > > Fixes: 55d7de9de6c3 ("Microchip's LAN7800 family USB 2/3 to > > 10/100/1000 Ethernet device driver") > > Signed-off-by: Nisar Sayed > > --- > >

[PATCH net] smsc95xx: Configure pause time to 0xffff when tx flow control enabled

2017-09-07 Thread Nisar.Sayed
From: Nisar Sayed Configure pause time to 0x when tx flow control enabled Signed-off-by: Nisar Sayed --- drivers/net/usb/smsc95xx.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git

[PATCH net 1/3] lan78xx: Fix for eeprom read/write when device autosuspend

2017-09-07 Thread Nisar.Sayed
From: Nisar Sayed Fix for eeprom read/write when device autosuspend Signed-off-by: Nisar Sayed --- drivers/net/usb/lan78xx.c | 22 ++ 1 file changed, 18 insertions(+), 4 deletions(-) diff --git

[PATCH net 0/3] lan78xx: Fixes to lan78xx driver

2017-09-07 Thread Nisar.Sayed
From: Nisar Sayed This series of patches are for lan78xx driver. These patches fixes potential issues associated with lan78xx driver Nisar Sayed (3): Fix for eeprom read/write when device autosuspend Allow EEPROM write for less than MAX_EEPROM_SIZE Use default

[PATCH net 2/3] lan78xx: Allow EEPROM write for less than MAX_EEPROM_SIZE

2017-09-07 Thread Nisar.Sayed
From: Nisar Sayed Allow EEPROM write for less than MAX_EEPROM_SIZE Signed-off-by: Nisar Sayed --- drivers/net/usb/lan78xx.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c index

[PATCH 3/3] lan78xx: Use default value loaded from EEPROM/OTP when resetting

2017-09-07 Thread Nisar.Sayed
From: Nisar Sayed Use default value loaded from EEPROM/OTP when resetting Signed-off-by: Nisar Sayed --- drivers/net/usb/lan78xx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c

RE: [PATCH v1 net-next] microchip_t1: Add driver for Microchip LAN87XX T1 PHYs

2018-05-02 Thread Nisar.Sayed
Hi Florian > > diff --git a/drivers/net/phy/microchip_t1.c > > b/drivers/net/phy/microchip_t1.c new file mode 100644 index > > 000..1f6f299 > > --- /dev/null > > +++ b/drivers/net/phy/microchip_t1.c > > @@ -0,0 +1,88 @@ > > +/* SPDX-License-Identifier: GPL-2.0 */ > > This is not the

RE: [PATCH net-next] microchipT1phy: Add driver for Microchip LAN87XX T1 PHYs

2018-04-26 Thread Nisar.Sayed
Hi Andrew, > > Fine, will change the filename. > > > The reason for moving to separate file is that we have a series of > > T1 standard PHYs, which support cable diagnostics, signal quality > > indicator(SQI) and sleep and wakeup (TC10) support etc. we planned to > > keep all T1 standard PHYs

RE: [PATCH net-next] microchipT1phy: Add driver for Microchip LAN87XX T1 PHYs

2018-04-26 Thread Nisar.Sayed
Hi Florian > On 04/25/2018 11:49 AM, Nisar Sayed wrote: > > Add driver for Microchip LAN87XX T1 PHYs > > > > This patch support driver for Microchp T1 PHYs. > > There will be followup patches to this driver to support T1 PHY > > features such as cable diagnostics, signal quality indicator(SQI), >

RE: [PATCH] lan78xx: Connect phy early

2018-03-15 Thread Nisar.Sayed
Hi Alexander, Thanks for the patch. > @@ -2575,13 +2571,7 @@ static int lan78xx_stop(struct net_device *net) > if (timer_pending(>stat_monitor)) > del_timer_sync(>stat_monitor); > > - phy_unregister_fixup_for_uid(PHY_KSZ9031RNX, 0xfff0); > -

RE: [PATCH] lan78xx: Don't reset the interface on open

2018-04-10 Thread Nisar.Sayed
Thanks Phil, for identifying the issues. > - ret = lan78xx_reset(dev); > - if (ret < 0) > - goto done; > - > phy_start(net->phydev); > > netif_dbg(dev, ifup, dev->net, "phy initialised successfully"); > -- You may need to start the interrupts before "phy_start"

RE: [PATCH] lan78xx: Don't reset the interface on open

2018-04-11 Thread Nisar.Sayed
Hi Phil, > Hi Nisar, > > On 10/04/2018 15:16, nisar.sa...@microchip.com wrote: > > Thanks Phil, for identifying the issues. > > > >> - ret = lan78xx_reset(dev); > >> - if (ret < 0) > >> - goto done; > >> - > >>phy_start(net->phydev); > >> > >>netif_dbg(dev, ifup, dev->net,