Skip to content

Commit 3461e02

Browse files
AngeloGioacchino Del Regnogregkh
authored andcommitted
usb: typec: mux: it5205: Fix ChipID value typo
The ChipID bytes are read in inverse order: invert the ChipID value defined as IT5205FN_CHIP_ID and used for validating the same. Fixes: 41fe9ea ("usb: typec: mux: Add ITE IT5205 Alternate Mode Passive MUX driver") Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20240409113646.305105-1-angelogioacchino.delregno@collabora.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent fbdd903 commit 3461e02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/typec/mux/it5205.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include <linux/usb/typec_mux.h>
2323

2424
#define IT5205_REG_CHIP_ID(x) (0x4 + (x))
25-
#define IT5205FN_CHIP_ID 0x35323035 /* "5205" */
25+
#define IT5205FN_CHIP_ID 0x35303235 /* "5025" -> "5205" */
2626

2727
/* MUX power down register */
2828
#define IT5205_REG_MUXPDR 0x10

0 commit comments

Comments
 (0)