Thread (21 messages) 21 messages, 7 authors, 2015-08-25

[PATCH 2/3] mmc: dw_mmc: simplify the SDMMC_CLKEN_LOW_PWR logic

From: Michal Suchanek <hidden>
Date: 2015-08-17 14:56:28
Also in: linux-mmc, lkml

 Hello,

On 17 August 2015 at 16:42, Alim Akhtar [off-list ref] wrote:
HI

On Mon, Aug 17, 2015 at 4:56 PM, Jaehoon Chung [off-list ref] wrote:
quoted
On 08/17/2015 02:52 PM, Michal Suchanek wrote:
quoted
Hello,

On 17 August 2015 at 03:55, Jaehoon Chung [off-list ref] wrote:
quoted
Hi, Michal.

On 08/12/2015 09:23 PM, Michal Suchanek wrote:
quoted
The driver has open-coded test for SDIO cards. Use the mmc core provided
MMC_QUIRK_BROKEN_CLK_GATING flag instead.
Did you use the clock-gating for SDIO cards?
Doesn't MMC_CAP_SDIO_IRQ bit set? Which case is broken?
Could you explain to me more?
The core flag for disabling power saving is MMC_QUIRK_BROKEN_CLK_GATING.
I understood your intention. And i read the comment into mmc/core/quirks.c
I will test SDIO card with this patch. Thanks.
When you test, please check if SDIO IRQ still works, we need to put
dw_mmc in low_power mode otherwise SDIO IRQ will be not be generated
by dw_mmc host controller.
As far as I understand the logic which is removed in this patch and
the core logic which replaces it is the same -  low power by means of
clock gating is *not* enabled for SDIO cards in either case.

The original code also checks for SDIO IRQ and disables clock gating
regardless of card type which is probably redundant. If not it should
be fixed in mmc core.

My recent kernel builds which I run on a system with mwifiex card
probably include this patch.

Thanks

Michal
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help