[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1057389f-2bd0-909c-93c9-21a12af90660@linaro.org>
Date: Wed, 18 Mar 2020 16:08:20 +0000
From: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>
To: Nicholas Johnson <nicholas.johnson-opensource@...look.com.au>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Cc: Mika Westerberg <mika.westerberg@...ux.intel.com>
Subject: Re: [PATCH v5 1/1] nvmem: Add support for write-only instances
On 18/03/2020 15:20, Nicholas Johnson wrote:
> There is at least one real-world use-case for write-only nvmem
> instances. Refer to 03cd45d2e219 ("thunderbolt: Prevent crash if
> non-active NVMem file is read").
>
> Add support for write-only nvmem instances by adding attrs for 0200.
>
> Change nvmem_register() to abort if NULL group is returned from
> nvmem_sysfs_get_groups().
>
> Return NULL from nvmem_sysfs_get_groups() in invalid cases.
>
> Signed-off-by: Nicholas Johnson<nicholas.johnson-opensource@...look.com.au>
> ---
> drivers/nvmem/core.c | 10 +++++--
> drivers/nvmem/nvmem-sysfs.c | 56 +++++++++++++++++++++++++++++++------
> 2 files changed, 56 insertions(+), 10 deletions(-)
Applied thanks,
--srini
Powered by blists - more mailing lists