]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
i2c: i801: Remove i801_set_block_buffer_mode
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 18 Nov 2021 22:58:17 +0000 (23:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Feb 2024 07:42:25 +0000 (08:42 +0100)
commit5e8a6140d42f0583f754f7960668f7ef74dd18be
tree911e010e9dbd37b9298fc7e1e616390f22a46ce7
parent230e89b5ad0a33f530a2a976b3e5e4385cb27882
i2c: i801: Remove i801_set_block_buffer_mode

[ Upstream commit 1e1d6582f483a4dba4ea03445e6f2f05d9de5bcf ]

If FEATURE_BLOCK_BUFFER is set then bit SMBAUXCTL_E32B is supported
and there's no benefit in reading it back. Origin of this check
seems to be 14 yrs ago when people were not completely sure which
chip versions support the block buffer mode.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Tested-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Stable-dep-of: c1c9d0f6f7f1 ("i2c: i801: Fix block process call transactions")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i2c/busses/i2c-i801.c