Commit b84fc1a4 authored by Kornel Dulęba's avatar Kornel Dulęba Committed by Zheng Zengkai
Browse files

mmc: sdhci-pci-gli: Disable LPM during initialization

stable inclusion
from stable-v6.6.5
commit a488e3e5b11178a18b431e2defea4808332aee70
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8N21P

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=a488e3e5b11178a18b431e2defea4808332aee70



--------------------------------

commit d9ed644f58670865cf067351deb71010bd87a52f upstream.

To address IO performance commit f9e5b339
("mmc: host: Improve I/O read/write performance for GL9763E")
limited LPM negotiation to runtime suspend state.
The problem is that it only flips the switch in the runtime PM
resume/suspend logic.

Disable LPM negotiation in gl9763e_add_host.
This helps in two ways:
1. It was found that the LPM switch stays in the same position after
   warm reboot. Having it set in init helps with consistency.
2. Disabling LPM during the first runtime resume leaves us susceptible
   to the performance issue in the time window between boot and the
   first runtime suspend.

Fixes: f9e5b339 ("mmc: host: Improve I/O read/write performance for GL9763E")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarKornel Dulęba <korneld@chromium.org>
Reviewed-by: default avatarSven van Ashbrook <svenva@chromium.org>
Acked-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20231114115516.1585361-1-korneld@chromium.org


Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 0c4e1c40
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment