From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: OF partitions rework
Date: Fri, 31 Mar 2017 07:33:09 +0200 [thread overview]
Message-ID: <20170331053323.17821-1-s.hauer@pengutronix.de> (raw)
This series reworks some aspects of device tree partitions.
- device tree partitions can be > 4GiB. So far we assumed
#address-cells and #size-cells are both 1. Parse the
cell size properly to support bigger partitions
- support the new device tree partition binding which collects
the device tree partitions under a "partitions" node with
compatible = "fixed-partitions"
- Add the counterpart of of_find_path(): of_find_node_by_devpath()
converts a barebox device path back to a device node. This function
will be used by the state framework in a later series.
----------------------------------------------------------------
Sascha Hauer (14):
of: Add of_property_write_string()
treewide: Use of_property_write_string() where appropriate
of: partition: Move of_mtd_fixup to drivers/of/
mtd: of: Make used partition binding configurable
of: partition: support 64bit partition sizes
mtd: partition: set cdev->offset to the actual offset
cdev: Collect partitions on list
of: partition: Make partition fixup independent from mtd devices
fs: devfs-core: remove unused code
fs: devfs-core: replace DEVFS_PARTITION_FIXED flag with pointer to the master cdev
of: partition: only create partition node when partitions exist
of: partitions: flag partitions from a partition table
of: partition: Register the of partition fixup for of partition users
of: of_path: add of_find_node_by_devpath()
arch/arm/boards/highbank/init.c | 6 +-
arch/arm/cpu/psci.c | 6 +-
arch/sandbox/board/hostfile.c | 6 +-
common/memory.c | 2 +-
common/oftree.c | 2 +-
common/partitions.c | 2 +
common/state/state.c | 5 +-
drivers/base/driver.c | 2 +-
drivers/eeprom/at24.c | 1 +
drivers/eeprom/at25.c | 2 +
drivers/mci/mci-core.c | 4 +-
drivers/mtd/core.c | 65 +--------------
drivers/mtd/partition.c | 3 +
drivers/of/base.c | 24 +++++-
drivers/of/of_path.c | 107 +++++++++++++++++++++++++
drivers/of/partition.c | 170 +++++++++++++++++++++++++++++++++++++++-
drivers/video/simplefb.c | 12 +--
fs/devfs-core.c | 82 +++----------------
include/driver.h | 4 +-
include/linux/mtd/mtd.h | 1 +
include/of.h | 15 ++++
21 files changed, 355 insertions(+), 166 deletions(-)
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2017-03-31 5:33 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-31 5:33 Sascha Hauer [this message]
2017-03-31 5:33 ` [PATCH 01/14] of: Add of_property_write_string() Sascha Hauer
2017-03-31 5:33 ` [PATCH 02/14] treewide: Use of_property_write_string() where appropriate Sascha Hauer
2017-03-31 5:33 ` [PATCH 03/14] of: partition: Move of_mtd_fixup to drivers/of/ Sascha Hauer
2017-03-31 5:33 ` [PATCH 04/14] mtd: of: Make used partition binding configurable Sascha Hauer
2017-03-31 5:33 ` [PATCH 05/14] of: partition: support 64bit partition sizes Sascha Hauer
2017-03-31 5:33 ` [PATCH 06/14] mtd: partition: set cdev->offset to the actual offset Sascha Hauer
2017-03-31 8:46 ` Sascha Hauer
2017-03-31 5:33 ` [PATCH 07/14] cdev: Collect partitions on list Sascha Hauer
2017-03-31 5:33 ` [PATCH 08/14] of: partition: Make partition fixup independent from mtd devices Sascha Hauer
2017-03-31 5:33 ` [PATCH 09/14] fs: devfs-core: remove unused code Sascha Hauer
2017-03-31 5:33 ` [PATCH 10/14] fs: devfs-core: replace DEVFS_PARTITION_FIXED flag with pointer to the master cdev Sascha Hauer
2017-03-31 5:33 ` [PATCH 11/14] of: partition: only create partition node when partitions exist Sascha Hauer
2017-03-31 5:33 ` [PATCH 12/14] of: partitions: flag partitions from a partition table Sascha Hauer
2017-03-31 5:33 ` [PATCH 13/14] of: partition: Register the of partition fixup for of partition users Sascha Hauer
2017-03-31 5:33 ` [PATCH 14/14] of: of_path: add of_find_node_by_devpath() Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170331053323.17821-1-s.hauer@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox