]> 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, 21 Jun 2024 12:40:39 +0000 (14:40 +0200)
commitcc58a6ace1b37533c549c6af2d5bd0ca1fa421a9
tree9a3eacab1e271fe77826248e7f058589e3a44571
parentf53671429269244efbb18a84459d576ddddaf3f7
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