Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 41fe9ea1696c ("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>

authored by

AngeloGioacchino Del Regno and committed by
Greg Kroah-Hartman
3461e020 fbdd9033

+1 -1
+1 -1
drivers/usb/typec/mux/it5205.c
··· 22 22 #include <linux/usb/typec_mux.h> 23 23 24 24 #define IT5205_REG_CHIP_ID(x) (0x4 + (x)) 25 - #define IT5205FN_CHIP_ID 0x35323035 /* "5205" */ 25 + #define IT5205FN_CHIP_ID 0x35303235 /* "5025" -> "5205" */ 26 26 27 27 /* MUX power down register */ 28 28 #define IT5205_REG_MUXPDR 0x10