Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752416AbbFXMbY (ORCPT ); Wed, 24 Jun 2015 08:31:24 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:54150 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751313AbbFXMbI (ORCPT ); Wed, 24 Jun 2015 08:31:08 -0400 Message-ID: <558AA2E2.1010606@i2se.com> Date: Wed, 24 Jun 2015 14:30:26 +0200 From: Stefan Wahren User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Srinivas Kandagatla , linux-arm-kernel@lists.infradead.org CC: Greg Kroah-Hartman , wxt@rock-chips.com, linux-api@vger.kernel.org, Kumar Gala , Rob Herring , sboyd@codeaurora.org, arnd@arndb.de, s.hauer@pengutronix.de, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, mporter@konsulko.com, Maxime Ripard , pantelis.antoniou@konsulko.com, devicetree@vger.kernel.org, Mark Brown Subject: Re: [PATCH v6 0/9] Add simple NVMEM Framework via regmap. References: <1435014459-26138-1-git-send-email-srinivas.kandagatla@linaro.org> <235181230.251177.1435088854197.JavaMail.open-xchange@oxbsltgw00.schlund.de> <558A7C92.2040102@linaro.org> In-Reply-To: <558A7C92.2040102@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:hMTUhIc3qHORZdytZBwWnGqrvvlRhZWR//oONTtPLQTy/fSct8x yJc7ZFUuh4vDDalEwZ2bPPnIsClBR1zWL0qTdsqEqSV+wlHbRPbFYcHP0uOd231nVy0mSXw iZgnYrUt/QCXkcj5rjQiHSjrI/QJ+xeeWXBW4p4nnm8WO37IgF8sO8/gRqDxXFcavmXY6Og r31qX3Tsi5zKIVSeHCXWw== X-UI-Out-Filterresults: notjunk:1;V01:K0:3T8y7hdYV58=:lFDlmdC8/x02K1mOBaOZZV MnrqsAl9wMGQrsi60oRKHcVU/rEls70Wc9jCTlLW7+jGAeuV8ZuV1RMSO0wNj9RUfQAXWOqZO Qf1KZM/xB7YBiySPbbNAnDLlwjrpKq89FWi3HkqBCb5mwPRePVm7YoFnH1R9K2pLx1czUlWZ8 3ZxG8MRnN5RT3/69+pImh9vTxBKj5OCrjpJMkUA7g8FImwpM0L5futKQ/RuwSzKZCUbqNhw2c k2C+vOjyELb4oZJakVD1egY2I/3yiVXlaU54t/gm/Yz+MLOWkmYpKe4jj7a2CSapwQuyxGCJS rheB99T0OClEgE0NNmsUrQl2zMbBGrAc5hv1fF/lYwy3zNCRq6oBKVPYpbEE2tfU4cxfOiUJ/ ImRTbivuvKMrbqqjjB2HzJSoyH73DIBwyM9/9pCYDhPaOBlFxaX7gMvO71R9MRzn+e46sD16N EYWTnf60S3LeWDVfWijqotRptdxSp9koeYAlmfzADTkFVgSP5NF8M/OesBr1SeegUPxzLI4n2 Tg/PcLmA6V/opKmO5FlCjqS+Jqmdw2r2vk755okVHYhkyG2jTv4QCXjPXb++3s+jHavvvIHem Msvp1azrvNSguzoUGtAEpxSn6OK+0KK3nlxum7pEOXT3SUimPtdhF8tDICrn0fuaT6pPqob6X vmv1Ztw+RBgWxc9wwhfiHeVtfmykfL1QMWDwtCyDUcWFT9Q== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2014 Lines: 80 Hi Srinivas, Am 24.06.2015 um 11:46 schrieb Srinivas Kandagatla: > > > On 23/06/15 20:47, Stefan Wahren wrote: >>> 0001000 >>> > >> i want to port OCOTP driver for MXS, which hasn't MMIO. From my >> understanding > That's cool. > >> hexdump would readout the complete register range defined in provider >> DT node. >> >> How can i achieve that hexdump only reads the data area within the >> register >> range? > > 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 User expectation: dump only the data from OCOTP block Let me explain it for i.MX28 OCOTP 0x8002c000 // Start of OCOTP register block (defined in DT) 0x8002c020 // First data register 0x8002c290 // Last data register 0x8002dfff // End of OCOTP register block (defined in DT) My knowledge about regmap is limited, but how can i achieve that hexdump give me only the data registers? From my understanding this should be handled in regmap and not in the read function. Are my expectations about the raw access wrong? > > But I believe the real question is "How can we dump each nvmem cell > independently" > > In one of my replies I mentioned that am planning to add sysfs entries > under /sys/class/nvmem//cells/ > > ex: > for qfprom tsens calibration it would look like: > > $ hexdump /sys/class/nvmem/qfprom0/cells/tsens_calibration > > 0000000 e000 0c00 0c00 0000 0c00 > ... > > Is that what you guys are looking for? That would be nice, too :-) > > --srini >> >> Stefan TIA Stefan -- 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/