Page MenuHomeFreeBSD

D5962.id.diff
No OneTemporary

D5962.id.diff

Index: head/sys/dev/flash/mx25l.c
===================================================================
--- head/sys/dev/flash/mx25l.c
+++ head/sys/dev/flash/mx25l.c
@@ -432,6 +432,12 @@
return (err);
}
+static struct ofw_compat_data compat_data[] = {
+ { "st,m25p", 1 },
+ { "jedec,spi-nor", 1 },
+ { NULL, 0 },
+};
+
static int
mx25l_probe(device_t dev)
{
@@ -439,7 +445,7 @@
#ifdef FDT
if (!ofw_bus_status_okay(dev))
return (ENXIO);
- if (!ofw_bus_is_compatible(dev, "st,m25p"))
+ if (ofw_bus_search_compatible(dev, compat_data)->ocd_data == 0)
return (ENXIO);
#endif
device_set_desc(dev, "M25Pxx Flash Family");

File Metadata

Mime Type
text/plain
Expires
Sun, Aug 23, 11:29 PM (1 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37124419
Default Alt Text
D5962.id.diff (637 B)

Event Timeline