Skip to contentSkip to conversation

mmc: Support generic PCI SD host controller

PATCH In review Bin Meng 3 participants 6 messages Aug 9, 2017 – Aug 17, 2017 MMC, SD and SDIO

lore
Share & tools
lore

Bin Meng

author
#0 lore raw

PATCH 1/1 mmc: Support generic PCI SD host controller

This changes pci_mmc driver to use PCI_CLASS_SYSTEM_SDHCI instead of individual vendor id & device id pair to support generic PCI SD host controller.

---

 drivers/mmc/pci_mmc.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/mmc/pci_mmc.c +1 -6
index 6db8977..05c0044 100644
@@ -64,12 +64,7 @@ U_BOOT_DRIVER(pci_mmc) = {
 };
 
 static struct pci_device_id mmc_supported[] = {
-	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_BYT_SDIO) },
-	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_BYT_SD) },
-	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_BYT_EMMC2) },
-	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_QRK_SDIO) },
-	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TCF_SDIO_0) },
-	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TCF_SDIO_1) },
+	{ PCI_DEVICE_CLASS(PCI_CLASS_SYSTEM_SDHCI << 8, 0xffff00) },
 	{},
 };
 
Signature · 1 line
2.9.2
author
#1 lore raw

PATCH 1/1 mmc: Support generic PCI SD host controller

Hi Jaehoon, Tom,

Quoted 10 lines · Bin Meng

This changes pci_mmc driver to use PCI_CLASS_SYSTEM_SDHCI instead of individual vendor id & device id pair to support generic PCI SD host controller.

---

 drivers/mmc/pci_mmc.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

Who is going to review and take this patch?

Regards,
Bin

#2 lore raw

PATCH 1/1 mmc: Support generic PCI SD host controller

Quoted 7 lines · Bin Meng

Hi Jaehoon, Tom,

Quoted 4 lines · Bin Meng

This changes pci_mmc driver to use PCI_CLASS_SYSTEM_SDHCI instead of individual vendor id & device id pair to support generic PCI SD host controller.

Quoted 8 lines
Quoted 6 lines

---

 drivers/mmc/pci_mmc.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

Who is going to review and take this patch?

I would expect Jaehoon to review and take this. Thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170814/522f63ed/attachment.sig>
#3 lore raw
In reply to Bin Meng
Quoted 29 lines · Bin Meng

This changes pci_mmc driver to use PCI_CLASS_SYSTEM_SDHCI instead of individual vendor id & device id pair to support generic PCI SD host controller.

---

 drivers/mmc/pci_mmc.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/mmc/pci_mmc.c +1 -6
index 6db8977..05c0044 100644
@@ -64,12 +64,7 @@ U_BOOT_DRIVER(pci_mmc) = {
 };
 
 static struct pci_device_id mmc_supported[] = {
-	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_BYT_SDIO) },
-	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_BYT_SD) },
-	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_BYT_EMMC2) },
-	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_QRK_SDIO) },
-	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TCF_SDIO_0) },
-	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TCF_SDIO_1) },
+	{ PCI_DEVICE_CLASS(PCI_CLASS_SYSTEM_SDHCI << 8, 0xffff00) },
 	{},
 };
 
#4 lore raw
In reply to Bin Meng
Quoted 5 lines · Bin Meng

This changes pci_mmc driver to use PCI_CLASS_SYSTEM_SDHCI instead of individual vendor id & device id pair to support generic PCI SD host controller.

Sorry for late. Applied to u-boot-mmc. Thanks!

Best Regards,
Jaehoon Chung

Quoted 24 lines

---

 drivers/mmc/pci_mmc.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/mmc/pci_mmc.c +1 -6
index 6db8977..05c0044 100644
@@ -64,12 +64,7 @@ U_BOOT_DRIVER(pci_mmc) = {
 };
 
 static struct pci_device_id mmc_supported[] = {
-	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_BYT_SDIO) },
-	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_BYT_SD) },
-	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_BYT_EMMC2) },
-	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_QRK_SDIO) },
-	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TCF_SDIO_0) },
-	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TCF_SDIO_1) },
+	{ PCI_DEVICE_CLASS(PCI_CLASS_SYSTEM_SDHCI << 8, 0xffff00) },
 	{},
 };
 
author
#5 lore raw

Hi Jaehoon,

Quoted 9 lines · Jaehoon Chung
Quoted 5 lines · Bin Meng

This changes pci_mmc driver to use PCI_CLASS_SYSTEM_SDHCI instead of individual vendor id & device id pair to support generic PCI SD host controller.

Sorry for late. Applied to u-boot-mmc. Thanks!

No problem. Thanks!

Regards,
Bin