Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106083123
D10999.id29042.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D10999.id29042.diff
View Options
Index: sys/dev/sdhci/sdhci.c
===================================================================
--- sys/dev/sdhci/sdhci.c
+++ sys/dev/sdhci/sdhci.c
@@ -731,11 +731,11 @@
MMC_CAP_MMC_DDR52_180 | MMC_CAP_MMC_HS200_180 |
MMC_CAP_MMC_HS400_180))
host_caps |= MMC_CAP_SIGNALING_180;
- if (caps & SDHCI_CTRL2_DRIVER_TYPE_A)
+ if (caps2 & SDHCI_CAN_DRIVE_TYPE_A)
host_caps |= MMC_CAP_DRIVER_TYPE_A;
- if (caps & SDHCI_CTRL2_DRIVER_TYPE_C)
+ if (caps2 & SDHCI_CAN_DRIVE_TYPE_C)
host_caps |= MMC_CAP_DRIVER_TYPE_C;
- if (caps & SDHCI_CTRL2_DRIVER_TYPE_D)
+ if (caps2 & SDHCI_CAN_DRIVE_TYPE_D)
host_caps |= MMC_CAP_DRIVER_TYPE_D;
slot->host.caps = host_caps;
@@ -769,9 +769,9 @@
(caps & SDHCI_CAN_VDD_180) ? " 1.8V" : "",
(host_caps & MMC_CAP_SIGNALING_180) ? " 1.8V" : "",
(host_caps & MMC_CAP_SIGNALING_120) ? " 1.2V" : "",
- (caps & SDHCI_CTRL2_DRIVER_TYPE_A) ? "A" : "",
- (caps & SDHCI_CTRL2_DRIVER_TYPE_C) ? "C" : "",
- (caps & SDHCI_CTRL2_DRIVER_TYPE_D) ? "D" : "",
+ (caps2 & SDHCI_CAN_DRIVE_TYPE_A) ? "A" : "",
+ (caps2 & SDHCI_CAN_DRIVE_TYPE_C) ? "C" : "",
+ (caps2 & SDHCI_CAN_DRIVE_TYPE_D) ? "D" : "",
(slot->opt & SDHCI_HAVE_DMA) ? "DMA" : "PIO");
if (host_caps & (MMC_CAP_MMC_DDR52 | MMC_CAP_MMC_HS200 |
MMC_CAP_MMC_HS400 | MMC_CAP_MMC_ENH_STROBE))
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 26, 2:57 AM (11 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15600737
Default Alt Text
D10999.id29042.diff (1 KB)
Attached To
Mode
D10999: Fix typo in Driver Type A/C/D capability checks in sdhci.
Attached
Detach File
Event Timeline
Log In to Comment