]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commit
mmc: Add h/w command queuing feature support
authorR Raj Kumar <rrajk@nvidia.com>
Thu, 16 Jul 2015 08:51:47 +0000 (14:21 +0530)
committerR Raj Kumar <rrajk@nvidia.com>
Mon, 20 Jun 2016 08:15:07 +0000 (01:15 -0700)
commitb6c2724e9f003dbfe25d98ee6a4b09e92266f528
treef02e081e19483f09690ec1f0619417b8c2ff1217
parent71650543a54fc01c334f768f8927076364ce6e63
mmc: Add h/w command queuing feature support

- Set cmdq_support and cmdq_depth values only
when cmdq support is enabled
- Select ADMA3_CQE as dma mode before switching
to eMMC CQ mode
- Set link descriptor length with right values
- Clear cmdq interrupt and analyze the interrupt
status register for any errors and added callback
in mmc_host_ops structure
- Update bytes_xfered filed after request is served
- Freeing the allocated descriptors
- Use polling for checking cmdq halt status
- resolve conflicts with upstreamed HW CQ patch

Bug 200070209
Bug 200193440

Change-Id: I01237b28e7f4940c589b75c945048116bd72f397
Reviewed-on: http://git-master/r/779448

Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Change-Id: Icbc1a9da07a3db4fb52bc8adcb1c2722f49557af
Reviewed-on: http://git-master/r/1166878
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
drivers/mmc/core/mmc.c
drivers/mmc/host/cmdq_hci.c
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h
include/linux/mmc/cmdq_hci.h
include/linux/mmc/host.h