[PATCH 6/133] [Jaunty SRU] ARM.imx51 Freescale:ENGR00109268 unifi_fs: don't reset chip if power is on by default

Bryan Wu bryan.wu at canonical.com
Fri Jul 10 02:08:18 UTC 2009


Brad Figg wrote:
> From: Richard Zhao <b20223 at freescale.com>
> 
> If power is on by default, sdio device has been initialized, so we don't
> reset the chip.
> 
> Signed-off-by: Richard Zhao <b20223 at freescale.com>
> Signed-off-by: Brad Figg <brad.figg at canonical.com>
> ---
>  drivers/mmc/card/unifi_fs/fs_lx.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/mmc/card/unifi_fs/fs_lx.c b/drivers/mmc/card/unifi_fs/fs_lx.c
> index ef53c60..37b7bba 100644
> --- a/drivers/mmc/card/unifi_fs/fs_lx.c
> +++ b/drivers/mmc/card/unifi_fs/fs_lx.c
> @@ -360,8 +360,8 @@ int fs_sdio_register_driver(struct fs_driver *driver)
>  {
>  	int ret;
>  
> -	/* Switch us on */
> -	fs_unifi_power_on(-1);
> +	/* Switch us on, sdio device may exist if power is on by default. */
> +	fs_unifi_power_on(available_sdio_dev ? 0 : 1);
>  

Originally, -1 was passed down to the function. But the new operation will pass
0 or 1. Is that correct for this function?

-Bryan





More information about the kernel-team mailing list