summaryrefslogtreecommitdiffstats
path: root/drivers/bus/sunxi-rsb.c
Commit message (Collapse)AuthorAgeFilesLines
* drivers: sunxi-rsb: fix error output typeAndre Przywara2016-01-251-2/+2
| | | | | | | | | "len" is actually a size_t in this function here, so properly annotate the dev_err printf type to allow compilation for 64-bit architectures. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
* bus: sunxi-rsb: Fix peripheral IC mapping runtime addressChen-Yu Tsai2015-12-221-1/+1
| | | | | | | | 0x4e is the runtime address normally associated with perihperal ICs. 0x45 is not a valid runtime address. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Olof Johansson <olof@lixom.net>
* bus: sunxi-rsb: Fix primary PMIC mapping hardware addressChen-Yu Tsai2015-12-221-1/+1
| | | | | | | The primary PMICs use 0x3a3 as their hardware address, not 0x3e3. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Olof Johansson <olof@lixom.net>
* bus: sunxi-rsb: unlock on error in sunxi_rsb_read()Dan Carpenter2015-11-171-2/+2
| | | | | | | | | Don't forget to unlock before returning an error code. Fixes: d787dcdb9c8f ('bus: sunxi-rsb: Add driver for Allwinner Reduced Serial Bus') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
* bus: sunxi-rsb: Add driver for Allwinner Reduced Serial BusChen-Yu Tsai2015-10-261-0/+783
Reduced Serial Bus (RSB) is an Allwinner proprietery interface used to communicate with PMICs and other peripheral ICs. RSB is a two-wire push-pull serial bus that supports 1 master device and up to 15 active slave devices. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Reviewed-by: Mark Brown <broonie@kernel.org> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Olof Johansson <olof@lixom.net>