From 6fa73db65090cad24bb5b77ed7b19043ff0ac8f3 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sat, 27 Dec 2014 23:32:47 +0100 Subject: [PATCH] projects/RPi/patches/linux: update RPi support patch Signed-off-by: Stephan Raue --- .../patches/linux/linux-01-RPi_support.patch | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/projects/RPi/patches/linux/linux-01-RPi_support.patch b/projects/RPi/patches/linux/linux-01-RPi_support.patch index 8561961c97..9e4bf27af9 100644 --- a/projects/RPi/patches/linux/linux-01-RPi_support.patch +++ b/projects/RPi/patches/linux/linux-01-RPi_support.patch @@ -121595,3 +121595,31 @@ index 58ad7dc..b32c814 100644 CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y CONFIG_CPU_IDLE=y CONFIG_VFP=y + +From 5f1c1ee8aca1f9c69b0e65bcd21065552d271013 Mon Sep 17 00:00:00 2001 +From: jeanleflambeur +Date: Sat, 20 Dec 2014 12:20:39 +0100 +Subject: [PATCH] Update i2c-bcm2708.c + +--- + drivers/i2c/busses/i2c-bcm2708.c | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/drivers/i2c/busses/i2c-bcm2708.c b/drivers/i2c/busses/i2c-bcm2708.c +index 728cb69..526129b 100644 +--- a/drivers/i2c/busses/i2c-bcm2708.c ++++ b/drivers/i2c/busses/i2c-bcm2708.c +@@ -266,10 +266,11 @@ static int bcm2708_i2c_master_xfer(struct i2c_adapter *adap, + bi->nmsgs = num; + bi->error = false; + +- spin_unlock_irqrestore(&bi->lock, flags); +- + bcm2708_bsc_setup(bi); + ++ /* unlockig _after_ the setup to avoid races with the interrupt routine */ ++ spin_unlock_irqrestore(&bi->lock, flags); ++ + ret = wait_for_completion_timeout(&bi->done, + msecs_to_jiffies(I2C_TIMEOUT_MS)); + if (ret == 0) {