Re: [PATCH 2/3] of: irq: make callers of of_irq_parse_one() release the device node

2023-03-04 Thread Jean-Jacques Hiblot
On 02/03/2023 08:49, Geert Uytterhoeven wrote: Hi Jean-Jacques, Thanks for your patch! On Wed, Mar 1, 2023 at 7:53 PM Jean-Jacques Hiblot wrote: of_irq_parse_one() does a get() on the device node returned in out_irq->np. Callers of of_irq_parse_one() must do a put() when they are d

[PATCH 0/3] of: irq: Fixes refcount issues with of_irq_parse_one()/of_irq_parse_raw()

2023-03-01 Thread Jean-Jacques Hiblot
is a double get() happening in of_irq_parse_one() when parsing the "interrupts-extended" properties. WARNING: I tried to be careful when modifying the callers of of_irq_parse_one()/of_irq_parse_raw() but haven't test-build all the changes. Jean-Jacques Hiblot (3): of:

[PATCH 3/3] of: irq: release the node after looking up for "interrupts-extended"

2023-03-01 Thread Jean-Jacques Hiblot
When of_parse_phandle_with_args() succeeds, a get() is performed on out_irq->np. And another get() is performed in of_irq_parse_raw(), resulting in the refcount being incremented twice. Fixing this by calling put() after of_irq_parse_raw(). Signed-off-by: Jean-Jacques Hiblot --- drivers

[PATCH 1/3] of: irq: make callers of of_irq_parse_raw() release the device node

2023-03-01 Thread Jean-Jacques Hiblot
of_irq_parse_raw() does a get() on the device node returned in out_irq->np. Callers of of_irq_parse_raw() must do a put() when they are done with it. Signed-off-by: Jean-Jacques Hiblot --- arch/powerpc/platforms/fsl_uli1575.c | 1 + drivers/bcma/main.c | 5 - 2 fi

[PATCH 2/3] of: irq: make callers of of_irq_parse_one() release the device node

2023-03-01 Thread Jean-Jacques Hiblot
of_irq_parse_one() does a get() on the device node returned in out_irq->np. Callers of of_irq_parse_one() must do a put() when they are done with it. Signed-off-by: Jean-Jacques Hiblot --- .../mach-shmobile/regulator-quirk-rcar-gen2.c | 1 + arch/powerpc/sysdev/mpic_msi.c|

Re: [PATCH v3 REPOST 2/4] i2c: i2c-ibm-iic: perform the transfer in the interrupt handler

2014-01-03 Thread Jean-Jacques Hiblot
2014/1/3 Wolfram Sang : > > Hi, > > thanks for the submission! You're welcome :) Thanks for reviewing this. > >> --- a/drivers/i2c/busses/i2c-ibm_iic.c >> +++ b/drivers/i2c/busses/i2c-ibm_iic.c >> @@ -58,6 +58,8 @@ static bool iic_force_fast; >> module_param(iic_force_fast, bool, 0); >> MODULE_P

Re: [PATCH v3 REPOST 3/4] i2c: i2c-ibm-iic: Implements transfer abortion

2014-01-03 Thread Jean-Jacques Hiblot
2014/1/3 Wolfram Sang : > On Fri, Dec 20, 2013 at 04:12:55PM +0100, jean-jacques hiblot wrote: >> From: jean-jacques hiblot >> >> Clean-up properly when a transfer fails for whatever reason. >> Cancel the transfer when the process is signaled. > > Please descri

[PATCH v3 REPOST 4/4] i2c: i2c-ibm-iic: Implements a polling mode

2013-12-20 Thread jean-jacques hiblot
From: jean-jacques hiblot When no valid interrupt is defined for the controller, use polling to handle the transfers. The polling mode can also be forced with the "iic_force_poll" module parameter. Signed-off-by: jean-jacques hiblot --- drivers/i2c/busses/i2c-ibm_

[PATCH v3 REPOST 3/4] i2c: i2c-ibm-iic: Implements transfer abortion

2013-12-20 Thread jean-jacques hiblot
From: jean-jacques hiblot Clean-up properly when a transfer fails for whatever reason. Cancel the transfer when the process is signaled. Signed-off-by: jean-jacques hiblot --- drivers/i2c/busses/i2c-ibm_iic.c | 146 ++- drivers/i2c/busses/i2c-ibm_iic.h

[PATCH v3 REPOST 2/4] i2c: i2c-ibm-iic: perform the transfer in the interrupt handler

2013-12-20 Thread jean-jacques hiblot
From: jean-jacques hiblot The current implementation uses the interrupt only to wakeup the process doing the data transfer. While this is working, it introduces indesirable latencies. This patch implements the data transfer in the interrupt handler. It keeps the latency between individual bytes

[PATCH v3 REPOST 0/4] i2c : i2c-ibm-iic : use interrupts to perform the data transfer

2013-12-20 Thread jean-jacques hiblot
more appropriate jean-jacques hiblot (4): i2c: i2c-ibm-iic: cleanup. i2c: i2c-ibm-iic: perform the transfer in the interrupt handler i2c: i2c-ibm-iic: Implements transfer abortion i2c: i2c-ibm-iic: Implements a polling mode drivers/i2c/busses/i2c-ibm_iic.c

[PATCH v3 REPOST 1/4] i2c: i2c-ibm-iic: cleanup.

2013-12-20 Thread jean-jacques hiblot
From: jean-jacques hiblot * removed unneeded 'volatile' qualifiers and casts * use the dev_dbg, dev_err etc. instead of printk * removed unneeded members for the driver's private data * fixed the style of the multi-line comments Signed-off-by: jean-jacques hiblot Reviewed-by: