Re: [PATCH V3] Add support for flag status register on Micron chips.

2014-04-22 Thread Gerhard Sittig
ror code with "timed out", and update it with something more appropriate before returning when other errors are seen? though this is an internal helper, and callers may not tell the situations apart in the first place, so this might be a minor nit virtually yours Gerhard Sittig -- DENX

Re: [PATCH] Add support for flag status register on Micron chips

2014-04-09 Thread Gerhard Sittig
7;s R/B pin until the operation has completed, to then fetch the STATUS byte to determine the execution's result. Does this sound plausible? For NOR, do you poll for the "busy" condition to deassert, and check for success then? virtually yours Gerhard Sittig -- DENX Software Enginee

Re: cscope: issue with symlinks in tools/testing/selftests/powerpc/copyloops/

2014-04-08 Thread Gerhard Sittig
[ removed cscope-devel from Cc:, non-subscriber mails get blocked anyway ] On Mon, 2014-04-07 at 14:42 +0200, Gerhard Sittig wrote: > > On Mon, 2014-04-07 at 06:42 -0400, Neil Horman wrote: > > > > On Thu, Apr 03, 2014 at 03:16:15PM +0200, Y

Re: [PATCH 5/5] gpio: dwapb: use d->mask instead od BIT(bit)

2014-04-07 Thread Gerhard Sittig
[ ignore this if you are busy :) ] On Mon, 2014-04-07 at 20:26 +0200, Sebastian Andrzej Siewior wrote: > > On 04/07/2014 02:26 PM, Gerhard Sittig wrote: > > On Mon, 2014-04-07 at 12:13 +0200, Sebastian Andrzej Siewior wrote: > >> > >> d->mask contains exact the s

Re: cscope: issue with symlinks in tools/testing/selftests/powerpc/copyloops/

2014-04-07 Thread Gerhard Sittig
tries. Would it be useful to not emit the warnings then? Or to silent those warnings when the user knows it's perfectly legal to skip those filesytem entries? Like what you can do with the ctags(1) command and its --links option. virtually yours Gerhard Sittig -- DENX Software Engineering Gm

Re: [PATCH 5/5] gpio: dwapb: use d->mask instead od BIT(bit)

2014-04-07 Thread Gerhard Sittig
t; - level |= BIT(bit); > - dwapb_toggle_trigger(gpio, bit); > + level |= mask; > + dwapb_toggle_trigger(gpio, d->hwirq); these introduce another pointer dereference, unless 'bit' was assigned from a pointer dereference (as is shown

Re: [PATCH v4 1/3] i2c: cadence: Document device tree bindings

2014-04-04 Thread Gerhard Sittig
e example has many more properties than the binding describes, the additional items aren't even optional -- you might want to refer to a few more common or general bindings virtually yours Gerhard Sittig -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, O

Re: [PATCH 3/3] ARM: dts: socfpga: add gpio pieces

2014-03-21 Thread Gerhard Sittig
rst two have 29. The commit message probably should not discuss which git tree a driver currently resides in. This is just a temporary detail which no longer applies to the mainline source base where your patch will end up in. virtually yours Gerhard Sittig -- DENX Software Engineering

Re: [PATCH] gpio: mcp23s08: Trivial: Fixed coding style issues

2014-03-12 Thread Gerhard Sittig
r require parentheses. So either of "sizeof(x)" as well as "sizeof x" are legal with regard to the C language. It's just that the community prefers "sizeof(x)" for the improved readability. virtually yours Gerhard Sittig -- DENX Software Engineering GmbH,

Re: [PATCH V7 1/1] drivers/gpio: Altera soft IP GPIO driver and devicetree binding

2014-03-08 Thread Gerhard Sittig
v7 as it is. Am I supposed to provide ACKs at all, given that I'm a reviewer and fellow developer. I always understood that Acked-By is something more formal, where one maintainer signals to another maintainer that it's OK to go though a different tree. virtually yours Gerhard Sittig

Re: [PATCH V7 1/1] drivers/gpio: Altera soft IP GPIO driver and devicetree binding

2014-03-08 Thread Gerhard Sittig
rq) > + goto skip_irq; > + > + altera_gc->domain = irq_domain_add_linear(node, > + altera_gc->mmchip.gc.ngpio, &altera_gpio_irq_ops, altera_gc); > + > + if (!altera_gc->domain) { > + ret = -ENODEV; > +

Re: [PATCH RFC 0/3] clk: CCF clock primitives + custom IO accessors

2014-03-03 Thread Gerhard Sittig
e situation where you need such an extension (or something similar, but you really should look into the ll_ops thing). virtually yours Gerhard Sittig -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr. 5, D-82194 Groebenzell, German

Re: [PATCH RFC 0/3] clk: CCF clock primitives + custom IO accessors

2014-03-02 Thread Gerhard Sittig
e from "divider value" to "bit pattern to read/write". In the latter case, the clock control module is rather special, and may not be easily get mapped to the common primitives. Unless the ll_ops can implement the required special handling. virtually yours Gerhard Sittig --

Re: [PATCH v2] spi: core: Validate lenght of the transfers in message

2014-02-18 Thread Gerhard Sittig
On Tue, Feb 18, 2014 at 09:09 +0900, Mark Brown wrote: > > On Sun, Feb 16, 2014 at 03:25:12PM +0100, Gerhard Sittig wrote: > > On Sat, Feb 15, 2014 at 08:09 +0200, Ivan T. Ivanov wrote: > > > - the total length of the SPI transfer cannot be empty (which I'd > >

Re: [PATCH v2] spi: core: Validate lenght of the transfers in message

2014-02-16 Thread Gerhard Sittig
er->len / w_size; > + /* No partial transfers accepted */ > + if (!n_words || xfer->len % xfer->bits_per_word) > + return -EINVAL; > + > if (xfer->speed_hz && master->min_speed_hz && > xfe

Re: [PATCH] spi: core: Validate lenght of the transfers in message

2014-02-13 Thread Gerhard Sittig
certainly would be rather wrong an assumption. Am I missing/misunderstanding something? virtually yours Gerhard Sittig -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr. 5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax:

Re: [PATCH 3/3] spi: switch to devm_spi_alloc_master

2014-02-02 Thread Gerhard Sittig
er, the change appears to be balanced, and replacing 'goto free_master' with immediate return looks appropriate. Can't comment on the correctness of removing the spi_master_put() call when switching from spi_alloc_master() to devm_spi_alloc_master(). This gets discussed in the other sub

Re: [PATCH 4/5] spi: Check that Quad/Dual is half duplex

2014-01-22 Thread Gerhard Sittig
ransfers as well. :) BTW am I trying to be strict about the above implicit assumption of "dual/quad" meaning the number of data lines. To not confuse them with dual data rate transfers, which are orthogonal to the number of data lines in use, and are available in chips as well (see the S25

Re: [PATCH 1/1] iMX gpio: Allow reading back of pin status if configured as gpio output

2014-01-17 Thread Gerhard Sittig
ole case), but still would be wrong or incomplete in the open-collector case. virtually yours Gerhard Sittig -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr. 5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142

Re: [PATCH] net/dt: Add support for overriding phy configuration from device tree

2014-01-16 Thread Gerhard Sittig
mean that you cannot _disable_ broken features? Or does it mean that you _must_ specify the non-broken features and thus break backwards compatibility? Or are these properties not boolean (they are not used in the example either, unfortunately), and the binding text would need an update for clarity? W

Re: [PATCH v2] gpio: mcp23s08: Add irq functionality for i2c chips

2014-01-10 Thread Gerhard Sittig
23s08, mcp23s17, mcp23008 and mcp23017 > are > + * supported. > + * For the I2C versions of the chips (mcp23008 and mcp23017) generation of > + * interrupts is also supported. > */ Adjust these as well to reflect whether it's hardware or software which limits the feature. virtua

Re: [PATCH] ARM: imx6q: Add missing esai_ahb clock to current clock tree

2014-01-09 Thread Gerhard Sittig
mon gate > code somehow? > This situation happens from time to time and I haven't seen a solution > for this. You may want to lookup the following message: Date: Tue, 23 Jul 2013 15:14:06 +0200 From: Gerhard Sittig To: linuxppc-...@lists.ozlabs.org, Anatolij Gustschin ,

Re: [PATCH] gpio: pxa: fix bug when get gpio value

2014-01-09 Thread Gerhard Sittig
y 1, and to clear up where such an assumption is wrongly made. If the GPIO subsystem's API wants to guarantee values of 0 and 1 (which I think it doesn't), then I feel the adjustment should be done in the gpio_get_value() routines (in all its public variants, or a common routine which all

Re: [ARM] Fix kernel compile error: drivers/crypto/ixp4xx_crypto.c.

2014-01-01 Thread Gerhard Sittig
On Tue, Dec 31, 2013 at 10:01 -0800, Randy Dunlap wrote: > > On 12/31/13 05:48, Gerhard Sittig wrote: > > On Tue, Dec 31, 2013 at 11:51 +0100, Krzysztof HaƂasa wrote: > >> > >> drivers/crypto/ixp4xx_crypto.c: In function 'ixp_module_init': > >> d

Re: [ARM] Fix kernel compile error: drivers/crypto/ixp4xx_crypto.c.

2014-01-01 Thread Gerhard Sittig
to=no > > to your .muttrc file. Thank you for telling me, I was not aware. Had no MFT related setting in my config, learned from the manual that $followup_to defaults to yes, have turned it off now. Other mutt users may want to check as well. Happy new year! :) virtually yours Gerhard Sitti

Re: [ARM] Fix kernel compile error: drivers/crypto/ixp4xx_crypto.c.

2013-12-31 Thread Gerhard Sittig
int num = ARRAY_SIZE(ixp4xx_algos); > - int i, err ; > + int i, err; > > pdev = platform_device_register_full(&ixp_dev_info); > if (IS_ERR(pdev)) > return PTR_ERR(pdev); > > - dev = &pdev->dev; > - > spin_lock_init(&desc_lock); >

Re: [PATCH v4 03/15] clk: Add regmap core helpers for enable/disable/is_enabled

2013-12-31 Thread Gerhard Sittig
On Thu, Dec 26, 2013 at 11:31 -0800, Stephen Boyd wrote: > > On 12/24, Gerhard Sittig wrote: > > On Mon, Dec 23, 2013 at 17:12 -0800, Stephen Boyd wrote: > > > > > > The clock framework already has support for simple gate clocks > > > but if drivers want t

Re: [PATCH] clk: support hardware-specific debugfs entries

2013-12-26 Thread Gerhard Sittig
ill break when yours gets added later (regardless of the number of review iterations it will see). virtually yours Gerhard Sittig -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr. 5, D-82194 Groebenzell, Germany Phone: +49-8142-6

Re: [PATCH v4 03/15] clk: Add regmap core helpers for enable/disable/is_enabled

2013-12-24 Thread Gerhard Sittig
t the patch: Do you expect callers to remember whether a clock gate is backed by mmio or by regmap access, to call a different set of routines? Should this not be hidden behind the API and be transparent after clock registration? I'd suggest to fold regmap support into Tero Kristo's

Re: [PATCH v3 04/12] clk: Add regmap core helpers for enable/disable/is_enabled

2013-12-24 Thread Gerhard Sittig
On Thu, Dec 19, 2013 at 21:24 +0100, Gerhard Sittig wrote: > > Wasn't the idea to extend the set of register accessor routines > in such that memory mapped I/O as well as > regmap style becomes possible? This is what I understood from > past iterations of discussing this app

Re: [PATCH] clk: remove CONFIG_COMMON_CLK_DEBUG

2013-12-19 Thread Gerhard Sittig
mation is just too useful to hide behind another option that requires manual enabling. :) virtually yours Gerhard Sittig -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr. 5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0

Re: [PATCH v3 04/12] clk: Add regmap core helpers for enable/disable/is_enabled

2013-12-19 Thread Gerhard Sittig
thogonal to the API which wraps register access. virtually yours Gerhard Sittig -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr. 5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: off...@denx

Re: [PATCH] gpio: add missing word in gpio dt binding doc

2013-12-19 Thread Gerhard Sittig
you may have to re-create the patch on top of something official. :) And you may want to mark this patch as "trivial". virtually yours Gerhard Sittig -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr. 5, D-82194 Groebenzel

Re: [PATCH 1/1] dmaengine: remove obsolete comment reference to dma_data_direction

2013-12-14 Thread Gerhard Sittig
he patch nor its description at hand. And you might improve the description's body. Something like "the 'direction' member of 'struct dma_slave_config' is of data type 'enum dma_transfer_direction', so update the 'struct dma_slave_config' kerneldoc

Re: [PATCH v2] pinctrl: baytrail: lock IRQs when starting them

2013-12-04 Thread Gerhard Sittig
+ irqd_to_hwirq(d)); > + byt_irq_unmask(d); > + return 0; > +} Just a thought: If failure to lock is non-fatal, should the message be a warning then? I do agree that failure to lock the GPIO should be non-fatal, as there was debate and still might be concerns abo

[PATCH 1/1] regmap: trivial comment fix (copy'n'paste error)

2013-11-11 Thread Gerhard Sittig
fix a trivial copy'n'paste error in the regmap kerneldoc, s/write/read/ for the regmap_read(), regmap_raw_read() and regmap_bulk_read() routines Signed-off-by: Gerhard Sittig --- drivers/base/regmap/regmap.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

Re: [PATCH 1/5] OF: Clear detach flag on attach

2013-11-05 Thread Gerhard Sittig
ng the series, and thus would hinder bisection. virtually yours Gerhard Sittig -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr. 5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: off...@denx.

Re: [PATCH] powerpc/qe_lib: Share the qe_lib for the others architecture

2013-10-15 Thread Gerhard Sittig
a was asking is where to put code for the component which is neither a strict subset of any subsystem. Please correct me if I'm wrong. virtually yours Gerhard Sittig -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr. 5, D-8

Re: [PATCH] clk: provide public clk_is_enabled function

2013-10-06 Thread Gerhard Sittig
er that should be easy to fix. (Strictly speaking it's not the data gathering that breaks, but the already broken network driver which accesses the hardware without acquiring the clock, and not finds the clock disabled.) virtually yours Gerhard Sittig -- DENX Software Engineering GmbH, MD: Wol

Re: [PATCH RFC v3 1/5] dma: mpc512x: reorder mpc8308 specific instructions

2013-08-03 Thread Gerhard Sittig
On Wed, Jul 31, 2013 at 11:20 +0400, Alexander Popov wrote: > > From: Gerhard Sittig > > Concentrate the test and the specific code for MPC8308 > in the 'if' branch and handle MPC512x in the 'else' branch. > > This modification only reorders

Re: [PATCH RFC v3 2/5] dma: mpc512x: add support for peripheral transfers

2013-08-03 Thread Gerhard Sittig
return -EINVAL; > +} > + and here I think it's unfortunate to attribute the "will access peripheral" to the channel instead of the transfer job, and to set the flag from within the device control callback, and to nevery clear the flag (what will happen if a channel

Re: [V2 2/2] powerpc/512x: add LocalPlus Bus FIFO device driver

2013-07-17 Thread Gerhard Sittig
On Fri, Jul 12, 2013 at 14:42 +0400, Alexander Popov wrote: > > 2013/7/10 Gerhard Sittig : > > On Wed, Jul 10, 2013 at 14:21 +0400, Alexander Popov wrote: > >> > >> + > >> +struct mpc512x_lpbfifo_request { > >> + unsigned int cs; > >>

Re: [V2 1/2] powerpc: mpc512x_dma: add support for data transfers between memory and i/o memory

2013-07-12 Thread Gerhard Sittig
On Fri, Jul 12, 2013 at 14:14 +0200, Gerhard Sittig wrote: > > We shall combine the parts which currently are floating around. > So that others aren't supposed to pick up pieces but instead can > use a series and get something consistent. > > Here are the parts that I

Re: [V2 1/2] powerpc: mpc512x_dma: add support for data transfers between memory and i/o memory

2013-07-12 Thread Gerhard Sittig
s only useful after implementing the support (here: slave S/G in the DMA engine). On Fri, Jul 12, 2013 at 14:15 +0400, Alexander Popov wrote: > > 2013/7/10 Gerhard Sittig : > > >> @@ -256,7 +256,9 @@ static void mpc_dma_execute(struct mpc_dma_chan *mchan) > >> > >&g

Re: [V2 2/2] powerpc/512x: add LocalPlus Bus FIFO device driver

2013-07-10 Thread Gerhard Sittig
r_res; > + } > + > + if (!request_mem_region(r->start, resource_size(r), DRV_NAME)) { > + e = -EBUSY; > + goto err_res; > + } > + > + lpbfifo.irq = irq_of_parse_and_map(pdev->dev.of_node, 0); > + if (!lpbfifo.irq) { > + e = -ENODEV; > +

Re: [V2 1/2] powerpc: mpc512x_dma: add support for data transfers between memory and i/o memory

2013-07-10 Thread Gerhard Sittig
default: > + return -ENOSYS; > + } > + > + return -EINVAL; > +} > + > static int mpc_dma_probe(struct platform_device *op) > { > struct device_node *dn = op->dev.of_node; > @@ -725,9 +855,12 @@ static int mpc_dma_probe(struct platform_devic

Re: [PATCH V3 5/5] input: pxa27x-keypad: add device tree support

2013-06-19 Thread Gerhard Sittig
y lack free resources for this very driver extension. Alternatively I might send an RFC series since the current state isn't good enough for v1. Just ask if you'd like to test or review what I have come up with so far (it builds but wasn't run-tested). virtually yours Gerhard Sitti