linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mmc: sdhci-acpi: add QCOM controllers
@ 2016-03-03 16:38 Philip Elcan
  2016-03-08 13:57 ` Adrian Hunter
  2016-03-16 11:37 ` Ulf Hansson
  0 siblings, 2 replies; 3+ messages in thread
From: Philip Elcan @ 2016-03-03 16:38 UTC (permalink / raw)
  To: Ulf Hansson, Adrian Hunter, Michele Curti, Philip Elcan,
	linux-mmc, linux-kernel
  Cc: Timur Tabi, linux-arm-msm

This adds the HIDs for Qualcomm Technologies Inc SDHC
controllers:
QCOM8051: non-removable device that does not support 1.8v
QCOM8052: non-removable device that does support 1.8v

Signed-off-by: Philip Elcan <pelcan@codeaurora.org>
---
 drivers/mmc/host/sdhci-acpi.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/drivers/mmc/host/sdhci-acpi.c b/drivers/mmc/host/sdhci-acpi.c
index a5cda92..041e739 100644
--- a/drivers/mmc/host/sdhci-acpi.c
+++ b/drivers/mmc/host/sdhci-acpi.c
@@ -264,6 +264,17 @@ static const struct sdhci_acpi_slot sdhci_acpi_slot_int_sd = {
 	.probe_slot	= sdhci_acpi_sd_probe_slot,
 };
 
+static const struct sdhci_acpi_slot sdhci_acpi_slot_qcom_sd_3v = {
+	.quirks  = SDHCI_QUIRK_BROKEN_CARD_DETECTION,
+	.quirks2 = SDHCI_QUIRK2_NO_1_8_V,
+	.caps    = MMC_CAP_NONREMOVABLE,
+};
+
+static const struct sdhci_acpi_slot sdhci_acpi_slot_qcom_sd = {
+	.quirks  = SDHCI_QUIRK_BROKEN_CARD_DETECTION,
+	.caps    = MMC_CAP_NONREMOVABLE,
+};
+
 struct sdhci_acpi_uid_slot {
 	const char *hid;
 	const char *uid;
@@ -284,6 +295,8 @@ static const struct sdhci_acpi_uid_slot sdhci_acpi_uids[] = {
 	{ "INT344D"  , NULL, &sdhci_acpi_slot_int_sdio },
 	{ "PNP0FFF"  , "3" , &sdhci_acpi_slot_int_sd   },
 	{ "PNP0D40"  },
+	{ "QCOM8051", NULL, &sdhci_acpi_slot_qcom_sd_3v },
+	{ "QCOM8052", NULL, &sdhci_acpi_slot_qcom_sd },
 	{ },
 };
 
@@ -298,6 +311,8 @@ static const struct acpi_device_id sdhci_acpi_ids[] = {
 	{ "INT3436"  },
 	{ "INT344D"  },
 	{ "PNP0D40"  },
+	{ "QCOM8051" },
+	{ "QCOM8052" },
 	{ },
 };
 MODULE_DEVICE_TABLE(acpi, sdhci_acpi_ids);
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] mmc: sdhci-acpi: add QCOM controllers
  2016-03-03 16:38 [PATCH] mmc: sdhci-acpi: add QCOM controllers Philip Elcan
@ 2016-03-08 13:57 ` Adrian Hunter
  2016-03-16 11:37 ` Ulf Hansson
  1 sibling, 0 replies; 3+ messages in thread
From: Adrian Hunter @ 2016-03-08 13:57 UTC (permalink / raw)
  To: Philip Elcan, Ulf Hansson, Michele Curti, linux-mmc, linux-kernel
  Cc: Timur Tabi, linux-arm-msm

On 03/03/16 18:38, Philip Elcan wrote:
> This adds the HIDs for Qualcomm Technologies Inc SDHC
> controllers:
> QCOM8051: non-removable device that does not support 1.8v
> QCOM8052: non-removable device that does support 1.8v
> 
> Signed-off-by: Philip Elcan <pelcan@codeaurora.org>

Acked-by: Adrian Hunter <adrian.hunter@intel.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] mmc: sdhci-acpi: add QCOM controllers
  2016-03-03 16:38 [PATCH] mmc: sdhci-acpi: add QCOM controllers Philip Elcan
  2016-03-08 13:57 ` Adrian Hunter
@ 2016-03-16 11:37 ` Ulf Hansson
  1 sibling, 0 replies; 3+ messages in thread
From: Ulf Hansson @ 2016-03-16 11:37 UTC (permalink / raw)
  To: Philip Elcan
  Cc: Adrian Hunter, Michele Curti, linux-mmc, linux-kernel,
	Timur Tabi, linux-arm-msm

On 3 March 2016 at 17:38, Philip Elcan <pelcan@codeaurora.org> wrote:
> This adds the HIDs for Qualcomm Technologies Inc SDHC
> controllers:
> QCOM8051: non-removable device that does not support 1.8v
> QCOM8052: non-removable device that does support 1.8v
>
> Signed-off-by: Philip Elcan <pelcan@codeaurora.org>

Thanks, applied for next!

Kind regards
Uffe

> ---
>  drivers/mmc/host/sdhci-acpi.c | 15 +++++++++++++++
>  1 file changed, 15 insertions(+)
>
> diff --git a/drivers/mmc/host/sdhci-acpi.c b/drivers/mmc/host/sdhci-acpi.c
> index a5cda92..041e739 100644
> --- a/drivers/mmc/host/sdhci-acpi.c
> +++ b/drivers/mmc/host/sdhci-acpi.c
> @@ -264,6 +264,17 @@ static const struct sdhci_acpi_slot sdhci_acpi_slot_int_sd = {
>         .probe_slot     = sdhci_acpi_sd_probe_slot,
>  };
>
> +static const struct sdhci_acpi_slot sdhci_acpi_slot_qcom_sd_3v = {
> +       .quirks  = SDHCI_QUIRK_BROKEN_CARD_DETECTION,
> +       .quirks2 = SDHCI_QUIRK2_NO_1_8_V,
> +       .caps    = MMC_CAP_NONREMOVABLE,
> +};
> +
> +static const struct sdhci_acpi_slot sdhci_acpi_slot_qcom_sd = {
> +       .quirks  = SDHCI_QUIRK_BROKEN_CARD_DETECTION,
> +       .caps    = MMC_CAP_NONREMOVABLE,
> +};
> +
>  struct sdhci_acpi_uid_slot {
>         const char *hid;
>         const char *uid;
> @@ -284,6 +295,8 @@ static const struct sdhci_acpi_uid_slot sdhci_acpi_uids[] = {
>         { "INT344D"  , NULL, &sdhci_acpi_slot_int_sdio },
>         { "PNP0FFF"  , "3" , &sdhci_acpi_slot_int_sd   },
>         { "PNP0D40"  },
> +       { "QCOM8051", NULL, &sdhci_acpi_slot_qcom_sd_3v },
> +       { "QCOM8052", NULL, &sdhci_acpi_slot_qcom_sd },
>         { },
>  };
>
> @@ -298,6 +311,8 @@ static const struct acpi_device_id sdhci_acpi_ids[] = {
>         { "INT3436"  },
>         { "INT344D"  },
>         { "PNP0D40"  },
> +       { "QCOM8051" },
> +       { "QCOM8052" },
>         { },
>  };
>  MODULE_DEVICE_TABLE(acpi, sdhci_acpi_ids);
> --
> The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
> a Linux Foundation Collaborative Project
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-03-16 11:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-03 16:38 [PATCH] mmc: sdhci-acpi: add QCOM controllers Philip Elcan
2016-03-08 13:57 ` Adrian Hunter
2016-03-16 11:37 ` Ulf Hansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).