mmc: core: Init mmc host clock scaling suspend state
We track the mmc clock scaling state using mmc host's flag is_suspended. During the first SD card removal event, mmc driver suspends the clock scaling to cancel any pending scaling work; however, the is_suspended flag value remains set to TRUE. When the SD card is inserted and removed again, the mmc shall not suspend the clock scaling because the is_suspended flag is set to TRUE. Resetting the mmc host clock scaling's is_suspended to FALSE during the clock scaling initialization to ensure that the driver suspend the clock scaling properly for subsequent card removal events. Change-Id: I44defcc95f50e4ed2ee17bc249f7bff867920ceb Signed-off-by:Can Guo <cang@codeaurora.org> Signed-off-by:
Ram Prakash Gupta <rampraka@codeaurora.org>
Loading
Please register or sign in to comment