Merge "mmc: sdhci-msm: Provide module/cmdline parameter for disabling cmdq"
This commit is contained in:
commit
3b74b552e9
1 changed files with 8 additions and 0 deletions
|
@ -335,6 +335,9 @@ static int disable_slots;
|
|||
/* root can write, others read */
|
||||
module_param(disable_slots, int, S_IRUGO|S_IWUSR);
|
||||
|
||||
static bool nocmdq;
|
||||
module_param(nocmdq, bool, S_IRUGO|S_IWUSR);
|
||||
|
||||
enum vdd_io_level {
|
||||
/* set vdd_io_data->low_vol_level */
|
||||
VDD_IO_LOW,
|
||||
|
@ -4135,6 +4138,11 @@ static void sdhci_msm_cmdq_init(struct sdhci_host *host,
|
|||
struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
|
||||
struct sdhci_msm_host *msm_host = pltfm_host->priv;
|
||||
|
||||
if (nocmdq) {
|
||||
dev_dbg(&pdev->dev, "CMDQ disabled via cmdline\n");
|
||||
return;
|
||||
}
|
||||
|
||||
host->cq_host = cmdq_pltfm_init(pdev);
|
||||
if (IS_ERR(host->cq_host)) {
|
||||
dev_dbg(&pdev->dev, "cmdq-pltfm init: failed: %ld\n",
|
||||
|
|
Loading…
Add table
Reference in a new issue