Re: [RFC] regmap: debugfs: Fix start_reg calculation

2013-05-07 Thread Mark Brown
On Tue, May 07, 2013 at 02:11:37PM +0100, Srinivas KANDAGATLA wrote: > regmap_debugfs_get_dump_start returns register number, not the actual > offset into the map. So we use the return value as start to dump the No, it doesn't - it returns the register it should start reading from. It's just

[RFC] regmap: debugfs: Fix start_reg calculation

2013-05-07 Thread Srinivas KANDAGATLA
From: Srinivas Kandagatla If we dump syscon regmap registers via debufs you will notice that the dump contains lot of values at the end. An example configuration is: syscon@fdde{ compatible = "syscon"; reg = <0xfdde 0x15c>; }; example dump: cat

[RFC] regmap: debugfs: Fix start_reg calculation

2013-05-07 Thread Srinivas KANDAGATLA
From: Srinivas Kandagatla srinivas.kandaga...@st.com If we dump syscon regmap registers via debufs you will notice that the dump contains lot of values at the end. An example configuration is: syscon@fdde{ compatible = syscon; reg = 0xfdde 0x15c;

Re: [RFC] regmap: debugfs: Fix start_reg calculation

2013-05-07 Thread Mark Brown
On Tue, May 07, 2013 at 02:11:37PM +0100, Srinivas KANDAGATLA wrote: regmap_debugfs_get_dump_start returns register number, not the actual offset into the map. So we use the return value as start to dump the No, it doesn't - it returns the register it should start reading from. It's just that