[PATCH] spi: Master driver for NXP SC18IS602/603

2012-08-18 Thread Guenter Roeck
This driver adds support for NXP SC18IS602/603 I2C to SPI bus bridge. Signed-off-by: Guenter Roeck li...@roeck-us.net --- There is one checkatch warning: WARNING: please write a paragraph that describes the config symbol fully #101: FILE: drivers/spi/Kconfig:328: +config

72h à prix coutants dans tous les magasins

2012-08-18 Thread Cdiscount par Galeriedesmarques.fr
Pour voir le message, veuillez utiliser un lecteur de mail compatible HTML Lien miroir : http://m10-fr.com/mc10_m/YT04JmI9MTgwNTMmYz0xOTYxNjQxJmQ9MjAxMi0wOC0xOCAxODoxMDowMSZlPTEmaD0xODA1MiZmPTE4MDUzJmc9MTgwNTM= Lien de désinscription :

[PATCH 1/4] spi/mpc52xx: Fix error handling in probe function

2012-08-18 Thread Guenter Roeck
The call to spi_master_put() is needed to free device memory. It must be called after spi_alloc_master, and must only be called after the device memory is no longer used. Signed-off-by: Guenter Roeck li...@roeck-us.net --- drivers/spi/spi-mpc52xx.c |5 +++-- 1 file changed, 3 insertions(+),

[PATCH 3/4] spi/mpc52xx-psc: Avoid access to freed memory in device remove function

2012-08-18 Thread Guenter Roeck
The call to spi_unregister_master() in the device remove function frees device memory, and with it any device local data. However, device local data is still accessed after the call to spi_unregister_master(). Acquire a reference to the SPI master device and release it after cleanup is complete

[PATCH 2/4] spi/mpc52xx: Fix device remove function

2012-08-18 Thread Guenter Roeck
The call sequence spi_alloc_master/spi_register_master/spi_unregister_master is complete; it reduces the device reference count to zero, which results in device memory being freed. An extra call to spi_master_put is unnecessary and results in an access to free memory. At the same time, since the

[PATCH 4/4] spi/mpc512x-psc: Avoid access to freed memory in device remove function

2012-08-18 Thread Guenter Roeck
The call to spi_unregister_master() in the device remove function frees device memory, and with it any device local data. However, device local data is still accessed after the call to spi_unregister_master(). Acquire a reference to the SPI master device and release it after cleanup is complete

Re: [PATCH] spi/pl022: Fill master-dev.of_node to get spi devices registered via DT

2012-08-18 Thread Linus Walleij
On Sat, Aug 18, 2012 at 4:25 AM, Viresh Kumar viresh.ku...@linaro.org wrote: spi_register_master() calls of_register_spi_devices() to register spi devices. This routine expects master-dev.of_node to be a valid pointer. This is responsibility of master driver to fill this field, which wasn't