Skip to content

Support for block device NVMEM providers - #1450

Open
ghost wants to merge 2 commits into
linus-master_basefrom
series/1186539=>linus-master
Open

ghost wants to merge 2 commits into
linus-master_basefrom
series/1186539=>linus-master

Conversation

@ghost

@ghost ghost commented Oct 15, 2026

Copy link
Copy Markdown

Pull request for series with
subject: Support for block device NVMEM providers
version: 11
url: https://patchwork.kernel.org/series/1186539/

@ghost

ghost commented Oct 15, 2026

Copy link
Copy Markdown
Author

Upstream branch: 0fcb05b
series: https://patchwork.kernel.org/series/1186539/
version: 11

@ghost

ghost commented Oct 17, 2026

Copy link
Copy Markdown
Author

Upstream branch: 58161ea
series: https://patchwork.kernel.org/series/1186539/
version: 11

@ghost
ghost force-pushed the series/1186539=>linus-master branch from e7f4625 to 9e92e27 Compare October 17, 2026 03:48
@ghost
ghost force-pushed the linus-master_base branch from 3d027d5 to 90ea7e4 Compare October 19, 2026 00:00
@ghost

ghost commented Oct 19, 2026

Copy link
Copy Markdown
Author

Upstream branch: c03c1a1
series: https://patchwork.kernel.org/series/1186539/
version: 11

@ghost
ghost force-pushed the series/1186539=>linus-master branch from 9e92e27 to 73e2af3 Compare October 19, 2026 00:30
@ghost
ghost force-pushed the linus-master_base branch from 90ea7e4 to 435b194 Compare October 22, 2026 07:21
@ghost

ghost commented Oct 22, 2026

Copy link
Copy Markdown
Author

Upstream branch: 7be4bc5
series: https://patchwork.kernel.org/series/1186539/
version: 11

1 similar comment
@ghost

ghost commented Oct 22, 2026

Copy link
Copy Markdown
Author

Upstream branch: 7be4bc5
series: https://patchwork.kernel.org/series/1186539/
version: 11

@ghost
ghost force-pushed the series/1186539=>linus-master branch from 73e2af3 to 3a4fc06 Compare October 22, 2026 07:50
@ghost
ghost force-pushed the linus-master_base branch from 435b194 to fd67522 Compare October 24, 2026 03:36
@ghost

ghost commented Oct 24, 2026

Copy link
Copy Markdown
Author

Upstream branch: 17bb0e2
series: https://patchwork.kernel.org/series/1186539/
version: 11

@ghost
ghost force-pushed the series/1186539=>linus-master branch from 3a4fc06 to 24909ae Compare October 24, 2026 03:58
@ghost
ghost force-pushed the linus-master_base branch from fd67522 to 3b53a63 Compare October 26, 2026 01:52
@ghost

ghost commented Oct 26, 2026

Copy link
Copy Markdown
Author

Upstream branch: 21a7f44
series: https://patchwork.kernel.org/series/1186539/
version: 11

@ghost
ghost force-pushed the series/1186539=>linus-master branch from 24909ae to 0c03412 Compare October 26, 2026 02:22
@ghost
ghost force-pushed the linus-master_base branch from 3b53a63 to 5d84576 Compare October 26, 2026 07:01
@ghost

ghost commented Oct 26, 2026

Copy link
Copy Markdown
Author

Upstream branch: 6b4b543
series: https://patchwork.kernel.org/series/1186539/
version: 11

@ghost
ghost force-pushed the series/1186539=>linus-master branch from 0c03412 to 58a1b8d Compare October 26, 2026 07:27
@ghost
ghost force-pushed the linus-master_base branch from 5d84576 to 6582ed2 Compare October 26, 2026 18:11
@ghost

ghost commented Oct 26, 2026

Copy link
Copy Markdown
Author

Upstream branch: fb2c3f4
series: https://patchwork.kernel.org/series/1186539/
version: 11

@ghost
ghost force-pushed the series/1186539=>linus-master branch from 58a1b8d to dae0805 Compare October 26, 2026 18:54
@ghost
ghost force-pushed the linus-master_base branch from 6582ed2 to b3a1abc Compare October 26, 2026 23:55
@ghost

ghost commented Oct 27, 2026

Copy link
Copy Markdown
Author

Upstream branch: d135ab4
series: https://patchwork.kernel.org/series/1186539/
version: 11

@ghost
ghost force-pushed the series/1186539=>linus-master branch from dae0805 to f1b3f73 Compare October 27, 2026 00:17
@ghost

ghost commented Nov 2, 2026

Copy link
Copy Markdown
Author

Upstream branch: d89e1d1
series: https://patchwork.kernel.org/series/1199246/
version: 12

@ghost ghost added V12 and removed V11 V11-ci-pass labels Nov 2, 2026
@ghost
ghost force-pushed the linus-master_base branch from a186880 to 46206a3 Compare November 2, 2026 17:14
@ghost

ghost commented Nov 2, 2026

Copy link
Copy Markdown
Author

Upstream branch: 6628e7d
series: https://patchwork.kernel.org/series/1199246/
version: 12

@ghost
ghost force-pushed the series/1186539=>linus-master branch from 638c11a to 821a3b0 Compare November 2, 2026 17:18
@ghost ghost added the V12-ci-pass label Nov 3, 2026
@ghost

ghost commented Nov 3, 2026

Copy link
Copy Markdown
Author

Upstream branch: 6628e7d
series: https://patchwork.kernel.org/series/1199246/
version: 12

@ghost
ghost force-pushed the series/1186539=>linus-master branch from 821a3b0 to 0855ffb Compare November 3, 2026 10:27
@ghost
ghost force-pushed the linus-master_base branch from 46206a3 to 220bd96 Compare November 3, 2026 23:41
@ghost

ghost commented Nov 3, 2026

Copy link
Copy Markdown
Author

Upstream branch: 05441d6
series: https://patchwork.kernel.org/series/1199246/
version: 12

@ghost
ghost force-pushed the series/1186539=>linus-master branch from 0855ffb to e9a01bf Compare November 3, 2026 23:46
@ghost ghost added V12-ci-fail and removed V12-ci-pass labels Nov 5, 2026
@ghost
ghost force-pushed the linus-master_base branch from 220bd96 to 6c4625e Compare November 6, 2026 08:02
@ghost

ghost commented Nov 6, 2026

Copy link
Copy Markdown
Author

Upstream branch: f66469d
series: https://patchwork.kernel.org/series/1199246/
version: 12

@ghost
ghost force-pushed the series/1186539=>linus-master branch from e9a01bf to 751510a Compare November 6, 2026 08:24
@ghost

ghost commented Nov 6, 2026

Copy link
Copy Markdown
Author

Upstream branch: f66469d
series: https://patchwork.kernel.org/series/1199246/
version: 12

@ghost
ghost force-pushed the series/1186539=>linus-master branch from 751510a to e3cee97 Compare November 6, 2026 19:09
@ghost
ghost force-pushed the linus-master_base branch from 6c4625e to c7f678d Compare November 7, 2026 03:08
@ghost

ghost commented Nov 7, 2026

Copy link
Copy Markdown
Author

Upstream branch: d487237
series: https://patchwork.kernel.org/series/1199246/
version: 12

@ghost
ghost force-pushed the series/1186539=>linus-master branch from e3cee97 to f642bdf Compare November 7, 2026 03:13
@ghost ghost added V12-ci-pass and removed V12-ci-fail labels Nov 7, 2026
@ghost
ghost force-pushed the linus-master_base branch from c7f678d to 6aa6cd1 Compare November 10, 2026 07:53
Loic Poulain added 2 commits November 10, 2026 17:20
The OF partition parser reads offset, size and label from each
"fixed-partitions" child node but does not associate that node with the
resulting partition block device. As a result a partition has no
of_node, unlike the whole-disk device which gets its firmware node via
add_disk_fwnode().

Carry the partition's device tree node through the parser and attach it
to the partition's block device with device_set_node(), mirroring the
whole-disk case. This lets consumers describe per-partition properties
in the device tree (for example an NVMEM layout on a partition node) and
look them up through the partition device.

No functional change for existing users, partitions without a matching
device tree node simply get a NULL fwnode.

Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
Reviewed-by: Ulf Hansson <ulfh@kernel.org>
On embedded devices using an eMMC it is common that one or more partitions
on the eMMC are used to store MAC addresses and Wi-Fi calibration EEPROM
data. Allow referencing the partition in device tree for the kernel and
Wi-Fi drivers accessing it via the NVMEM layer.

NVMEM is registered for a block device whose OF node describes an NVMEM
layout, either via an "nvmem-layout" child or by being a "fixed-layout"
node itself (e.g. an eMMC boot partition associated through its mmc-card
node).

The NVMEM device is a read-only side channel onto a block device.
Each read opens the block device with BLK_OPEN_EXCL to keep other
exclusive openers away for the duration of the access.

Signed-off-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
@ghost

ghost commented Nov 10, 2026

Copy link
Copy Markdown
Author

Upstream branch: b3dfbde
series: https://patchwork.kernel.org/series/1199246/
version: 12

@ghost
ghost force-pushed the series/1186539=>linus-master branch from f642bdf to 81c0dad Compare November 10, 2026 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants