mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v4 0/1] nvmem: Add support for write-only instances, and clean-up
@ 2020-03-17  1:00 Nicholas Johnson
  2020-03-17  1:01 ` [PATCH v4 1/1] nvmem: Add support for write-only instances Nicholas Johnson
  0 siblings, 1 reply; 6+ messages in thread
From: Nicholas Johnson @ 2020-03-17  1:00 UTC (permalink / raw)
  To: linux-kernel; +Cc: Mika Westerberg, Srinivas Kandagatla, Nicholas Johnson

Hello all,

Previous version: https://lkml.org/lkml/2020/3/9/731

Changed since previous version:

- Hopefully fixed memory leak fully. I set CONFIG_DEBUG_KMEMLEAK and
  according to the leak detector, it is no longer leaking. I believe the
  leak was when setting the device name. I could not find out how to
  free that in the required context. But I avoided it by moving the
  groups above setting the name.

  If you believe there is still a leak, please be specific about what
  you think it is. I have been reading up this week about the driver
  interfaces and trying to figure it out, but I have had trouble finding
  good reading material.

- I squashed the two patches together as advised by Srinivas.

- Changed from -EPERM to -EINVAL for invalid configuration.

Nicholas Johnson (1):
  nvmem: Add support for write-only instances

 drivers/nvmem/core.c        |  9 ++++--
 drivers/nvmem/nvmem-sysfs.c | 56 +++++++++++++++++++++++++++++++------
 2 files changed, 54 insertions(+), 11 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-03-18 12:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-17  1:00 [PATCH v4 0/1] nvmem: Add support for write-only instances, and clean-up Nicholas Johnson
2020-03-17  1:01 ` [PATCH v4 1/1] nvmem: Add support for write-only instances Nicholas Johnson
2020-03-17 14:35   ` Srinivas Kandagatla
2020-03-18  9:17     ` Nicholas Johnson
2020-03-18  9:28       ` Srinivas Kandagatla
2020-03-18 12:42         ` Nicholas Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®