RE: [PATCH] bnx2: turn off the network statck during initialization

2012-08-16 Thread Jiang Wang
: Thursday, August 16, 2012 3:28 PM To: Jiang Wang Cc: net...@vger.kernel.org; linux-kernel@vger.kernel.org; Chaitanya Lala; Francis St. Amant Subject: RE: [PATCH] bnx2: turn off the network statck during initialization On Thu, 2012-08-16 at 21:48 +, Jiang Wang wrote: > I see. I was confu

RE: [PATCH] bnx2: turn off the network statck during initialization

2012-08-16 Thread Michael Chan
On Thu, 2012-08-16 at 21:48 +, Jiang Wang wrote: > I see. I was confused by the name of bnx2_set_power_state() and > I think the PHY is actually powered up by bnx2_reset_nic, right? bnx2_init_phy() in bnx2_init_nic() will bring up the PHY if it is down. > > -- To unsubscribe from

RE: [PATCH] bnx2: turn off the network statck during initialization

2012-08-16 Thread Jiang Wang
On Thu, 2012-08-16 at 20:28 +, Jiang Wang wrote: > Also, I have another comment related to link state. > > Right now, the bnx2 driver powers up the device in bnx2_init_board(), > regardless the netif_carrier is on or off. We actually don't power up the device. bnx2_init_board() just

RE: [PATCH] bnx2: turn off the network statck during initialization

2012-08-16 Thread Ben Hutchings
On Thu, 2012-08-16 at 20:28 +, Jiang Wang wrote: [...] > Also, I have another comment related to link state. > > Right now, the bnx2 driver powers up the device in bnx2_init_board(), > regardless the netif_carrier is on or off. This may introduce > following inconsistent behaviors: > 1)

RE: [PATCH] bnx2: turn off the network statck during initialization

2012-08-16 Thread Michael Chan
On Thu, 2012-08-16 at 20:28 +, Jiang Wang wrote: > Also, I have another comment related to link state. > > Right now, the bnx2 driver powers up the device in bnx2_init_board(), > regardless the netif_carrier is on or off. We actually don't power up the device. bnx2_init_board() just probes

RE: [PATCH] bnx2: turn off the network statck during initialization

2012-08-16 Thread Jiang Wang
: Michael Chan [mailto:mc...@broadcom.com] Sent: Thursday, August 16, 2012 12:29 PM To: Jiang Wang Cc: net...@vger.kernel.org; linux-kernel@vger.kernel.org; Chaitanya Lala; Francis St. Amant Subject: RE: [PATCH] bnx2: turn off the network statck during initialization On Thu, 2012-08-16 at 19:15

RE: [PATCH] bnx2: turn off the network statck during initialization

2012-08-16 Thread Michael Chan
Original Message- > From: Michael Chan [mailto:mc...@broadcom.com] > Sent: Thursday, August 16, 2012 11:57 AM > To: Jiang Wang > Cc: net...@vger.kernel.org; linux-kernel@vger.kernel.org; Chaitanya Lala; > Francis St. Amant; Jiang Wang > Subject: Re: [PATCH] bnx2: turn off the n

RE: [PATCH] bnx2: turn off the network statck during initialization

2012-08-16 Thread Jiang Wang
cis St. Amant; Jiang Wang Subject: Re: [PATCH] bnx2: turn off the network statck during initialization On Thu, 2012-08-16 at 11:21 -0700, Jiang Wang wrote: > The initialization state of bnx2 driver is wrong. It does not turn of > the Linux network stack using netif_carrier_off. T

Re: [PATCH] bnx2: turn off the network statck during initialization

2012-08-16 Thread Michael Chan
On Thu, 2012-08-16 at 11:21 -0700, Jiang Wang wrote: > The initialization state of bnx2 driver is wrong. It does not turn > of the Linux network stack using netif_carrier_off. This may lead to > inconsistent report from ethtool as the link is up but speed is > unknown when the cable is not

[PATCH] bnx2: turn off the network statck during initialization

2012-08-16 Thread Jiang Wang
The initialization state of bnx2 driver is wrong. It does not turn of the Linux network stack using netif_carrier_off. This may lead to inconsistent report from ethtool as the link is up but speed is unknown when the cable is not plugged in. E.g. Speed: Unknown!

[PATCH] bnx2: turn off the network statck during initialization

2012-08-16 Thread Jiang Wang
The initialization state of bnx2 driver is wrong. It does not turn of the Linux network stack using netif_carrier_off. This may lead to inconsistent report from ethtool as the link is up but speed is unknown when the cable is not plugged in. E.g. Speed: Unknown!

Re: [PATCH] bnx2: turn off the network statck during initialization

2012-08-16 Thread Michael Chan
On Thu, 2012-08-16 at 11:21 -0700, Jiang Wang wrote: The initialization state of bnx2 driver is wrong. It does not turn of the Linux network stack using netif_carrier_off. This may lead to inconsistent report from ethtool as the link is up but speed is unknown when the cable is not plugged

RE: [PATCH] bnx2: turn off the network statck during initialization

2012-08-16 Thread Jiang Wang
. Amant; Jiang Wang Subject: Re: [PATCH] bnx2: turn off the network statck during initialization On Thu, 2012-08-16 at 11:21 -0700, Jiang Wang wrote: The initialization state of bnx2 driver is wrong. It does not turn of the Linux network stack using netif_carrier_off. This may lead

RE: [PATCH] bnx2: turn off the network statck during initialization

2012-08-16 Thread Michael Chan
: net...@vger.kernel.org; linux-kernel@vger.kernel.org; Chaitanya Lala; Francis St. Amant; Jiang Wang Subject: Re: [PATCH] bnx2: turn off the network statck during initialization On Thu, 2012-08-16 at 11:21 -0700, Jiang Wang wrote: The initialization state of bnx2 driver is wrong. It does

RE: [PATCH] bnx2: turn off the network statck during initialization

2012-08-16 Thread Jiang Wang
: Michael Chan [mailto:mc...@broadcom.com] Sent: Thursday, August 16, 2012 12:29 PM To: Jiang Wang Cc: net...@vger.kernel.org; linux-kernel@vger.kernel.org; Chaitanya Lala; Francis St. Amant Subject: RE: [PATCH] bnx2: turn off the network statck during initialization On Thu, 2012-08-16 at 19:15

RE: [PATCH] bnx2: turn off the network statck during initialization

2012-08-16 Thread Michael Chan
On Thu, 2012-08-16 at 20:28 +, Jiang Wang wrote: Also, I have another comment related to link state. Right now, the bnx2 driver powers up the device in bnx2_init_board(), regardless the netif_carrier is on or off. We actually don't power up the device. bnx2_init_board() just probes the

RE: [PATCH] bnx2: turn off the network statck during initialization

2012-08-16 Thread Ben Hutchings
On Thu, 2012-08-16 at 20:28 +, Jiang Wang wrote: [...] Also, I have another comment related to link state. Right now, the bnx2 driver powers up the device in bnx2_init_board(), regardless the netif_carrier is on or off. This may introduce following inconsistent behaviors: 1) suppose the

RE: [PATCH] bnx2: turn off the network statck during initialization

2012-08-16 Thread Jiang Wang
On Thu, 2012-08-16 at 20:28 +, Jiang Wang wrote: Also, I have another comment related to link state. Right now, the bnx2 driver powers up the device in bnx2_init_board(), regardless the netif_carrier is on or off. We actually don't power up the device. bnx2_init_board() just probes

RE: [PATCH] bnx2: turn off the network statck during initialization

2012-08-16 Thread Michael Chan
On Thu, 2012-08-16 at 21:48 +, Jiang Wang wrote: I see. I was confused by the name of bnx2_set_power_state() and I think the PHY is actually powered up by bnx2_reset_nic, right? bnx2_init_phy() in bnx2_init_nic() will bring up the PHY if it is down. -- To unsubscribe from this

RE: [PATCH] bnx2: turn off the network statck during initialization

2012-08-16 Thread Jiang Wang
: Thursday, August 16, 2012 3:28 PM To: Jiang Wang Cc: net...@vger.kernel.org; linux-kernel@vger.kernel.org; Chaitanya Lala; Francis St. Amant Subject: RE: [PATCH] bnx2: turn off the network statck during initialization On Thu, 2012-08-16 at 21:48 +, Jiang Wang wrote: I see. I was confused