From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932068AbcEBSg3 (ORCPT ); Mon, 2 May 2016 14:36:29 -0400 Received: from mail-wm0-f52.google.com ([74.125.82.52]:38032 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754820AbcEBSgU (ORCPT ); Mon, 2 May 2016 14:36:20 -0400 From: Srinivas Kandagatla To: Greg Kroah-Hartman Cc: linux-mediatek@lists.infradead.org, Srinivas Kandagatla , Maxime Ripard , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, stefan.wahren@i2se.com Subject: [PATCH v3 0/2] nvmem: remove regmap dependency Date: Mon, 2 May 2016 19:36:12 +0100 Message-Id: <1462214174-469-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.5.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, This is v3 patchset for the leftover 2 patches for nvmem regmap removal series [1]. These patches are based on char-misc tree. 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. Most of the patches have been applied to char-misc tree, these are the two patches which had some outstanding comments on mxs nvmemprovider, which are now fixed. Changes since v2: - Fixed the mxs size and dt data pointer spotted by Stefan and Fabio Changes since v1: - rebased mtk-efuse on top of char-misc - addressed concerns raised by Stefan Wahren. [1] https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1130026.html Thanks, srini Srinivas Kandagatla (2): nvmem: mtk-efuse: remove nvmem regmap dependency nvmem: mxs-ocotp: remove nvmem regmap dependency drivers/nvmem/Kconfig | 1 - drivers/nvmem/mtk-efuse.c | 47 ++++++++++++++++++--------- drivers/nvmem/mxs-ocotp.c | 83 +++++++++++++---------------------------------- 3 files changed, 54 insertions(+), 77 deletions(-) -- 2.5.0