]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
i2c: at91: Fix the functionality flags of the slave-only interface
authorJean Delvare <jdelvare@suse.de>
Fri, 31 May 2024 09:19:14 +0000 (11:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jul 2024 07:08:20 +0000 (09:08 +0200)
commitf51f449e7df36700efa5fb7a4f8201cec9986ddb
treec819f97ad716f3e1b971549bd40a5fef6e889ab4
parent51fe16c058acb22f847e69bc598066ed0bcd5c15
i2c: at91: Fix the functionality flags of the slave-only interface

[ Upstream commit d6d5645e5fc1233a7ba950de4a72981c394a2557 ]

When an I2C adapter acts only as a slave, it should not claim to
support I2C master capabilities.

Fixes: 9d3ca54b550c ("i2c: at91: added slave mode support")
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Juergen Fitschen <me@jue.yt>
Cc: Ludovic Desroches <ludovic.desroches@microchip.com>
Cc: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
Cc: Andi Shyti <andi.shyti@kernel.org>
Cc: Nicolas Ferre <nicolas.ferre@microchip.com>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Claudiu Beznea <claudiu.beznea@tuxon.dev>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i2c/busses/i2c-at91-slave.c