* [RFC][PATCH] ssb: mark bus as powered up earlier?
@ 2011-04-20 17:14 Rafał Miłecki
2011-04-20 18:33 ` Michael Büsch
0 siblings, 1 reply; 4+ messages in thread
From: Rafał Miłecki @ 2011-04-20 17:14 UTC (permalink / raw)
To: linux-wireless, Michael Büsch; +Cc: b43-dev, Rafał Miłecki
---
This order seems to be wrong for me, but how we didn't get any reports about
errors? Are cores supported by ssb_chipco_set_clockmode so rare? Or is ssb so
rarely compiled with DEBUG?
The problem is that ssb_chipco_set_clockmode may want to touch CC registers to
control power of the bus. However touching registers without powered_up set
causes warnings.
Am I right at this?
---
drivers/ssb/main.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/ssb/main.c b/drivers/ssb/main.c
index e06d634..076362e 100644
--- a/drivers/ssb/main.c
+++ b/drivers/ssb/main.c
@@ -1309,20 +1309,20 @@ EXPORT_SYMBOL(ssb_bus_may_powerdown);
int ssb_bus_powerup(struct ssb_bus *bus, bool dynamic_pctl)
{
- struct ssb_chipcommon *cc;
int err;
enum ssb_clkmode mode;
err = ssb_pci_xtal(bus, SSB_GPIO_XTAL | SSB_GPIO_PLL, 1);
if (err)
goto error;
- cc = &bus->chipco;
- mode = dynamic_pctl ? SSB_CLKMODE_DYNAMIC : SSB_CLKMODE_FAST;
- ssb_chipco_set_clockmode(cc, mode);
#ifdef CONFIG_SSB_DEBUG
bus->powered_up = 1;
#endif
+
+ mode = dynamic_pctl ? SSB_CLKMODE_DYNAMIC : SSB_CLKMODE_FAST;
+ ssb_chipco_set_clockmode(&bus->chipco, mode);
+
return 0;
error:
ssb_printk(KERN_ERR PFX "Bus powerup failed\n");
--
1.7.3.4
^ permalink raw reply related [flat|nested] 4+ messages in thread* [RFC][PATCH] ssb: mark bus as powered up earlier?
2011-04-20 17:14 [RFC][PATCH] ssb: mark bus as powered up earlier? Rafał Miłecki
@ 2011-04-20 18:33 ` Michael Büsch
2011-04-20 18:41 ` Rafał Miłecki
0 siblings, 1 reply; 4+ messages in thread
From: Michael Büsch @ 2011-04-20 18:33 UTC (permalink / raw)
To: Rafał Miłecki; +Cc: linux-wireless, b43-dev
Just in case you don't know: Please send patches to John directly
and just CC me. And if I don't complain, it's an ACK ;)
--
Greetings Michael.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [RFC][PATCH] ssb: mark bus as powered up earlier?
2011-04-20 18:33 ` Michael Büsch
@ 2011-04-20 18:41 ` Rafał Miłecki
2011-04-20 18:43 ` Michael Büsch
0 siblings, 1 reply; 4+ messages in thread
From: Rafał Miłecki @ 2011-04-20 18:41 UTC (permalink / raw)
To: Michael Büsch; +Cc: linux-wireless, b43-dev
W dniu 20 kwietnia 2011 20:33 u?ytkownik Michael B?sch <m@bues.ch> napisa?:
> Just in case you don't know: Please send patches to John directly
> and just CC me. And if I don't complain, it's an ACK ;)
I wanted to make sure about this one, so I just posted it without
Signed-off-by or to:John. Will resend later with correct "to" and
signed.
--
Rafa?
^ permalink raw reply [flat|nested] 4+ messages in thread
* [RFC][PATCH] ssb: mark bus as powered up earlier?
2011-04-20 18:41 ` Rafał Miłecki
@ 2011-04-20 18:43 ` Michael Büsch
0 siblings, 0 replies; 4+ messages in thread
From: Michael Büsch @ 2011-04-20 18:43 UTC (permalink / raw)
To: Rafał Miłecki; +Cc: linux-wireless, b43-dev
On Wed, 2011-04-20 at 20:41 +0200, Rafa? Mi?ecki wrote:
> W dniu 20 kwietnia 2011 20:33 u?ytkownik Michael B?sch <m@bues.ch> napisa?:
> > Just in case you don't know: Please send patches to John directly
> > and just CC me. And if I don't complain, it's an ACK ;)
>
> I wanted to make sure about this one, so I just posted it without
> Signed-off-by or to:John. Will resend later with correct "to" and
> signed.
>
Ah ok. Yes it seems nobody with an affected device ever tested with
debugging enabled.
--
Greetings Michael.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-04-20 18:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-20 17:14 [RFC][PATCH] ssb: mark bus as powered up earlier? Rafał Miłecki
2011-04-20 18:33 ` Michael Büsch
2011-04-20 18:41 ` Rafał Miłecki
2011-04-20 18:43 ` Michael Büsch
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).