* [PATCH] USB: musb: fix Blackfin building after power updates
@ 2010-05-23 2:49 Mike Frysinger
2010-05-23 8:42 ` Sergei Shtylyov
2010-05-24 18:50 ` [stable] " Greg KH
0 siblings, 2 replies; 5+ messages in thread
From: Mike Frysinger @ 2010-05-23 2:49 UTC (permalink / raw)
To: linux-usb, Felipe Balbi
Cc: Cliff Cai, uclinux-dist-devel, stable, stable-review,
linux-kernel, Ian Jeffray
From: Ian Jeffray <ian@jeffray.co.uk>
The new MUSB power code needs musb_read_txhubport() to return a value (so
stub it as 0 like the other Blackfin hub funcs). It also needs new helper
functions for saving/restoring context, so change the apparently unused
musb_platform_{suspend,resume} to musb_platform_{save,restore}_context in
the Blackfin code.
Signed-off-by: Ian Jeffray <ian@jeffray.co.uk>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
Note: this is for 2.6.34.x and 2.6.35
Note: i believe this is what we want, but Cliff is free to correct me ;)
drivers/usb/musb/blackfin.c | 12 ++++++++++++
drivers/usb/musb/musb_regs.h | 3 ++-
2 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/drivers/usb/musb/blackfin.c b/drivers/usb/musb/blackfin.c
index b611420..b5f1d17 100644
--- a/drivers/usb/musb/blackfin.c
+++ b/drivers/usb/musb/blackfin.c
@@ -392,6 +392,18 @@ int __init musb_platform_init(struct musb *musb, void *board_data)
return 0;
}
+#ifdef CONFIG_PM
+void musb_platform_save_context(struct musb *musb,
+ struct musb_context_registers *musb_context)
+{
+}
+
+void musb_platform_restore_context(struct musb *musb,
+ struct musb_context_registers *musb_context)
+{
+}
+#endif
+
int musb_platform_exit(struct musb *musb)
{
diff --git a/drivers/usb/musb/musb_regs.h b/drivers/usb/musb/musb_regs.h
index 2442675..5a727c5 100644
--- a/drivers/usb/musb/musb_regs.h
+++ b/drivers/usb/musb/musb_regs.h
@@ -633,8 +633,9 @@ static inline u8 musb_read_txhubaddr(void __iomem *mbase, u8 epnum)
return 0;
}
-static inline void musb_read_txhubport(void __iomem *mbase, u8 epnum)
+static inline u8 musb_read_txhubport(void __iomem *mbase, u8 epnum)
{
+ return 0;
}
#endif /* CONFIG_BLACKFIN */
--
1.7.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] USB: musb: fix Blackfin building after power updates
2010-05-23 2:49 [PATCH] USB: musb: fix Blackfin building after power updates Mike Frysinger
@ 2010-05-23 8:42 ` Sergei Shtylyov
2010-05-23 8:49 ` Mike Frysinger
2010-05-24 18:50 ` [stable] " Greg KH
1 sibling, 1 reply; 5+ messages in thread
From: Sergei Shtylyov @ 2010-05-23 8:42 UTC (permalink / raw)
To: Mike Frysinger, Ian Jeffray
Cc: linux-usb, Felipe Balbi, Cliff Cai, uclinux-dist-devel, stable,
stable-review, linux-kernel
Hello.
Mike Frysinger wrote:
> From: Ian Jeffray <ian@jeffray.co.uk>
> The new MUSB power code needs musb_read_txhubport() to return a value (so
> stub it as 0 like the other Blackfin hub funcs). It also needs new helper
> functions for saving/restoring context,
No, it doesn't. It was an erratic patch that caused these functions
to be needed outside OMAPs. I've already submitted a patch fixing this, see:
http://marc.info/?l=linux-usb&m=127427834925805
> so change the apparently unused
> musb_platform_{suspend,resume} to musb_platform_{save,restore}_context in
> the Blackfin code.
I don't see where you're "changing" them -- and no wonder as I have
deleted these two unused functions.
> Signed-off-by: Ian Jeffray <ian@jeffray.co.uk>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
> Note: this is for 2.6.34.x and 2.6.35
> Note: i believe this is what we want, but Cliff is free to correct me ;)
No, it's not what we want -- though I'm not Cliff. :-)
> drivers/usb/musb/blackfin.c | 12 ++++++++++++
> drivers/usb/musb/musb_regs.h | 3 ++-
> 2 files changed, 14 insertions(+), 1 deletions(-)
> diff --git a/drivers/usb/musb/blackfin.c b/drivers/usb/musb/blackfin.c
> index b611420..b5f1d17 100644
> --- a/drivers/usb/musb/blackfin.c
> +++ b/drivers/usb/musb/blackfin.c
> @@ -392,6 +392,18 @@ int __init musb_platform_init(struct musb *musb, void *board_data)
> return 0;
> }
>
> +#ifdef CONFIG_PM
> +void musb_platform_save_context(struct musb *musb,
> + struct musb_context_registers *musb_context)
> +{
> +}
> +
> +void musb_platform_restore_context(struct musb *musb,
> + struct musb_context_registers *musb_context)
> +{
> +}
> +#endif
> +
> int musb_platform_exit(struct musb *musb)
> {
>
> diff --git a/drivers/usb/musb/musb_regs.h b/drivers/usb/musb/musb_regs.h
> index 2442675..5a727c5 100644
> --- a/drivers/usb/musb/musb_regs.h
> +++ b/drivers/usb/musb/musb_regs.h
> @@ -633,8 +633,9 @@ static inline u8 musb_read_txhubaddr(void __iomem *mbase, u8 epnum)
> return 0;
> }
>
> -static inline void musb_read_txhubport(void __iomem *mbase, u8 epnum)
> +static inline u8 musb_read_txhubport(void __iomem *mbase, u8 epnum)
> {
> + return 0;
> }
>
> #endif /* CONFIG_BLACKFIN */
Besides, this actually should have been two patches...
WBR, Sergei
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] USB: musb: fix Blackfin building after power updates
2010-05-23 8:42 ` Sergei Shtylyov
@ 2010-05-23 8:49 ` Mike Frysinger
0 siblings, 0 replies; 5+ messages in thread
From: Mike Frysinger @ 2010-05-23 8:49 UTC (permalink / raw)
To: Sergei Shtylyov
Cc: Ian Jeffray, linux-usb, Felipe Balbi, Cliff Cai,
uclinux-dist-devel, stable, stable-review, linux-kernel
On Sun, May 23, 2010 at 04:42, Sergei Shtylyov wrote:
> Mike Frysinger wrote:
>> The new MUSB power code needs musb_read_txhubport() to return a value (so
>> stub it as 0 like the other Blackfin hub funcs). It also needs new helper
>> functions for saving/restoring context,
>
> No, it doesn't. It was an erratic patch that caused these functions to be
> needed outside OMAPs. I've already submitted a patch fixing this, see:
>
> http://marc.info/?l=linux-usb&m=127427834925805
thanks ... i'll grab whatever gets merged and repost on top of that.
>> so change the apparently unused
>> musb_platform_{suspend,resume} to musb_platform_{save,restore}_context in
>> the Blackfin code.
>
> I don't see where you're "changing" them -- and no wonder as I have
> deleted these two unused functions.
the patch was against 2.6.34, but when updating to latest git, the
related changes were dropped. but git automerging doesnt fix
changelogs for you :p.
>> -static inline void musb_read_txhubport(void __iomem *mbase, u8 epnum)
>> +static inline u8 musb_read_txhubport(void __iomem *mbase, u8 epnum)
>> {
>> + return 0;
>> }
>> #endif /* CONFIG_BLACKFIN */
>
> Besides, this actually should have been two patches...
it was addressing the same issue: new power code breaks on Blackfin systems
-mike
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [stable] [PATCH] USB: musb: fix Blackfin building after power updates
2010-05-23 2:49 [PATCH] USB: musb: fix Blackfin building after power updates Mike Frysinger
2010-05-23 8:42 ` Sergei Shtylyov
@ 2010-05-24 18:50 ` Greg KH
2010-05-24 18:52 ` [Uclinux-dist-devel] " Mike Frysinger
1 sibling, 1 reply; 5+ messages in thread
From: Greg KH @ 2010-05-24 18:50 UTC (permalink / raw)
To: Mike Frysinger
Cc: linux-usb, Felipe Balbi, Cliff Cai, Ian Jeffray, linux-kernel,
uclinux-dist-devel, stable-review, stable
On Sat, May 22, 2010 at 10:49:08PM -0400, Mike Frysinger wrote:
> From: Ian Jeffray <ian@jeffray.co.uk>
>
> The new MUSB power code needs musb_read_txhubport() to return a value (so
> stub it as 0 like the other Blackfin hub funcs). It also needs new helper
> functions for saving/restoring context, so change the apparently unused
> musb_platform_{suspend,resume} to musb_platform_{save,restore}_context in
> the Blackfin code.
>
> Signed-off-by: Ian Jeffray <ian@jeffray.co.uk>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
> Note: this is for 2.6.34.x and 2.6.35
> Note: i believe this is what we want, but Cliff is free to correct me ;)
>
> drivers/usb/musb/blackfin.c | 12 ++++++++++++
> drivers/usb/musb/musb_regs.h | 3 ++-
Note, I'm refusing to take any musb patch unless it comes from Felipe
due to the constant bickering from a number of the musb developers,
which is starting to really annoy me and contemplate warming up my kill
file...
So please work with him to get this agreed apon and have him forward it
to me when ready, that's the only way I'm going to accept it.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Uclinux-dist-devel] [stable] [PATCH] USB: musb: fix Blackfin building after power updates
2010-05-24 18:50 ` [stable] " Greg KH
@ 2010-05-24 18:52 ` Mike Frysinger
0 siblings, 0 replies; 5+ messages in thread
From: Mike Frysinger @ 2010-05-24 18:52 UTC (permalink / raw)
To: Greg KH
Cc: stable, linux-usb, Cliff Cai, linux-kernel, uclinux-dist-devel,
Felipe Balbi, stable-review
On Mon, May 24, 2010 at 14:50, Greg KH wrote:
> On Sat, May 22, 2010 at 10:49:08PM -0400, Mike Frysinger wrote:
>> From: Ian Jeffray <ian@jeffray.co.uk>
>>
>> The new MUSB power code needs musb_read_txhubport() to return a value (so
>> stub it as 0 like the other Blackfin hub funcs). It also needs new helper
>> functions for saving/restoring context, so change the apparently unused
>> musb_platform_{suspend,resume} to musb_platform_{save,restore}_context in
>> the Blackfin code.
>>
>> Signed-off-by: Ian Jeffray <ian@jeffray.co.uk>
>> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
>> ---
>> Note: this is for 2.6.34.x and 2.6.35
>> Note: i believe this is what we want, but Cliff is free to correct me ;)
>>
>> drivers/usb/musb/blackfin.c | 12 ++++++++++++
>> drivers/usb/musb/musb_regs.h | 3 ++-
>
>
> Note, I'm refusing to take any musb patch unless it comes from Felipe
> due to the constant bickering from a number of the musb developers,
> which is starting to really annoy me and contemplate warming up my kill
> file...
>
> So please work with him to get this agreed apon and have him forward it
> to me when ready, that's the only way I'm going to accept it.
this patch is already dead pending whatever Felipe merges (as Sergei
pointed out). so i'm waiting for him too ;).
-mike
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-05-24 18:52 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-23 2:49 [PATCH] USB: musb: fix Blackfin building after power updates Mike Frysinger
2010-05-23 8:42 ` Sergei Shtylyov
2010-05-23 8:49 ` Mike Frysinger
2010-05-24 18:50 ` [stable] " Greg KH
2010-05-24 18:52 ` [Uclinux-dist-devel] " Mike Frysinger
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.