[Meego-kernel] [PATCH v1 3/3]mmc:implement the reset eMMC card part for MFLD sdhci host controller

Dong, Chuanxiao chuanxiao.dong at intel.com
Tue Nov 9 08:28:20 PST 2010


> -----Original Message-----
> From: Alan Cox [mailto:alan at linux.intel.com]
> Sent: Tuesday, November 09, 2010 6:43 PM
> To: Dong, Chuanxiao
> Cc: arjan at linux.intel.com; meego-kernel at meego.com
> Subject: Re: [Meego-kernel] [PATCH v1 3/3]mmc:implement the reset eMMC card
> part for MFLD sdhci host controller
> 
> 
> gpio_request can fail so that ought to be checked. Also we have name
> tables in the firmware for gpio lines to avoid hardcoding random magic
> numbers per board so they want using.
> 
> Can we get something like mmc_reset_0, mmc_reset_1, mmc_reset_2 in the
> SFI names so that for any future product we won't need code changes.

Alan, I have a question about the SFI table.
I have checked some drivers which also need request GPIO lines. Found that those drivers can get the GPIO lines' number from the driver specified platform data passed in their 'probe' routine. They are registered as a platform device. However MMC driver is registered as a PCI device, how can it get the GPIO lines' number from a driver specified platform data? Any idea?


More information about the MeeGo-kernel mailing list