Date: Sat, 23 Jan 2016 05:26:30 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r294616 - head/sys/geom Message-ID: <201601230526.u0N5QUKA074467@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adrian Date: Sat Jan 23 05:26:29 2016 New Revision: 294616 URL: https://svnweb.freebsd.org/changeset/base/294616 Log: Teach the flashmap code about the SPI flash. PR: kern/206227 Submitted by: Stanislav Galabov <sgalabov@gmail.com> Modified: head/sys/geom/geom_flashmap.c Modified: head/sys/geom/geom_flashmap.c ============================================================================== --- head/sys/geom/geom_flashmap.c Sat Jan 23 04:18:44 2016 (r294615) +++ head/sys/geom/geom_flashmap.c Sat Jan 23 05:26:29 2016 (r294616) @@ -190,8 +190,12 @@ g_flashmap_taste(struct g_class *mp, str size = sizeof(device_t); if (g_io_getattr("NAND::device", cp, &size, &dev)) { size = sizeof(device_t); - if (g_io_getattr("CFI::device", cp, &size, &dev)) - break; + if (g_io_getattr("CFI::device", cp, &size, &dev)) { + size = sizeof(device_t); + if (g_io_getattr("SPI::device", cp, &size, + &dev)) + break; + } } nslices = g_flashmap_load(dev, &head);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601230526.u0N5QUKA074467>