linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] p54spi: replace internal "cx3110x" name with "p54spi"
@ 2010-06-02  2:16 Luke-Jr
  2010-06-02  7:54 ` Johannes Berg
  0 siblings, 1 reply; 5+ messages in thread
From: Luke-Jr @ 2010-06-02  2:16 UTC (permalink / raw)
  To: linux-wireless; +Cc: linux-kernel, torvalds

While the comment removed in this patch claims board_n800.c uses "cx3110x", it was never merged to mainline like 
this.
Mainlined board files for Nokia N8x0 devices are expected "p54spi", and thus don't work because the modalias is 
"cx3110x".
To my knowledge, these devices are the only real-world use of p54spi, and will not work without this change.
Tested against my Nokia N810.

Signed-off-by: Luke Dashjr <luke-jr+git@utopios.org>
---
 drivers/net/wireless/p54/p54spi.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/net/wireless/p54/p54spi.c b/drivers/net/wireless/p54/p54spi.c
index c8f09da..087bf06 100644
--- a/drivers/net/wireless/p54/p54spi.c
+++ b/drivers/net/wireless/p54/p54spi.c
@@ -697,9 +697,7 @@ static int __devexit p54spi_remove(struct spi_device *spi)
 
 static struct spi_driver p54spi_driver = {
 	.driver = {
-		/* use cx3110x name because board-n800.c uses that for the
-		 * SPI port */
-		.name		= "cx3110x",
+		.name		= "p54spi",
 		.bus		= &spi_bus_type,
 		.owner		= THIS_MODULE,
 	},
@@ -733,3 +731,4 @@ module_exit(p54spi_exit);
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Christian Lamparter <chunkeey@web.de>");
 MODULE_ALIAS("spi:cx3110x");
+MODULE_ALIAS("spi:p54spi");
-- 
1.6.4.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] p54spi: replace internal "cx3110x" name with "p54spi"
  2010-06-02  2:16 [PATCH] p54spi: replace internal "cx3110x" name with "p54spi" Luke-Jr
@ 2010-06-02  7:54 ` Johannes Berg
  2010-06-02 19:06   ` Luke-Jr
  0 siblings, 1 reply; 5+ messages in thread
From: Johannes Berg @ 2010-06-02  7:54 UTC (permalink / raw)
  To: Luke-Jr; +Cc: linux-wireless, linux-kernel, torvalds

On Tue, 2010-06-01 at 21:16 -0500, Luke-Jr wrote:

>  static struct spi_driver p54spi_driver = {
>  	.driver = {
> -		/* use cx3110x name because board-n800.c uses that for the
> -		 * SPI port */
> -		.name		= "cx3110x",
> +		.name		= "p54spi",
>  		.bus		= &spi_bus_type,

maybe that comment wasn't clear enough ... it needs to be that way to be
properly linked up against SPI.

johannes


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] p54spi: replace internal "cx3110x" name with "p54spi"
  2010-06-02  7:54 ` Johannes Berg
@ 2010-06-02 19:06   ` Luke-Jr
  2010-06-04  8:36     ` Johannes Berg
  0 siblings, 1 reply; 5+ messages in thread
From: Luke-Jr @ 2010-06-02 19:06 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless, linux-kernel, torvalds

On Wednesday 02 June 2010 02:54:59 am Johannes Berg wrote:
> On Tue, 2010-06-01 at 21:16 -0500, Luke-Jr wrote:
> >  static struct spi_driver p54spi_driver = {
> >  	.driver = {
> > -		/* use cx3110x name because board-n800.c uses that for the
> > -		 * SPI port */
> > -		.name		= "cx3110x",
> > +		.name		= "p54spi",
> >  		.bus		= &spi_bus_type,
> 
> maybe that comment wasn't clear enough ... it needs to be that way to be
> properly linked up against SPI.

I don't understand what you mean here. Does the hardware-side of SPI use 
string identifiers? These are the only two instances of "cx3110x" in the 
kernel source; N8x0 board files expect "p54spi"

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] p54spi: replace internal "cx3110x" name with "p54spi"
  2010-06-02 19:06   ` Luke-Jr
@ 2010-06-04  8:36     ` Johannes Berg
  2010-07-31  9:37       ` Kalle Valo
  0 siblings, 1 reply; 5+ messages in thread
From: Johannes Berg @ 2010-06-04  8:36 UTC (permalink / raw)
  To: Luke-Jr; +Cc: linux-wireless, linux-kernel, torvalds

On Wed, 2010-06-02 at 14:06 -0500, Luke-Jr wrote:

> > >  	.driver = {
> > > -		/* use cx3110x name because board-n800.c uses that for the
> > > -		 * SPI port */
> > > -		.name		= "cx3110x",
> > > +		.name		= "p54spi",
> > >  		.bus		= &spi_bus_type,
> > 
> > maybe that comment wasn't clear enough ... it needs to be that way to be
> > properly linked up against SPI.
> 
> I don't understand what you mean here. Does the hardware-side of SPI use 
> string identifiers? These are the only two instances of "cx3110x" in the 
> kernel source; N8x0 board files expect "p54spi"

Hm, ok, I thought that the board stuff needed cx3110x. Hopefully it
doesn't differ in n810s?

johannes


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] p54spi: replace internal "cx3110x" name with "p54spi"
  2010-06-04  8:36     ` Johannes Berg
@ 2010-07-31  9:37       ` Kalle Valo
  0 siblings, 0 replies; 5+ messages in thread
From: Kalle Valo @ 2010-07-31  9:37 UTC (permalink / raw)
  To: Johannes Berg; +Cc: Luke-Jr, linux-wireless, linux-kernel, torvalds

Johannes Berg <johannes@sipsolutions.net> writes:

> On Wed, 2010-06-02 at 14:06 -0500, Luke-Jr wrote:
>
>> > >  	.driver = {
>> > > -		/* use cx3110x name because board-n800.c uses that for the
>> > > -		 * SPI port */
>> > > -		.name		= "cx3110x",
>> > > +		.name		= "p54spi",
>> > >  		.bus		= &spi_bus_type,
>> > 
>> > maybe that comment wasn't clear enough ... it needs to be that way to be
>> > properly linked up against SPI.
>> 
>> I don't understand what you mean here. Does the hardware-side of SPI use 
>> string identifiers? These are the only two instances of "cx3110x" in the 
>> kernel source; N8x0 board files expect "p54spi"
>
> Hm, ok, I thought that the board stuff needed cx3110x. Hopefully it
> doesn't differ in n810s?

I changed the n8x0 board files (for both n800 and n810) in mainline to
use p54spi. So this patch is correct.

The old maemo kernels and the closed driver used cx3110x to identify
the spi device.

-- 
Kalle Valo

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-07-31  9:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-02  2:16 [PATCH] p54spi: replace internal "cx3110x" name with "p54spi" Luke-Jr
2010-06-02  7:54 ` Johannes Berg
2010-06-02 19:06   ` Luke-Jr
2010-06-04  8:36     ` Johannes Berg
2010-07-31  9:37       ` Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).