Re: Where to power on the wifi device before loading the driver.

2012-06-26 Thread Dong Aisheng
On Tue, Jun 19, 2012 at 06:01:54PM -0600, Stephen Warren wrote: > On 06/19/2012 03:44 AM, Wei Ni wrote: > > On Tue, Jun 19, 2012 at 17:17:19, Mark Brown wrote: > >> * PGP Signed by an unknown key > >> > >> On Tue, Jun 19, 2012 at 12:25:58PM +0800, Wei Ni wrote: > >> > >> As Stephen previously said

Re: Where to power on the wifi device before loading the driver.

2012-06-20 Thread Stephen Warren
On 06/20/2012 05:28 AM, Wei Ni wrote: ... > Stephen, as Rakesh said that in case of bcm4329, the two GPIO (WF_EN > and WF_RST) are shorted. So I think we can simply to use the > power-gpios properity in the SD driver, just use one gpio I test it > in this way, it runs ok, the bcm4329 can be powered

RE: Where to power on the wifi device before loading the driver.

2012-06-20 Thread Wei Ni
On Wed, Jun 20, 2012 at 08:01:54, Stephen Warren wrote: >On 06/19/2012 03:44 AM, Wei Ni wrote: >> On Tue, Jun 19, 2012 at 17:17:19, Mark Brown wrote: >>> * PGP Signed by an unknown key >>> >>> On Tue, Jun 19, 2012 at 12:25:58PM +0800, Wei Ni wrote: >>> >>> As Stephen previously said please fix your

Re: Where to power on the wifi device before loading the driver.

2012-06-20 Thread Mark Brown
On Tue, Jun 19, 2012 at 06:01:54PM -0600, Stephen Warren wrote: > Unfortunately, it should be noted that the WiFi device socket on Cardhu > apparently isn't some standardized thing (like PCIe) but something > rather more custom, although there are apparently devices available to > plug into it fro

Re: Where to power on the wifi device before loading the driver.

2012-06-19 Thread Stephen Warren
On 06/19/2012 03:44 AM, Wei Ni wrote: > On Tue, Jun 19, 2012 at 17:17:19, Mark Brown wrote: >> * PGP Signed by an unknown key >> >> On Tue, Jun 19, 2012 at 12:25:58PM +0800, Wei Ni wrote: >> >> As Stephen previously said please fix your mail formatting - word >> wrapping within paragraphs is impor

RE: Where to power on the wifi device before loading the driver.

2012-06-19 Thread Wei Ni
On Tue, Jun 19, 2012 at 17:17:19, Mark Brown wrote: >* PGP Signed by an unknown key > >On Tue, Jun 19, 2012 at 12:25:58PM +0800, Wei Ni wrote: > >As Stephen previously said please fix your mail formatting - word >wrapping within paragraphs is important! > >> On Tue, Jun 19, 2012 at 09:23:35, Phili

Re: Where to power on the wifi device before loading the driver.

2012-06-19 Thread Mark Brown
On Tue, Jun 19, 2012 at 12:25:58PM +0800, Wei Ni wrote: As Stephen previously said please fix your mail formatting - word wrapping within paragraphs is important! > On Tue, Jun 19, 2012 at 09:23:35, Philip Rakity wrote: > >Why can't you use the regulator notify to get called back on power or > >

RE: Where to power on the wifi device before loading the driver.

2012-06-19 Thread Wei Ni
On Mon, Jun 18, 2012 at 23:01:45, Stephen Warren wrote: >On 06/18/2012 02:03 AM, Laxman Dewangan wrote: >> Rakesh Kumar wrote at Monday, June 18, 2012 1:11 PM: >> > Stephen Warren wrote: >> >> Now if this means adding a child node under the SDIO controller to >> >> represent the attached device, a

RE: Where to power on the wifi device before loading the driver.

2012-06-18 Thread Wei Ni
zlabs.org; >'linux-wirel...@vger.kernel.org'; linux-te...@vger.kernel.org; >linux-arm-ker...@lists.infradead.org >Subject: RE: Where to power on the wifi device before loading the driver. > >On Fri, Jun 15, 2012 at 23:49:10, Stephen Warren wrote: >>> I talked wi

RE: Where to power on the wifi device before loading the driver.

2012-06-18 Thread Philip Rakity
r.kernel.org'; devicetree-disc...@lists.ozlabs.org; 'linux-wirel...@vger.kernel.org'; linux-te...@vger.kernel.org; linux-arm-ker...@lists.infradead.org Subject: RE: Where to power on the wifi device before loading the driver. On Fri, Jun 15, 2012 at 23:49:10, Stephen Warren wrote: &g

Re: Where to power on the wifi device before loading the driver.

2012-06-18 Thread Stephen Warren
On 06/18/2012 02:03 AM, Laxman Dewangan wrote: > Rakesh Kumar wrote at Monday, June 18, 2012 1:11 PM: > > Stephen Warren wrote: > >> Now if this means adding a child node under the SDIO controller > >> to represent the attached device, and storing any settings > >> required by that device in that c

RE: Where to power on the wifi device before loading the driver.

2012-06-18 Thread Laxman Dewangan
devicetree-disc...@lists.ozlabs.org; 'linux-wirel...@vger.kernel.org'; linux-te...@vger.kernel.org; linux-arm-ker...@lists.infradead.org Subject: RE: Where to power on the wifi device before loading the driver. On Fri, Jun 15, 2012 at 23:49:10, Stephen Warren wrote: >> I talked with Franky

RE: Where to power on the wifi device before loading the driver.

2012-06-18 Thread Rakesh Kumar
Wei Ni Sent: 18 June 2012 11:50 To: 'Stephen Warren'; Rakesh Kumar Cc: Mark Brown; 'fran...@broadcom.com'; Thierry Reding; Mursalin Akon; 'linux-mmc@vger.kernel.org'; devicetree-disc...@lists.ozlabs.org; 'linux-wirel...@vger.kernel.org'; linux-te...@vger.ker

RE: Where to power on the wifi device before loading the driver.

2012-06-17 Thread Wei Ni
On Fri, Jun 15, 2012 at 23:49:10, Stephen Warren wrote: >> I talked with Franky, this power sequence is generally for 4329, so >> it mean this sequence can be put into the wifi driver. >> We can use the virtual platform device both for OOB and non OOB. >> I will send out patches later. > >Can you

RE: Where to power on the wifi device before loading the driver.

2012-06-17 Thread Wei Ni
On Sat, Jun 16, 2012 at 00:24:41, Franky Lin wrote: >On 06/14/2012 11:09 PM, Wei Ni wrote: >> I talked with Franky, this power sequence is generally for 4329, so it mean >> this sequence can be put into the wifi driver. > >Hold on. It's generally for 4329. But fullmac supports 4329/4330 along >wi

Re: Where to power on the wifi device before loading the driver.

2012-06-15 Thread Franky Lin
On 06/14/2012 11:09 PM, Wei Ni wrote: I talked with Franky, this power sequence is generally for 4329, so it mean this sequence can be put into the wifi driver. Hold on. It's generally for 4329. But fullmac supports 4329/4330 along with USB dongle chips. Also more chips are incoming. I dont t

Re: Where to power on the wifi device before loading the driver.

2012-06-15 Thread Stephen Warren
On 06/15/2012 12:09 AM, Wei Ni wrote: > On Thu, Jun 14, 2012 at 23:54:22, Stephen Warren wrote: > The core of the issue is that: >>> > * Tegra30 support is via device tree. * We have an SDIO bus, and > the WiFi device attached to that bus is enumerable. * Since the > WiFi device i

RE: Where to power on the wifi device before loading the driver.

2012-06-14 Thread Wei Ni
On Thu, Jun 14, 2012 at 23:54:22, Stephen Warren wrote: The core of the issue is that: >> * Tegra30 support is via device tree. * We have an SDIO bus, and the WiFi device attached to that bus is enumerable. * Since the WiFi device is enumerable, no node exists in the DT to rep

Re: Where to power on the wifi device before loading the driver.

2012-06-14 Thread Franky Lin
On 06/13/2012 09:17 PM, Wei Ni wrote: Wei: Yes, in OOB mode, it's easy to add a device node in the DT, to pass the gpio property to brcmfmac driver. But the NO-OOB mode doesn’t use the virtual platform device, so we can't pass the gpio to driver. We need to find a way to support these two mode bo

Re: Where to power on the wifi device before loading the driver.

2012-06-14 Thread Stephen Warren
On 06/14/2012 06:12 AM, Mark Brown wrote: > On Thu, Jun 14, 2012 at 08:31:20AM +0200, Thierry Reding wrote: >> On Wed, Jun 13, 2012 at 03:17:06PM -0600, Stephen Warren wrote: > >>> The core of the issue is that: > >>> * Tegra30 support is via device tree. * We have an SDIO bus, >>> and the WiFi d

Re: Where to power on the wifi device before loading the driver.

2012-06-14 Thread Mark Brown
On Thu, Jun 14, 2012 at 08:31:20AM +0200, Thierry Reding wrote: > On Wed, Jun 13, 2012 at 03:17:06PM -0600, Stephen Warren wrote: > > The core of the issue is that: > > * Tegra30 support is via device tree. > > * We have an SDIO bus, and the WiFi device attached to that bus is > > enumerable. > >

RE: Where to power on the wifi device before loading the driver.

2012-06-14 Thread Wei Ni
On Thu, Jun 14, 2012 at 19:27:50, Wei Ni wrote: >On Thu, Jun 14, 2012 at 05:17:06, Stephen Warren wrote: >>On 06/13/2012 04:40 AM, Wei Ni wrote: >>> Hi, all >>> I'm working on the tegra30 wifi upstream issue. >>> >>> The tegra30 board (Cardhu) use Broadcom 4329 as wifi device, and use >>> brcmfmac

RE: Where to power on the wifi device before loading the driver.

2012-06-14 Thread Wei Ni
On Thu, Jun 14, 2012 at 05:17:06, Stephen Warren wrote: >On 06/13/2012 04:40 AM, Wei Ni wrote: >> Hi, all >> I'm working on the tegra30 wifi upstream issue. >> >> The tegra30 board (Cardhu) use Broadcom 4329 as wifi device, and use >> brcmfmac as the wifi driver. >> >> In the brcmfmac init routine

Re: Where to power on the wifi device before loading the driver.

2012-06-13 Thread Thierry Reding
On Wed, Jun 13, 2012 at 03:17:06PM -0600, Stephen Warren wrote: > On 06/13/2012 04:40 AM, Wei Ni wrote: > > Hi, all > > I'm working on the tegra30 wifi upstream issue. > > > > The tegra30 board (Cardhu) use Broadcom 4329 as wifi device, and use > > brcmfmac as the wifi driver. > > > > In the brc

RE: Where to power on the wifi device before loading the driver.

2012-06-13 Thread Wei Ni
Hi, Franky On Thu, Jun 14, 2012 at 01:33:13, Franky Lin wrote: >Hi Wei, > >On 06/13/2012 03:40 AM, Wei Ni wrote: >> In the brcmfmac init routine, it call sdio_register_driver() to >> register driver, if the wifi device is powered on, then the mmc >> driver will enumerate it, and call the probe ca

Re: Where to power on the wifi device before loading the driver.

2012-06-13 Thread Stephen Warren
On 06/13/2012 04:40 AM, Wei Ni wrote: > Hi, all > I'm working on the tegra30 wifi upstream issue. > > The tegra30 board (Cardhu) use Broadcom 4329 as wifi device, and use brcmfmac > as the wifi driver. > > In the brcmfmac init routine, it call sdio_register_driver() to register > driver, if the

Re: Where to power on the wifi device before loading the driver.

2012-06-13 Thread Franky Lin
Hi Wei, On 06/13/2012 03:40 AM, Wei Ni wrote: In the brcmfmac init routine, it call sdio_register_driver() to register driver, if the wifi device is powered on, then the mmc driver will enumerate it, and call the probe callback routine. On the Cardhu, the wifi's power is controlled by two gpi