linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH wireless?] bcma: keep info about parallel flash presentence
@ 2012-08-09 20:38 Rafał Miłecki
  2012-08-10  9:02 ` Arend van Spriel
  0 siblings, 1 reply; 8+ messages in thread
From: Rafał Miłecki @ 2012-08-09 20:38 UTC (permalink / raw)
  To: linux-wireless, John W. Linville; +Cc: Rafał Miłecki

This allows drivers to access flash conditionally and stop crashing some
devices.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
---
John: I suggest taking it for wirelesss, AKA fix
---
 drivers/bcma/driver_mips.c                  |    2 +-
 include/linux/bcma/bcma_driver_chipcommon.h |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/bcma/driver_mips.c b/drivers/bcma/driver_mips.c
index cc65b45..55acba9 100644
--- a/drivers/bcma/driver_mips.c
+++ b/drivers/bcma/driver_mips.c
@@ -192,12 +192,12 @@ static void bcma_core_mips_flash_detect(struct bcma_drv_mips *mcore)
 		bcma_debug(bus, "Found parallel flash\n");
 		bus->drv_cc.pflash.window = 0x1c000000;
 		bus->drv_cc.pflash.window_size = 0x02000000;
-
 		if ((bcma_read32(bus->drv_cc.core, BCMA_CC_FLASH_CFG) &
 		     BCMA_CC_FLASH_CFG_DS) == 0)
 			bus->drv_cc.pflash.buswidth = 1;
 		else
 			bus->drv_cc.pflash.buswidth = 2;
+		bus->drv_cc.pflash.present = true;
 		break;
 	default:
 		bcma_err(bus, "Flash type not supported\n");
diff --git a/include/linux/bcma/bcma_driver_chipcommon.h b/include/linux/bcma/bcma_driver_chipcommon.h
index 3fb8bba..16c266c 100644
--- a/include/linux/bcma/bcma_driver_chipcommon.h
+++ b/include/linux/bcma/bcma_driver_chipcommon.h
@@ -510,6 +510,7 @@ struct bcma_chipcommon_pmu {
 
 #ifdef CONFIG_BCMA_DRIVER_MIPS
 struct bcma_pflash {
+	bool present;
 	u8 buswidth;
 	u32 window;
 	u32 window_size;
-- 
1.7.7


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

* Re: [PATCH wireless?] bcma: keep info about parallel flash presentence
  2012-08-09 20:38 [PATCH wireless?] bcma: keep info about parallel flash presentence Rafał Miłecki
@ 2012-08-10  9:02 ` Arend van Spriel
  2012-08-10  9:32   ` Rafał Miłecki
  0 siblings, 1 reply; 8+ messages in thread
From: Arend van Spriel @ 2012-08-10  9:02 UTC (permalink / raw)
  To: Rafał Miłecki; +Cc: linux-wireless, John W. Linville

On 08/09/2012 10:38 PM, Rafał Miłecki wrote:
> This allows drivers to access flash conditionally and stop crashing some
> devices.
> 
> Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
> Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
> ---
> John: I suggest taking it for wirelesss, AKA fix

Maybe you could mentioned devices and/or drivers crashes without this patch?

Gr. AvS


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

* Re: [PATCH wireless?] bcma: keep info about parallel flash presentence
  2012-08-10  9:02 ` Arend van Spriel
@ 2012-08-10  9:32   ` Rafał Miłecki
  2012-08-10  9:32     ` Rafał Miłecki
  2012-08-10 12:23     ` Hauke Mehrtens
  0 siblings, 2 replies; 8+ messages in thread
From: Rafał Miłecki @ 2012-08-10  9:32 UTC (permalink / raw)
  To: Arend van Spriel; +Cc: linux-wireless, John W. Linville

2012/8/10 Arend van Spriel <arend@broadcom.com>:
> On 08/09/2012 10:38 PM, Rafał Miłecki wrote:
>> This allows drivers to access flash conditionally and stop crashing some
>> devices.
>>
>> Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
>> Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
>> ---
>> John: I suggest taking it for wirelesss, AKA fix
>
> Maybe you could mentioned devices and/or drivers crashes without this patch?

Yes, sure! The problematic one for me is arch/mips/bcm47xx/nvram.c.
Right now it assumes every BCMA board has pflash. I'll submit fix for
mips tree when this patch hits it.

-- 
Rafał

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

* Re: [PATCH wireless?] bcma: keep info about parallel flash presentence
  2012-08-10  9:32   ` Rafał Miłecki
@ 2012-08-10  9:32     ` Rafał Miłecki
  2012-08-10 12:23     ` Hauke Mehrtens
  1 sibling, 0 replies; 8+ messages in thread
From: Rafał Miłecki @ 2012-08-10  9:32 UTC (permalink / raw)
  To: Arend van Spriel; +Cc: linux-wireless, John W. Linville

2012/8/10 Rafał Miłecki <zajec5@gmail.com>:
> 2012/8/10 Arend van Spriel <arend@broadcom.com>:
>> On 08/09/2012 10:38 PM, Rafał Miłecki wrote:
>>> This allows drivers to access flash conditionally and stop crashing some
>>> devices.
>>>
>>> Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
>>> Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
>>> ---
>>> John: I suggest taking it for wirelesss, AKA fix
>>
>> Maybe you could mentioned devices and/or drivers crashes without this patch?
>
> Yes, sure! The problematic one for me is arch/mips/bcm47xx/nvram.c.
> Right now it assumes every BCMA board has pflash. I'll submit fix for
> mips tree when this patch hits it.

Ah, and device. My Netgear WNDR4500 has serial flash and NAND flash.
It doesn't have parallel one, so this code crashes my device.

-- 
Rafał

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

* Re: [PATCH wireless?] bcma: keep info about parallel flash presentence
  2012-08-10  9:32   ` Rafał Miłecki
  2012-08-10  9:32     ` Rafał Miłecki
@ 2012-08-10 12:23     ` Hauke Mehrtens
  2012-08-10 12:25       ` Rafał Miłecki
  1 sibling, 1 reply; 8+ messages in thread
From: Hauke Mehrtens @ 2012-08-10 12:23 UTC (permalink / raw)
  To: Rafał Miłecki
  Cc: Arend van Spriel, linux-wireless, John W. Linville

On 08/10/2012 11:32 AM, Rafał Miłecki wrote:
> 2012/8/10 Arend van Spriel <arend@broadcom.com>:
>> On 08/09/2012 10:38 PM, Rafał Miłecki wrote:
>>> This allows drivers to access flash conditionally and stop crashing some
>>> devices.
>>>
>>> Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
>>> Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
>>> ---
>>> John: I suggest taking it for wirelesss, AKA fix
>>
>> Maybe you could mentioned devices and/or drivers crashes without this patch?
> 
> Yes, sure! The problematic one for me is arch/mips/bcm47xx/nvram.c.
> Right now it assumes every BCMA board has pflash. I'll submit fix for
> mips tree when this patch hits it.

Letting this patches get merged into the wireless tree and an other
patches which depends on this one into the mips tree will cause
problems, because the wireless tree only gets merged into the mips tree
indirectly round about the rc1 release in form of the rc1 release done
by Linus.

The patch to arch/mips/bcm47xx/nvram.c will depend on this one and you
should submit them to the same tree.

Hauke


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

* Re: [PATCH wireless?] bcma: keep info about parallel flash presentence
  2012-08-10 12:23     ` Hauke Mehrtens
@ 2012-08-10 12:25       ` Rafał Miłecki
  2012-08-10 13:20         ` John W. Linville
  0 siblings, 1 reply; 8+ messages in thread
From: Rafał Miłecki @ 2012-08-10 12:25 UTC (permalink / raw)
  To: Hauke Mehrtens; +Cc: Arend van Spriel, linux-wireless, John W. Linville

2012/8/10 Hauke Mehrtens <hauke@hauke-m.de>:
> On 08/10/2012 11:32 AM, Rafał Miłecki wrote:
>> 2012/8/10 Arend van Spriel <arend@broadcom.com>:
>>> On 08/09/2012 10:38 PM, Rafał Miłecki wrote:
>>>> This allows drivers to access flash conditionally and stop crashing some
>>>> devices.
>>>>
>>>> Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
>>>> Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
>>>> ---
>>>> John: I suggest taking it for wirelesss, AKA fix
>>>
>>> Maybe you could mentioned devices and/or drivers crashes without this patch?
>>
>> Yes, sure! The problematic one for me is arch/mips/bcm47xx/nvram.c.
>> Right now it assumes every BCMA board has pflash. I'll submit fix for
>> mips tree when this patch hits it.
>
> Letting this patches get merged into the wireless tree and an other
> patches which depends on this one into the mips tree will cause
> problems, because the wireless tree only gets merged into the mips tree
> indirectly round about the rc1 release in form of the rc1 release done
> by Linus.
>
> The patch to arch/mips/bcm47xx/nvram.c will depend on this one and you
> should submit them to the same tree.

I'm planning to wait until rc2 (or rc3 if needed). I know the dependency :)

-- 
Rafał

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

* Re: [PATCH wireless?] bcma: keep info about parallel flash presentence
  2012-08-10 12:25       ` Rafał Miłecki
@ 2012-08-10 13:20         ` John W. Linville
  2012-08-10 13:36           ` Rafał Miłecki
  0 siblings, 1 reply; 8+ messages in thread
From: John W. Linville @ 2012-08-10 13:20 UTC (permalink / raw)
  To: Rafał Miłecki; +Cc: Hauke Mehrtens, Arend van Spriel, linux-wireless

On Fri, Aug 10, 2012 at 02:25:48PM +0200, Rafał Miłecki wrote:
> 2012/8/10 Hauke Mehrtens <hauke@hauke-m.de>:
> > On 08/10/2012 11:32 AM, Rafał Miłecki wrote:
> >> 2012/8/10 Arend van Spriel <arend@broadcom.com>:
> >>> On 08/09/2012 10:38 PM, Rafał Miłecki wrote:
> >>>> This allows drivers to access flash conditionally and stop crashing some
> >>>> devices.
> >>>>
> >>>> Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
> >>>> Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
> >>>> ---
> >>>> John: I suggest taking it for wirelesss, AKA fix
> >>>
> >>> Maybe you could mentioned devices and/or drivers crashes without this patch?
> >>
> >> Yes, sure! The problematic one for me is arch/mips/bcm47xx/nvram.c.
> >> Right now it assumes every BCMA board has pflash. I'll submit fix for
> >> mips tree when this patch hits it.
> >
> > Letting this patches get merged into the wireless tree and an other
> > patches which depends on this one into the mips tree will cause
> > problems, because the wireless tree only gets merged into the mips tree
> > indirectly round about the rc1 release in form of the rc1 release done
> > by Linus.
> >
> > The patch to arch/mips/bcm47xx/nvram.c will depend on this one and you
> > should submit them to the same tree.
> 
> I'm planning to wait until rc2 (or rc3 if needed). I know the dependency :)

Which rc2?  Because Ralf probably won't have it in his tree until
the 3.7-rc1 timeframe...

-- 
John W. Linville		Someday the world will need a hero, and you
linville@tuxdriver.com			might be all we have.  Be ready.

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

* Re: [PATCH wireless?] bcma: keep info about parallel flash presentence
  2012-08-10 13:20         ` John W. Linville
@ 2012-08-10 13:36           ` Rafał Miłecki
  0 siblings, 0 replies; 8+ messages in thread
From: Rafał Miłecki @ 2012-08-10 13:36 UTC (permalink / raw)
  To: John W. Linville; +Cc: Hauke Mehrtens, Arend van Spriel, linux-wireless

2012/8/10 John W. Linville <linville@tuxdriver.com>:
> On Fri, Aug 10, 2012 at 02:25:48PM +0200, Rafał Miłecki wrote:
>> 2012/8/10 Hauke Mehrtens <hauke@hauke-m.de>:
>> > On 08/10/2012 11:32 AM, Rafał Miłecki wrote:
>> >> 2012/8/10 Arend van Spriel <arend@broadcom.com>:
>> >>> On 08/09/2012 10:38 PM, Rafał Miłecki wrote:
>> >>>> This allows drivers to access flash conditionally and stop crashing some
>> >>>> devices.
>> >>>>
>> >>>> Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
>> >>>> Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
>> >>>> ---
>> >>>> John: I suggest taking it for wirelesss, AKA fix
>> >>>
>> >>> Maybe you could mentioned devices and/or drivers crashes without this patch?
>> >>
>> >> Yes, sure! The problematic one for me is arch/mips/bcm47xx/nvram.c.
>> >> Right now it assumes every BCMA board has pflash. I'll submit fix for
>> >> mips tree when this patch hits it.
>> >
>> > Letting this patches get merged into the wireless tree and an other
>> > patches which depends on this one into the mips tree will cause
>> > problems, because the wireless tree only gets merged into the mips tree
>> > indirectly round about the rc1 release in form of the rc1 release done
>> > by Linus.
>> >
>> > The patch to arch/mips/bcm47xx/nvram.c will depend on this one and you
>> > should submit them to the same tree.
>>
>> I'm planning to wait until rc2 (or rc3 if needed). I know the dependency :)
>
> Which rc2?  Because Ralf probably won't have it in his tree until
> the 3.7-rc1 timeframe...

Ouch, I hoped bcma fix will go into 3.6-rc2 or 3.6-rc3 and Ralf will
rebase his tree against Linus at some point...

OK, I'll try to send additional bcm47xx fix through yours tree (after
Ralf accepts it).

-- 
Rafał

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

end of thread, other threads:[~2012-08-10 13:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-09 20:38 [PATCH wireless?] bcma: keep info about parallel flash presentence Rafał Miłecki
2012-08-10  9:02 ` Arend van Spriel
2012-08-10  9:32   ` Rafał Miłecki
2012-08-10  9:32     ` Rafał Miłecki
2012-08-10 12:23     ` Hauke Mehrtens
2012-08-10 12:25       ` Rafał Miłecki
2012-08-10 13:20         ` John W. Linville
2012-08-10 13:36           ` Rafał Miłecki

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).