Skip to contentSkip to conversation

mmc: sdhci-pci-o2micro: Bug fix for O2 host controller Seabird1

PATCH In review shirley her 3 participants 3 messages Jul 21, 2020 – Aug 5, 2020 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 mmc: sdhci-pci-o2micro: Bug fix for O2 host controller Seabird1

Add bug fix for O2 host controller Seabird1

---
change in V1:
1. Add quriks2 and mmc->caps2 for Seabird1
2. Add get_cd support for Seabird1

---
 drivers/mmc/host/sdhci-pci-o2micro.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/mmc/host/sdhci-pci-o2micro.c +6 -0
index e2a846885902..ed3c605fcf0c 100644
@@ -561,6 +561,12 @@ static int sdhci_pci_o2_probe_slot(struct sdhci_pci_slot *slot)
 			slot->host->mmc_host_ops.get_cd = sdhci_o2_get_cd;
 		}
 
+		if (chip->pdev->device == PCI_DEVICE_ID_O2_SEABIRD1) {
+			slot->host->mmc_host_ops.get_cd = sdhci_o2_get_cd;
+			host->mmc->caps2 |= MMC_CAP2_NO_SDIO;
+			host->quirks2 |= SDHCI_QUIRK2_PRESET_VALUE_BROKEN;
+		}
+
 		host->mmc_host_ops.execute_tuning = sdhci_o2_execute_tuning;
 
 		if (chip->pdev->device != PCI_DEVICE_ID_O2_FUJIN2)
Signature · 1 line
2.25.1

A message that is not in the archive (sent off-list or not yet received): BY5PR16MB33196E3E0FB7C2143BE7D73F8B4D0@BY5PR16MB3319.namprd16.prod.outlook.com

maintainer
#2 lore raw

Sorry, I have been away for a while, but I will look at it shortly.

Quoted 54 lines · Shirley Her (SC)

Hi, Adrian:

Do you have chance to review the patched code?

Thanks,
Shirley

----------------------------------------------------------------------------
*From:* Shirley Her (SC) <[email protected]>
*Sent:* Monday, July 20, 2020 6:18 PM
*To:* [email protected] <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
*Cc:* Shaper Liu (WH) <[email protected]>; Chevron Li (WH) <[email protected]>; Xiaoguang Yu (WH) <[email protected]>; Max Huang (SC) <[email protected]>; Shirley Her (SC) <[email protected]>
*Subject:* [PATCH V1 1/2] mmc: sdhci-pci-o2micro: Bug fix for O2 host controller Seabird1

Add bug fix for O2 host controller Seabird1

---
change in V1:
1. Add quriks2 and mmc->caps2 for Seabird1
2. Add get_cd support for Seabird1
---
 drivers/mmc/host/sdhci-pci-o2micro.c | 6 ++++++

 1 file changed, 6 insertions(+)
drivers/mmc/host/sdhci-pci-o2micro.c +0 -0
index e2a846885902..ed3c605fcf0c 100644
@@ -561,6 +561,12 @@ static int sdhci_pci_o2_probe_slot(struct
 sdhci_pci_slot *slot)
                          slot->host->mmc_host_ops.get_cd = sdhci_o2_get_cd;
                  }


+               if (chip->pdev->device == PCI_DEVICE_ID_O2_SEABIRD1) { +                       slot->host->mmc_host_ops.get_cd = sdhci_o2_get_cd; +                       host->mmc->caps2 |= MMC_CAP2_NO_SDIO;
+                       host->quirks2 |= SDHCI_QUIRK2_PRESET_VALUE_BROKEN; +               }
+
                 host->mmc_host_ops.execute_tuning = sdhci_o2_execute_tuning;
                 if (chip->pdev->device != PCI_DEVICE_ID_O2_FUJIN2)

Signature · 1 line
2.25.1
#3 lore raw
In reply to shirley her
Quoted 4 lines · shirley her

Add bug fix for O2 host controller Seabird1

Applied for next (a while ago), thanks!

Quoted 4 lines

---
change in V1:
1. Add quriks2 and mmc->caps2 for Seabird1
2. Add get_cd support for Seabird1

Future wise, I wouldn't mind that you fold some of this information into the commit message. It's always good to have a good description of the change.

Kind regards
Uffe

Quoted 24 lines
---
 drivers/mmc/host/sdhci-pci-o2micro.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/mmc/host/sdhci-pci-o2micro.c +6 -1
index e2a846885902..ed3c605fcf0c 100644
@@ -561,6 +561,12 @@ static int sdhci_pci_o2_probe_slot(struct sdhci_pci_slot *slot)
                        slot->host->mmc_host_ops.get_cd = sdhci_o2_get_cd;
                }
 
+               if (chip->pdev->device == PCI_DEVICE_ID_O2_SEABIRD1) {
+                       slot->host->mmc_host_ops.get_cd = sdhci_o2_get_cd;
+                       host->mmc->caps2 |= MMC_CAP2_NO_SDIO;
+                       host->quirks2 |= SDHCI_QUIRK2_PRESET_VALUE_BROKEN;
+               }
+
                host->mmc_host_ops.execute_tuning = sdhci_o2_execute_tuning;
 
                if (chip->pdev->device != PCI_DEVICE_ID_O2_FUJIN2)
--

2.25.1