Re: [PATCH v4] mmc: sdhci: add error checking for mmc_add_host

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Wolfram Sang wrote:
>> I just think good that remove the host...(any crash didn't occur).
>> there is not special reason.
> 
> Look at the mmc-core code, please (host.c). Compare what remove_host does and
> what add_host does before it fails. What do you think?

Ok..i'm looking at the mmc-core code(host.c)
mmc_add_host does devices_add(), then run start_host().
mmc_remove_host does stop_host().

You means that didn't run start_host() before add_host failed.
I think that need not to run stop_host. right?

To use mmc_free_host, better than mmc_remove_host.

Regards,
Jaehoon Chung

> 
> Regards,
> 
>    Wolfram
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux