[PATCH v3 0/5] Fix a whole host of nvmem registration/cleanup issues
From: Russell King (Oracle)
Date: Tue Jan 03 2023 - 11:59:09 EST
- Next message: Russell King (Oracle): "[PATCH v3 1/5] nvmem: core: remove spurious white space Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx>,Gaosheng Cui <cuigaosheng1@xxxxxxxxxx>,Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>,linux-arm-kernel@xxxxxxxxxxxxxxxxxxx,linux-kernel@xxxxxxxxxxxxxxx,Maxime Ripard <mripard@xxxxxxxxxx>, Hector Martin <marcan@xxxxxxxxx>"
- Previous message: Carlos Bilbao: "[PATCH] docs/sp_SP: Add process kernel-enforcement-statement.rst translation"
- Next in thread: Russell King (Oracle): "[PATCH v3 1/5] nvmem: core: remove spurious white space Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx>,Gaosheng Cui <cuigaosheng1@xxxxxxxxxx>,Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>,linux-arm-kernel@xxxxxxxxxxxxxxxxxxx,linux-kernel@xxxxxxxxxxxxxxx,Maxime Ripard <mripard@xxxxxxxxxx>, Hector Martin <marcan@xxxxxxxxx>"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
This series fixes a whole host of nvmem registration/error cleanup
issues that have been identified by both Hector and myself. It is a
substantial rework of my original patch fixing the first problem.
The first most obvious problem is the race between nvmem registration
and use, which leads to sporadic failures of drivers to probe at boot
time.
While fixing this, it has been noticed that a recent fix to check the
return value of dev_set_name() introduced a new bug where wp_gpio was
not being put in that newly introduced error path.
Then there's a fix for a previous fix which itself purports to fix
another bug, but results in the allocated ID being leaked. Fix for a
fix for a fix is not good!
Then there's an error in the docbook documentation for wp_gpio (it's
listed as wp-gpio instead) but as nothing seems to set wp_gpio, we
might as well get rid of it - which also solves the issue that we
call gpiod_put() on this whether we own it or not.
Lastly, there's a fix for yet another spurious white-space in this
code, one of what seems to be a long history of past white-space
fixes.
These patches have been individually build-tested in the order of
posting, but not run-time tested except for the entire series.
drivers/nvmem/core.c | 51 ++++++++++++++++++------------------------
include/linux/nvmem-provider.h | 2 --
2 files changed, 22 insertions(+), 31 deletions(-)
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!
- Next message: Russell King (Oracle): "[PATCH v3 1/5] nvmem: core: remove spurious white space Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx>,Gaosheng Cui <cuigaosheng1@xxxxxxxxxx>,Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>,linux-arm-kernel@xxxxxxxxxxxxxxxxxxx,linux-kernel@xxxxxxxxxxxxxxx,Maxime Ripard <mripard@xxxxxxxxxx>, Hector Martin <marcan@xxxxxxxxx>"
- Previous message: Carlos Bilbao: "[PATCH] docs/sp_SP: Add process kernel-enforcement-statement.rst translation"
- Next in thread: Russell King (Oracle): "[PATCH v3 1/5] nvmem: core: remove spurious white space Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx>,Gaosheng Cui <cuigaosheng1@xxxxxxxxxx>,Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>,linux-arm-kernel@xxxxxxxxxxxxxxxxxxx,linux-kernel@xxxxxxxxxxxxxxx,Maxime Ripard <mripard@xxxxxxxxxx>, Hector Martin <marcan@xxxxxxxxx>"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]