Search Linux Wireless

Re: [wl12xx] wl1271 and SPI mode

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

 



On Mon, 2012-11-05 at 14:53 +0100, Janusz Dziedzic wrote:
> Hello,

Hi Janusz,


> I have a question connected with wl12xx - I am using wl1271 driver.
> This is the SPI one (NOKIA N950).
> After driver probe I have dump like below. I added small patch - but
> the question is how stable is it - SPI mode. Will work correctly, is
> "stable" now and someone test it? Is SPI supported correctly and
> "fully" in latest code? Will firmware also support SPI correctly with
> the newest code?

Only Nokia was using wl1271 with SPI and since I left Nokia I haven't
had a device with wl1271 connected over SPI, so it has not been tested
at all for a while.

We try to keep SPI working, but we haven't put much effort into it in
the past couple of years.  Since we can't test, some people even
proposed removing SPI support altogether, but I preferred not to do it
so that someone (like you!) could try it at some point and report bugs
(as you did!) so we can fix them. ;)

So please, *do* test it and let us know how it goes.  If you find any
issues, we'll try to fix them.


> BTW. I don't have any issues with SDIO version (N9 phone) - works perfectly.

That's great to hear! We *do* test the SDIO version of our drivers. ;)
BTW, which kernel version are you using?


> Patch (drivers/net/wireless/ti/wlcore/spi.c)
> 
> +static int wl12xx_spi_power(struct device *child, bool enable)
> +{
> +	struct wl1271 *wl = dev_get_drvdata(child);
> +	if (wl->set_power)
> +		wl->set_power(enable);
> +	return 0;
> +}
> +
>  static struct wl1271_if_operations spi_ops = {
>  	.read		= wl12xx_spi_raw_read,
>  	.write		= wl12xx_spi_raw_write,
>  	.reset		= wl12xx_spi_reset,
>  	.init		= wl12xx_spi_init,
> +	.power		= wl12xx_spi_power,
>  	.set_block_size = NULL,
>  };

This looks reasonable.  Do you want to send it in a git patch format so
I can apply? Otherwise I can create the commit myself.

Thanks for your work!

--
Cheers,
Luca.

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux