mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 22:47:56 +00:00
fc153aa8d9
Similar to supporting nvmem-layouts on MTD devices, also allow referencing UBI and MMC devices in DT. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
30 lines
919 B
Diff
30 lines
919 B
Diff
From 65f3ff9672ccd5ee78937047e7a2fc696eee1c8f Mon Sep 17 00:00:00 2001
|
|
From: Daniel Golle <daniel@makrotopia.org>
|
|
Date: Thu, 13 Jul 2023 04:07:16 +0100
|
|
Subject: [PATCH 10/15] block: add new genhd flag GENHD_FL_NVMEM
|
|
|
|
Add new flag to destinguish block devices which may act as an NVMEM
|
|
provider.
|
|
|
|
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
|
---
|
|
include/linux/blkdev.h | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
--- a/include/linux/blkdev.h
|
|
+++ b/include/linux/blkdev.h
|
|
@@ -87,11 +87,13 @@ struct partition_meta_info {
|
|
* ``GENHD_FL_NO_PART``: partition support is disabled. The kernel will not
|
|
* scan for partitions from add_disk, and users can't add partitions manually.
|
|
*
|
|
+ * ``GENHD_FL_NVMEM``: the block device should be considered as NVMEM provider.
|
|
*/
|
|
enum {
|
|
GENHD_FL_REMOVABLE = 1 << 0,
|
|
GENHD_FL_HIDDEN = 1 << 1,
|
|
GENHD_FL_NO_PART = 1 << 2,
|
|
+ GENHD_FL_NVMEM = 1 << 3,
|
|
};
|
|
|
|
enum {
|