Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752835AbbF3Rr7 (ORCPT ); Tue, 30 Jun 2015 13:47:59 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:50086 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752134AbbF3Rrv (ORCPT ); Tue, 30 Jun 2015 13:47:51 -0400 Date: Tue, 30 Jun 2015 19:47:09 +0200 (CEST) From: Stefan Wahren Reply-To: Stefan Wahren To: Srinivas Kandagatla , linux-arm-kernel@lists.infradead.org Cc: wxt@rock-chips.com, linux-api@vger.kernel.org, Kumar Gala , Rob Herring , arnd@arndb.de, sboyd@codeaurora.org, s.hauer@pengutronix.de, Greg Kroah-Hartman , linux-kernel@vger.kernel.org, mporter@konsulko.com, linux-arm-msm@vger.kernel.org, Maxime Ripard , pantelis.antoniou@konsulko.com, devicetree@vger.kernel.org, Mark Brown Message-ID: <1183639717.72990.1435686429623.JavaMail.open-xchange@oxbsltgw03.schlund.de> In-Reply-To: <558AFC0B.1050400@linaro.org> References: <1435014459-26138-1-git-send-email-srinivas.kandagatla@linaro.org> <235181230.251177.1435088854197.JavaMail.open-xchange@oxbsltgw00.schlund.de> <558A7C92.2040102@linaro.org> <558AA2E2.1010606@i2se.com> <558AAA8D.8030209@linaro.org> <1641569650.41238.1435168054323.JavaMail.open-xchange@oxbsltgw35.schlund.de> <558AFC0B.1050400@linaro.org> Subject: Re: [PATCH v6 0/9] Add simple NVMEM Framework via regmap. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.6.2-Rev18 X-Originating-Client: com.openexchange.ox.gui.dhtml X-Provags-ID: V03:K0:6o29KT2o0YNIXR720vPaU5Q8mE/M3gOc5jJmwXwy1qvREYOOviU XmINdB8Iv5RrnY9Li9VTC1EnfjnRgNHmT7IBGJEUseosDTYEiVdBwudda/3JrKktcHINSBZ 6/Yj5McQFNsRNGCzPmJfcFbIrJrEMhBG6I6eKZG7HMf6uHFtM2D7MNSnBE7+leNKmKMugDh DLSDleFKZ0aYj6XuyxxRQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:0YDTQpg2xVo=:w8xbfcLnJg6keAm4FDPibG FK0uTkB6pNemOXtt7OSMFZ+SNk/G7YnnE0oZZUOnmIIFj+YdjkXAzzU2AZUuE/MiBBluYemTH fzxZx1QZs5177w09pTUCrd8ieCtbpSydXH2aDA2ok9mv1jMnazJRoFFohVZIPbjaNQpjkuJ7u 1m9lGwcoNLfBN5otshTyFi1bn1+gXpc2NUJQi7vRo831Aq1vhyCKUgMqLzbpNevq67yZL5pKU jHmmydr4dn81OBP0ljB0UV2ZTqYXh+yVc/F8yazGGLBiob+qpF4LXwr1Vkr3pJoGQGlKm1Ve9 c0D+dkxX1QzctpjG4dETB9ZRgGZ8xgDU4HMcd4I/BbmfKGvMQcTR/KI8ftlw58Vjy6mTLNlkY LpEOIogmnPiGqDmEbLHsBPTvsXhRAy4qMHYxF2XXKxyeoErmvXFEkzbghL6hG6vXgiOPeedaH M2n1m3wCqL9U7lzZymWBwP/po/korS8yV01f0sZizsyvQJFDl4sQuGmD9DtljX8pX7WnBYxnR YE4CDjHHUfrSxMveKkKp+nNANu2qhH60+qM6hMUscCq0Xb4iYXJc8REokXmbIvuF01O39Wzdt anm6peQC9tg7HnfERlekDILsTj3JXrKrKhTnhQcnUuRc+5+GRYZ7y2nG0pvU4cGOM19ZCHeuS DiteNW57dM12ftlhdUoOAuuXDoN9OWh4lbn5bpEmIHmekQg== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2034 Lines: 63 Hi Srinivas, > Srinivas Kandagatla hat am 24. Juni 2015 um > 20:50 geschrieben: > > > > > On 24/06/15 18:47, Stefan Wahren wrote: > > Hi Srinivas, > > > >> Srinivas Kandagatla hat am 24. Juni 2015 > >> um > >> 15:03 geschrieben: > >> > >> > >> > >> > >> On 24/06/15 13:30, Stefan Wahren wrote: > >>>>> If the question is just about hexdump, then hexdump itself can read > >>>>> file from given offset and size. > >>> yes, this is my question at first. Let me show the difference between > >>> the current implementation and my expectations as a user. > >>> > >>> $ hexdump /sys/class/nvmem/mxs-ocotp/nvmem > >>> > >>> Current implementation: dump the complete register range defined in DT > >>> > >> Its dumping the range which is specified in the provider regmap. If the > >> requirement is to dump only particular range, this has to be made > >> explicit while creating regmap, which is to specify the base address to > >> start from "First data register" and max_register to be "Last data > >> register "- "First data register" > > > > i know about max_register, but i can't find the base address in > > regmap_config. > > > Base is not in the regmap config, its the value which you pass to the > thanks for you explanation. I was confused by the word base because in your example it is the context variable. Now i've successful tested my first version of the OCOTP driver based on NVMEM framework [1]. Currently only the raw sysfs access is working. So i have another question: How do i get the cell info from the devicetree for the nvmem_config? I expected a function like of_nvmem_cell_info_get() . Regards Stefan [1] - https://github.com/lategoodbye/fsl_ocotp/commit/7c98e19755b69f761885b0e1ceb2c258a7c47ade -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/