Skip to content

Commit 8fcacc0

Browse files
author
Kevin Hilman
committed
Merge tag 'sunxi-fixes-for-4.4' of https://git.kernel.org/pub/scm/linux/kernel/git/mripard/linux into fixes
Merge "Allwinner fixes for 4.4" from Maxime Ripard: Allwinner fixes for 4.4 Two patches, one to fix the touchscreen axis on one Allwinner board, and the other one fixing a mutex unlocking issue on one error path in the RSB driver. * tag 'sunxi-fixes-for-4.4' of https://git.kernel.org/pub/scm/linux/kernel/git/mripard/linux: bus: sunxi-rsb: unlock on error in sunxi_rsb_read() ARM: dts: sunxi: sun6i-a31s-primo81.dts: add touchscreen axis swapping property
2 parents 7f4c977 + 43675ff commit 8fcacc0

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

arch/arm/boot/dts/sun6i-a31s-primo81.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
reg = <0x5d>;
8484
interrupt-parent = <&pio>;
8585
interrupts = <0 3 IRQ_TYPE_LEVEL_HIGH>; /* PA3 */
86+
touchscreen-swapped-x-y;
8687
};
8788
};
8889

drivers/bus/sunxi-rsb.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,13 +342,13 @@ static int sunxi_rsb_read(struct sunxi_rsb *rsb, u8 rtaddr, u8 addr,
342342

343343
ret = _sunxi_rsb_run_xfer(rsb);
344344
if (ret)
345-
goto out;
345+
goto unlock;
346346

347347
*buf = readl(rsb->regs + RSB_DATA);
348348

349+
unlock:
349350
mutex_unlock(&rsb->lock);
350351

351-
out:
352352
return ret;
353353
}
354354

0 commit comments

Comments
 (0)