android_kernel_motorola_sm6225/include/linux/mmc
Veerabhadrarao Badiganti 1aacdcf9a1 mmc: Clock Scaling changes on 4.19 kernel
Besides below listed patches, resolved merge conflicts
and updated scaling in CQE path to support upstream CQE/MQ
solution.

This is squash of following mmc clock scaling patches:
-----------------------------------------------------

CMQ specific changes:
--------------------
9591b99 : fix invalid state handling during cm
339a4e1 : Add clock scaling for CMDQ mode
ToDo: 01deb37 : serialize the requests if we are scaled down~

Generic scaling chagnes:
-----------------------
From 4.14 kernel:
a95906d   : Remove suspend/resume clk-scaling logic from mmc_rese
d139f5e3  :Update target-frequency while resuming clock scalin

From 4.9 kernel
f4ac989   : Use new flag for suspending clk scaling
6720af387a: Correct the checks while setting clock scaling frequencies
2f3f4ebb4 : Use PF_MEMALLOC flag for clock scaling context
e2f8af3d91: Handle error case in mmc_suspend
7f5e93a4db: Disable clock scaling during shutdown
450552a6c : Avoid returning error when clok scaling devfreq is removed
b263703672: Use mmc_reset instead of power_restore
4ef47bcd0 : Fix the issue with clock scaling in resume-scaling
48887f382 : initialize the devfreq table with default frequencies
f3218eb38 : fix the pointer cast of freq_table
edac91ad8b: fix issue with clock scaling in HS200 mode
c364cee0b8: modify scaling up/down sequence
a0723f267 : Add NULL check for host->card
d18963a   : fix deadlock between runtime-suspend and
ce8b61e2  : Set max frequency when disabling clock scaling
1a9cf8b   : fix issue with devfreq clock scalin
9379bf9   : resolve deadlock between devfreq update and susp
0fcc35f   : support DDR52 bus-speed during eMMC clock scaling
164db7b21 : mmc: core: fix downdifferential for clock scaling
ee975d3   : check if manual BKOPS is ongoing before scaling
999102c32 : add support for devfreq suspend/resume
8f00420   : clock-scaling: scale only for data re
3904067   : add runtime PM voting to devfreq context
5cd5d9f   : avoid returning error value for clk-scaling
c96b666   : disable clock scaling before sys
87605ad   : change locking from irq_save to bh
df07bec   : Fix clock scaling for HS400 with enhanced stro
54f9de1   : Fix in mmc clk-s
a52f84e   : fix MMC clock scaling to meet upstream HS4
7dc5f79   : devfreq: migrate to devfreq based clock
f125b55   : fix SD card runtime suspend sequence for cloc
6297e40   : fix disable clock scalin
a12e92b   : core: Fix clock frequency transitions during inval
4e3a8b4   : Exit clock scaling prior to removing
3449b4f   : add clock-scaling support to HS400 cards
86787cd   : core: Add support for notifying host driver while scaling
a3f56e1   : Bypass clock scaling while accessing RPMB partition
8ca7092   : run clock scaling only in valid card state
cb18d8585d: Add load based clock scaling support
a0230ca50 : Fix MMC clock scaling in case of tuning failure
7095b8e8c : Allow changing bus frequency for SD/eMMC cards in runtime

Sysfs changes for clock scaling feature (from 4.9):
-------------------------------------------------
8920fc713 : Update the logic of controlling clk scaling through sysfs
64753b808 : claim mmc host while enabling clock scaling from userspace
00d52acb3 : Add sysfs entries for dynamic control of clock scaling
16d0832   : Add a debugfs entry to set max clock rat

mmc: sd: Add support for Ultra High Speed card to get
max frequency

This change adds Ultra High Speed cards to
mmc_sd_get_max_clock() API.
Cards that support Ultra High Speed can set timing of
SDR104 which supports frequency up to 208Mhz.

mmc: core: Add active request in mmc driver to be used in scaling

Number of active request are needed to decide when to stop scaling.
Add active reqs variable in host structure to keep the active request
count and use in scaling.

mmc: core: Use freq table with devfreq

Register the min/max frequencies with devfreq and use
these to determine if we're trying to step up or down.

mmc: sd: Add deferred scaling change bus speed

In deferred scaling, no need to claim host as host
is already claimed using get card.

Change-Id: Iaf42fdbb738e0d8a05c28be5a61db1540dde0ca5
Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
Signed-off-by: Talel Shenhar <tatias@codeaurora.org>
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
Signed-off-by: Ritesh Harjani <riteshh@codeaurora.org>
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
Signed-off-by: Bao D. Nguyen <nguyenb@codeaurora.org>
Signed-off-by: Ram Prakash Gupta <rampraka@codeaurora.org>
2019-05-14 12:03:43 +05:30
..
card.h mmc: Clock Scaling changes on 4.19 kernel 2019-05-14 12:03:43 +05:30
core.h mmc: sdhci-msm-ice: Add Inline Crypto Engine (ICE) support 2019-05-13 13:12:24 +05:30
host.h mmc: Clock Scaling changes on 4.19 kernel 2019-05-14 12:03:43 +05:30
mmc.h mmc: sdhci-msm: Port base platform driver from 4.14 to 4.19 2019-05-13 13:12:22 +05:30
pm.h ANDROID: mmc: core: Add "ignore mmc pm notify" functionality 2018-12-05 09:48:12 -08:00
sd.h
sdhci-pci-data.h
sdio.h Revert "mmc: driver's changes from kernel msm-4.14 to msm-4.19" 2019-05-13 13:12:22 +05:30
sdio_func.h
sdio_ids.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2018-06-06 18:39:49 -07:00
sh_mmcif.h
slot-gpio.h Revert "mmc: driver's changes from kernel msm-4.14 to msm-4.19" 2019-05-13 13:12:22 +05:30