lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sun, 23 May 2010 12:42:43 +0400
From:	Sergei Shtylyov <sshtylyov@...sta.com>
To:	Mike Frysinger <vapier@...too.org>, Ian Jeffray <ian@...fray.co.uk>
CC:	linux-usb@...r.kernel.org, Felipe Balbi <felipe.balbi@...ia.com>,
	Cliff Cai <cliff.cai@...log.com>,
	uclinux-dist-devel@...ckfin.uclinux.org, stable@...nel.org,
	stable-review@...nel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] USB: musb: fix Blackfin building after power updates

Hello.

Mike Frysinger wrote:

> From: Ian Jeffray <ian@...fray.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@...fray.co.uk>
> Signed-off-by: Mike Frysinger <vapier@...too.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ