Bug 206227 - [patch] Teach mx25l SPI flash driver to interact with fdt_slicer and geom_flashmap
Summary: [patch] Teach mx25l SPI flash driver to interact with fdt_slicer and geom_fla...
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2016-01-14 08:13 UTC by Stanislav Galabov
Modified: 2016-03-01 12:37 UTC (History)
2 users (show)

See Also:


Attachments
Teach mx25l SPI flash driver to interact with fdt_slicer and geom_flashmap (3.14 KB, text/plain)
2016-01-14 08:13 UTC, Stanislav Galabov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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