Date:2012-08-25 21:58:20 (8 years 4 months ago)
Author:Maarten ter Huurne
Commit:62d5a4c2cb12d11f1ee1aceb1691240239e017d2
Message:MIPS: JZ4740: A320: Hardcode GPIO I2C bus number

The previous bus ID value of -1 should auto-assign an unused bus number,
but apparently it does not consider bus 0 unused since the RDA5807 is
registered on there, so it picks bus 1 and the RDA5807 becomes unreachable.

Thanks to Lars-Peter Clausen for figuring out the cause of this problem
and to Marcos Paulo de Souza for testing the fix.
Files: arch/mips/jz4740/board-a320.c (1 diff)

Change Details

arch/mips/jz4740/board-a320.c
7070
7171static struct platform_device a320_i2c_device = {
7272    .name = "i2c-gpio",
73    .id = -1,
73    .id = 0,
7474    .dev = {
7575        .platform_data = &a320_i2c_pdata,
7676    },

Archive Download the corresponding diff file



interactive