OSDN Git Service

mmc: host: Improve I/O read/write performance for GL9763E
authorJason Lai <jasonlai.genesyslogic@gmail.com>
Mon, 13 Jun 2022 09:29:07 +0000 (17:29 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 12 Jul 2022 10:25:38 +0000 (12:25 +0200)
commitf9e5b33934cec24b8c024add5c5d65d2f93ade05
tree08d5176987c76d289adf64be767e1a6050a4c288
parentf6c3397dc67f8141f1a7931e891732351a27d3e1
mmc: host: Improve I/O read/write performance for GL9763E

Due to flaws in hardware design, GL9763E takes long time to exit from L1
state. The I/O performance will suffer severe impact if it often enter and
exit L1 state during I/O requests.

To improve I/O read/write performance and take battery life into account,
let's turn on GL9763E L1 negotiation before entering runtime suspend and
turn off GL9763E L1 negotiation while executing runtime resume. That is to
say, GL9763E will not enter L1 state when executing I/O requests and enter
L1 state when PCIe bus idle.

Signed-off-by: Renius Chen <reniuschengl@gmail.com>
Signed-off-by: Jason Lai <jason.lai@genesyslogic.com.tw>
Link: https://lore.kernel.org/r/20220613092907.2502-1-jason.lai@genesyslogic.com.tw
[Ulf: Improved the commit message a bit]
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-pci-gli.c