Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F169777433
D32209.id95883.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
590 B
Referenced Files
None
Subscribers
None
D32209.id95883.diff
View Options
Index: sys/dev/mmc/mmc_helpers.c
===================================================================
--- sys/dev/mmc/mmc_helpers.c
+++ sys/dev/mmc/mmc_helpers.c
@@ -105,9 +105,9 @@
* if it's not present based on the clock that the mmc controller
* operates on
*/
- max_freq = 0;
- device_get_property(dev, "max-frequency", &max_freq, sizeof(uint64_t));
- host->f_max = max_freq;
+ if (device_get_property(dev, "max-frequency", &max_freq,
+ sizeof(uint64_t)) > 0)
+ host->f_max = max_freq;
if (device_has_property(dev, "broken-cd"))
helper->props |= MMC_PROP_BROKEN_CD;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Sep 3, 1:10 PM (16 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38084871
Default Alt Text
D32209.id95883.diff (590 B)
Attached To
Mode
D32209: mmc: Fix regression in 8a8166e5bcfb breaking Stratix 10 boot
Attached
Detach File
Event Timeline
Log In to Comment