[PATCH] i2c: core: only use set_scl for bus recovery after calling prepare_recovery

2015-07-08 Thread Jan Luebbe
Using set_scl may be ineffective before calling the driver specific prepare_recovery callback, which might change into a test mode. So instead of setting SCL in i2c_generic_scl_recovery, move it to i2c_generic_recovery (after the optional prepare_recovery). Signed-off-by: Jan Luebbe j

[PATCH] i2c: omap: fix bus recovery setup

2015-07-08 Thread Jan Luebbe
need to set them to 1 (which means high-impedance) to avoid unwanted changes on the pins. As a precaution, reset all these bits to their default values after recovery is complete. Signed-off-by: Jan Luebbe j...@pengutronix.de --- drivers/i2c/busses/i2c-omap.c | 11 +++ 1 file changed, 11

Re: [PATCH] ti_tscadc: Update with IIO map interface deal with partial activation

2013-05-06 Thread Jan Luebbe
Hi Pantelis, while trying out your patch on a custom AM335x board, I noticed that the sysfs entries ware missing. This is fixed in the first patch, you might want to squash that into your original patch. The second one makes sure that the iio framework does not read invalid data. Regards, Jan

[PATCH 2/2] iio: adc: ti_am335x_adc: make tiadc_read_raw() more robust

2013-05-06 Thread Jan Luebbe
Check that mask is actually IIO_CHAN_INFO_RAW. Also handle the case where not enough data is in the fifo. Signed-off-by: Jan Luebbe j...@pengutronix.de --- drivers/iio/adc/ti_am335x_adc.c | 48 - 1 file changed, 28 insertions(+), 20 deletions(-) diff

[PATCH 1/2] iio: adc: ti_am335x_adc: revert info_mask removal

2013-05-06 Thread Jan Luebbe
Commit ti_tscadc: Update with IIO map interface deal with partial activation by Pantelis Antoniou pa...@antoniou-consulting.com removed this line. Without it, the in_voltage?_raw entries are missing from sysfs. Signed-off-by: Jan Luebbe j...@pengutronix.de --- drivers/iio/adc/ti_am335x_adc.c

Re: [PATCH 1/3] ARM: dts: AM33XX: Add pinmux configuration for CPSW to beaglebone

2013-04-01 Thread Jan Luebbe
On Mon, Mar 25, 2013 at 12:57:56PM +0530, Mugunthan V N wrote: am33xx_pinmux: pinmux@44e10800 { pinctrl-names = default; - pinctrl-0 = user_leds_s0; + pinctrl-0 = user_leds_s0 cpsw_s0; Why do you add cpsw_s0 to the pinmux node? This should go into

[PATCH] mmc: omap_hsmmc: support deferred probing for GPIOs

2013-01-30 Thread Jan Luebbe
function. Signed-off-by: Jan Luebbe j...@pengutronix.de --- I've tested this on an AM335x based board which uses an external GPIO expander. drivers/mmc/host/omap_hsmmc.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers

[RFC PATCH] gpio/omap: fix pm_runtime for IRQ functions

2013-01-18 Thread Jan Luebbe
-by: Jan Luebbe j...@pengutronix.de --- drivers/gpio/gpio-omap.c | 65 +++--- 1 file changed, 61 insertions(+), 4 deletions(-) diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index d335af1..51434f3 100644 --- a/drivers/gpio/gpio-omap.c +++ b

[PATCH 3/3] net: cpsw: implement ioctl for MII

2012-12-03 Thread Jan Luebbe
This allows using tools like mii-diag on CPSW. Signed-off-by: Jan Luebbe j...@pengutronix.de --- drivers/net/ethernet/ti/cpsw.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 8de3e92..f476c03 100644

[PATCH 1/3] net: cpsw: replace pr_xxx with dev_xxx functions

2012-12-03 Thread Jan Luebbe
Signed-off-by: Jan Luebbe j...@pengutronix.de --- drivers/net/ethernet/ti/cpsw.c | 47 1 file changed, 23 insertions(+), 24 deletions(-) diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index fb1a692..c0e676a 100644

[PATCH 2/3] net: cpsw: verify correct number of slaves in DT

2012-12-03 Thread Jan Luebbe
Check that the number of available slaves passed from DT matches the value of the slaves property in the cpsw node. Otherwise, priv-slaves would be the wrong size. Signed-off-by: Jan Luebbe j...@pengutronix.de --- drivers/net/ethernet/ti/cpsw.c | 17 + 1 file changed, 17

[PATCH] omap: Fix multi.h when only ARCH_OMAP3 and SOC_AM33XX are selected

2012-08-07 Thread Jan Luebbe
for AM33xx. Fix this by defining MULTI_OMAP2 when using SOC_AM33XX together with something else. Signed-off-by: Jan Luebbe j...@pengutronix.de --- arch/arm/plat-omap/include/plat/multi.h |9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/plat-omap/include/plat/multi.h b/arch