From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Wolfram Sang <wsa@the-dreams.de>,
Srinivas Kandagatla <srinivas.kandagatla@linaro.org>,
Maxime Ripard <maxime.ripard@free-electrons.com>,
Joachim Eastwood <manabian@gmail.com>,
Matthias Brugger <matthias.bgg@gmail.com>,
Heiko Stuebner <heiko@sntech.de>, Chen-Yu Tsai <wens@csie.org>,
linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org,
linux-rockchip@lists.infradead.org,
Mark Brown <broonie@kernel.org>,
andrew@lunn.ch
Subject: [PATCH 00/12] nvmem: remove regmap dependency
Date: Sun, 24 Apr 2016 20:28:04 +0100 [thread overview]
Message-ID: <1461526096-29584-1-git-send-email-srinivas.kandagatla@linaro.org> (raw)
nvmem uses regmap_raw_read/write apis to read/write data from providers,
With recent patch 922a9f936e40 ("regmap: mmio: Convert to regmap_bus
and fix accessor usage") nvmem providers based on regmap-mmio stopped
working, as nvmem core was using raw accessors.
This issue can be fixed temporarly by moving to other regmap apis,
but we might hit same issue in future, and regmap looks like an
overdo for nvmem. Moving to interfaces based on read/write callbacks
from providers would be more robust.
This patchset converts the nvmem core and nvmem provider drivers to
use the new callbacks. Tested this patchset on qfprom and at24 drivers.
Other driver are only compile tested, any testing on them would be great.
Thanks,
srini
Srinivas Kandagatla (12):
nvmem: core: remove regmap dependency
eeprom: at24: remove nvmem regmap dependency
eeprom: at25: remove nvmem regmap dependency
nvmem: qfprom: remove nvmem regmap dependency
nvmem: vif610-ocotp: remove nvmem regmap dependency
nvmem: sunxi-sid: remove nvmem regmap dependency
nvmem: rockchip-efuse: remove nvmem regmap dependency
nvmem: mtk-efuse: remove nvmem regmap dependency
nvmem: imx-ocotp: remove nvmem regmap dependency
nvmem: lpc18xx-eeprom: remove nvmem regmap dependency
nvmem: mxs-ocotp: remove nvmem regmap dependency
nvmem: 93xx46: remove nvmem regmap dependency
drivers/misc/eeprom/Kconfig | 2 -
drivers/misc/eeprom/at24.c | 103 ++++++++----------------------------
drivers/misc/eeprom/at25.c | 89 +++++++------------------------
drivers/misc/eeprom/eeprom_93xx46.c | 90 +++++++------------------------
drivers/nvmem/Kconfig | 4 --
drivers/nvmem/core.c | 67 +++++++++++++----------
drivers/nvmem/imx-ocotp.c | 55 ++++---------------
drivers/nvmem/lpc18xx_eeprom.c | 94 +++++++++-----------------------
drivers/nvmem/mtk-efuse.c | 47 ++++++++++------
drivers/nvmem/mxs-ocotp.c | 79 ++++++++-------------------
drivers/nvmem/qfprom.c | 56 +++++++++++++-------
drivers/nvmem/rockchip-efuse.c | 49 ++++-------------
drivers/nvmem/sunxi_sid.c | 54 ++++---------------
drivers/nvmem/vf610-ocotp.c | 44 ++++-----------
include/linux/nvmem-provider.h | 10 ++++
15 files changed, 264 insertions(+), 579 deletions(-)
--
2.5.0
next reply other threads:[~2016-04-24 19:28 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-24 19:28 Srinivas Kandagatla [this message]
2016-04-24 19:28 ` [PATCH 01/12] nvmem: core: remove regmap dependency Srinivas Kandagatla
2016-04-24 19:28 ` [PATCH 02/12] eeprom: at24: remove nvmem " Srinivas Kandagatla
2016-05-02 7:32 ` Wolfram Sang
2016-05-04 1:32 ` Andrew Lunn
[not found] ` <1461526096-29584-1-git-send-email-srinivas.kandagatla-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-04-24 19:28 ` [PATCH 03/12] eeprom: at25: " Srinivas Kandagatla
2016-04-24 19:28 ` [PATCH 04/12] nvmem: qfprom: " Srinivas Kandagatla
2016-04-24 19:28 ` [PATCH 05/12] nvmem: vif610-ocotp: " Srinivas Kandagatla
2016-04-27 5:36 ` maitysanchayan
2016-04-24 19:28 ` [PATCH 06/12] nvmem: sunxi-sid: " Srinivas Kandagatla
2016-04-24 19:28 ` [PATCH 07/12] nvmem: rockchip-efuse: " Srinivas Kandagatla
2016-04-24 19:28 ` [PATCH 08/12] nvmem: mtk-efuse: " Srinivas Kandagatla
2016-04-27 6:30 ` andrew-ct chen
2016-05-01 21:01 ` Greg Kroah-Hartman
2016-04-24 19:28 ` [PATCH 09/12] nvmem: imx-ocotp: " Srinivas Kandagatla
2016-04-24 19:28 ` [PATCH 10/12] nvmem: lpc18xx-eeprom: " Srinivas Kandagatla
2016-04-24 19:28 ` [PATCH 11/12] nvmem: mxs-ocotp: " Srinivas Kandagatla
[not found] ` <1461526096-29584-12-git-send-email-srinivas.kandagatla-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-04-28 6:50 ` Stefan Wahren
2016-04-24 19:28 ` [PATCH 12/12] nvmem: 93xx46: " Srinivas Kandagatla
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1461526096-29584-1-git-send-email-srinivas.kandagatla@linaro.org \
--to=srinivas.kandagatla@linaro.org \
--cc=andrew@lunn.ch \
--cc=broonie@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=heiko@sntech.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=manabian@gmail.com \
--cc=matthias.bgg@gmail.com \
--cc=maxime.ripard@free-electrons.com \
--cc=wens@csie.org \
--cc=wsa@the-dreams.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).