Patch "nvmem: rmem: Use NVMEM_DEVID_AUTO" has been added to the 6.4-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    nvmem: rmem: Use NVMEM_DEVID_AUTO

to the 6.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     nvmem-rmem-use-nvmem_devid_auto.patch
and it can be found in the queue-6.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 61a22f1a057534d1a8d625f9ba6a1dd8a5b53017
Author: Phil Elwell <phil@xxxxxxxxxxxxxxx>
Date:   Sun Jun 11 15:03:09 2023 +0100

    nvmem: rmem: Use NVMEM_DEVID_AUTO
    
    [ Upstream commit 09dd7b993eddb3b48634fd5ddf27aa799785a9ee ]
    
    It is reasonable to declare multiple nvmem blocks. Unless a unique 'id'
    is passed in for each block there may be name clashes.
    
    Avoid this by using the magic token NVMEM_DEVID_AUTO.
    
    Fixes: 5a3fa75a4d9c ("nvmem: Add driver to expose reserved memory as nvmem")
    Signed-off-by: Phil Elwell <phil@xxxxxxxxxxxxxxx>
    Signed-off-by: Ivan T. Ivanov <iivanov@xxxxxxx>
    Reviewed-by: Stefan Wahren <stefan.wahren@xxxxxxxx>
    Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@xxxxxxxxxx>
    Message-ID: <20230611140330.154222-6-srinivas.kandagatla@xxxxxxxxxx>
    Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/nvmem/rmem.c b/drivers/nvmem/rmem.c
index 80cb187f14817..752d0bf4445ee 100644
--- a/drivers/nvmem/rmem.c
+++ b/drivers/nvmem/rmem.c
@@ -71,6 +71,7 @@ static int rmem_probe(struct platform_device *pdev)
 	config.dev = dev;
 	config.priv = priv;
 	config.name = "rmem";
+	config.id = NVMEM_DEVID_AUTO;
 	config.size = mem->size;
 	config.reg_read = rmem_read;
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux