mmc: add hot plug support using extcon framework
We need to add the support for gpio based card insertion/removal event detection support. But this is bit complicated as current platforms have the combo card slot which can either take SD or UFS card at one time and there is a single GPIO assigned for card detect event. This means we need some module which takes the responsibility of controlling (configuration, interrupt handling) this shared card detection GPIO and pass card detection event to both MMC and UFS card drivers so they can probe to see what card is inserted. Kernel already have the extcon-gpio module which can be used a gpio control module and can pass the card detection event to both MMC & UFS card drivers. So MMC driver registers the notification callback with extcon driver and tries to detect/remove the SD card. Change-Id: I860827272bfaa24116d9550a331657b99f53ec50 Signed-off-by:Subhash Jadavani <subhashj@codeaurora.org> Signed-off-by:
Ram Prakash Gupta <rampraka@codeaurora.org>
Loading
Please register or sign in to comment