Commit b44a76cb authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Wen Zhiwei
Browse files

eeprom: digsy_mtc: Fix 93xx46 driver probe failure

stable inclusion
from stable-v6.6.52
commit cb735cf79aa1f32ad64293d0713dda4009e760c0
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IAYXOD

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=cb735cf79aa1f32ad64293d0713dda4009e760c0



--------------------------------

[ Upstream commit 2b82641ad0620b2d71dc05024b20f82db7e1c0b6 ]

The update to support other (bigger) types of EEPROMs broke
the driver loading due to removal of the default size.

Fix this by adding the respective (new) flag to the platform data.

Fixes: 14374fbb ("misc: eeprom_93xx46: Add new 93c56 and 93c66 compatible strings")
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240508184905.2102633-3-andriy.shevchenko@linux.intel.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarWen Zhiwei <wenzhiwei@kylinos.cn>
parent d80b3663
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ static void digsy_mtc_op_finish(void *p)
}

struct eeprom_93xx46_platform_data digsy_mtc_eeprom_data = {
	.flags		= EE_ADDR8,
	.flags		= EE_ADDR8 | EE_SIZE1K,
	.prepare	= digsy_mtc_op_prepare,
	.finish		= digsy_mtc_op_finish,
};