Re: [PATCH 1/2] mmc: Add helper function to check if a card is removable

2010-08-28 Thread Matt Fleming
On Sat, Aug 28, 2010 at 03:13:09PM +0100, Ben Hutchings wrote: > On Sat, 2010-08-28 at 14:53 +0100, Matt Fleming wrote: > [...] > > --- a/include/linux/mmc/host.h > > +++ b/include/linux/mmc/host.h > > @@ -272,5 +272,12 @@ static inline void mmc_set_disable_delay(struct > > mmc_host *host, > >

Re: [PATCH 1/2] mmc: Add helper function to check if a card is removable

2010-08-28 Thread Ben Hutchings
On Sat, 2010-08-28 at 14:53 +0100, Matt Fleming wrote: [...] > --- a/include/linux/mmc/host.h > +++ b/include/linux/mmc/host.h > @@ -272,5 +272,12 @@ static inline void mmc_set_disable_delay(struct mmc_host > *host, > host->disable_delay = disable_delay; > } > > +extern int mmc_assume_rem

[PATCH 1/2] mmc: Add helper function to check if a card is removable

2010-08-28 Thread Matt Fleming
There are two checks that need to be made when determining whether a card is removable. A host controller may set MMC_CAP_NONREMOVABLE if the controller does not support removing cards (e.g. eMMC), in which case the card is physically non-removable. Also the 'mmc_assume_removable' module parameter