Bug 206227

Summary: [patch] Teach mx25l SPI flash driver to interact with fdt_slicer and geom_flashmap
Product: Base System Reporter: Stanislav Galabov <sgalabov>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: sgalabov, sgalabov
Priority: --- Keywords: patch
Version: CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Teach mx25l SPI flash driver to interact with fdt_slicer and geom_flashmap none

Description Stanislav Galabov 2016-01-14 08:13:42 UTC
Created attachment 165546 [details]
Teach mx25l SPI flash driver to interact with fdt_slicer and geom_flashmap

The attached patch teaches the mx25l driver (sys/dev/flash/mx25l.c) to interact with sys/dev/fdt/fdt_slicer.c and sys/geom/geom_flashmap.c.

This allows systems with SPI flash to benefit from the possibility to define flash 'slices' via FDT, just the same way that it's currently possible for CFI and NAND flashes.
Comment 1 commit-hook freebsd_committer freebsd_triage 2016-01-22 03:16:04 UTC
A commit references this bug:

Author: adrian
Date: Fri Jan 22 03:15:53 UTC 2016
New revision: 294544
URL: https://svnweb.freebsd.org/changeset/base/294544

Log:
  [flash] Teach mx25l SPI flash driver to interact with fdt_slicer and geom_flashmap

  This teaches the mx25l driver (sys/dev/flash/mx25l.c) to interact with
  sys/dev/fdt/fdt_slicer.c and sys/geom/geom_flashmap.c.

  This allows systems with SPI flash to benefit from the possibility to define
  flash 'slices' via FDT, just the same way that it's currently possible for
  CFI and NAND flashes.

  Tested:

  * Carambola 2, AR9331 + SPI NOR flash

  PR:		kern/206227
  Submitted by:	Stanislav Galabov <sgalabov@gmail.com>

Changes:
  head/sys/dev/flash/mx25l.c
Comment 2 commit-hook freebsd_committer freebsd_triage 2016-01-23 05:27:06 UTC
A commit references this bug:

Author: adrian
Date: Sat Jan 23 05:26:30 UTC 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>

Changes:
  head/sys/geom/geom_flashmap.c
Comment 3 commit-hook freebsd_committer freebsd_triage 2016-01-23 05:28:08 UTC
A commit references this bug:

Author: adrian
Date: Sat Jan 23 05:27:55 UTC 2016
New revision: 294617
URL: https://svnweb.freebsd.org/changeset/base/294617

Log:
  Now that the flashmap code knows about SPI flash, add it in builds.

  PR:		kern/206227
  Submitted by:	Stanislav Galabov <sgalabov@gmail.com>

Changes:
  head/sys/conf/files