Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1918254lqe; Tue, 9 Apr 2024 04:45:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV/83HFazxxPZG3wgKrOu9TWUCdzWoNDxSb35cxGgPzw9qMZJ3kBvz/IeOvjP9KOxCnKvhyFf3kzlMR/LPwvC2m+K4bzWshz8WF2FZxtA== X-Google-Smtp-Source: AGHT+IHjmIUfAhQxvSiab2k16XCmfkkaWiDF6OjiajnlR0+R+uGm8oiVaAsOFkpvmcHDshsQojfY X-Received: by 2002:a05:6358:d39e:b0:186:1152:d741 with SMTP id mp30-20020a056358d39e00b001861152d741mr9505461rwb.6.1712663118258; Tue, 09 Apr 2024 04:45:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712663118; cv=pass; d=google.com; s=arc-20160816; b=eeYSkh+wjfgUC8SMGzMXUazuRe4iwNmzwO5kgZfTvZpYPND6s/87XPa3b1tpciZufp WRG4NIdoE7L1roraF4NPFijnWoqJK+FLBciAQ9I0E6/O0sa3/8r4x1u9E+jeKXIlYdMb H/0PtpTm45B+PzTQk+MADGS92Tt6diUsfBPADbJNn69lg02HDvQcWwKZ8iQ4fznGh8rC JEc0op+jLuyghUq8/4SxQFwXSO9W1RcJnkqIYvPhgOEq8tnBTlFgA+9TWzZMVCl0jKE/ vy1iEloyjXMCes2iOFWn4NFTKUWI00jVFc/zscxCn6cWQAU4SCi37Vir75r6EYpfYyk5 +XsA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=iSF8rVqIjmdjrVkpUFkxtnKVXSoXCQ3GNSGb9mERl48=; fh=7JHlSa9aiSMXWXpXeRRUZta8cCsVNro/UNSv79WnfP4=; b=aoIWx9Cw/5VRcAu1jTFxpE6uZ5rFyLv/XEinHKGPNeEEvcCKbpUcpbGVchrANsIIH9 tBrvnaTAwW9mrLfb7McIocbHRyEpoIJVmFD5mwMGlQiRCCwvFIZKpsVTLQBJj4bcTAGM 17qQs0J04Qnn7VN+f4vD7+nNNHua2FJdnAxuNJ25xHSwKDcTwbWu/KssX63aiv5vjNAz NbZuBCvwUTvokPGiC4LzG39BthBuy+1DGxJ7G9byPoljyZstrYkZrxg12vPvx2NP5/Rs bKbEqE5YghUS5hCge0G/s8cHuqEmFJekTXlq9tZFeZ3qTpQBddoSLR2cVMgyVWvhT5KX WOdg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Mep8RMYk; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-136791-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136791-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id f21-20020a635115000000b005cfd3333850si8155083pgb.106.2024.04.09.04.45.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 04:45:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136791-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Mep8RMYk; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-136791-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136791-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 6E581288434 for ; Tue, 9 Apr 2024 11:40:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D8C4412BF08; Tue, 9 Apr 2024 11:36:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="Mep8RMYk" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A6769128362; Tue, 9 Apr 2024 11:36:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712662613; cv=none; b=L56vpUjIjHqpOcUXvMlWmil/4ob64+b61JDVk2IhIOu3zKypWSf4N/7BN9rN7yZkuLq8rlmUjHd3q7UBZQPuJzN1CCTxPJCqxKwe9C+UTNSWs89bGrwS0KQ5hJf5TIihEo0PkSI/ANy8toOyx7UoLSTvgbxWrIFW8pCedfzrC/U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712662613; c=relaxed/simple; bh=qiUfa1Nb3MNGOeFN+5SAcHIbFBa6b14g3LCj9WcfGYY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bTyfc+2JyxRlinUP1qk1bSb8NSKza3jJjPakqtvXpmaxltKpLg0kOvxi/uiulsFaScmOYCuPFaHZ6+8nEfdcxgyDduE0fiGfiv5viAqzKRtnCSPc2Y2ixRuaFbrYIZm0P6OL3yXMxPJXIS8T54GRstw3yRZubTjtMbpzHeu5vNA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=Mep8RMYk; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1712662610; bh=qiUfa1Nb3MNGOeFN+5SAcHIbFBa6b14g3LCj9WcfGYY=; h=From:To:Cc:Subject:Date:From; b=Mep8RMYkVlOpYMgMdWwjPtOKDv+586xQEH0KaEtOWtrk5FtIwj6khBk+KYPa6I8yl r8XyrLDcLYHNFRej+tc57p7sgZVWVFclMJPgRqlH1OxbHzcp73vn8P6Ijy5ntzRnlt TgpgZ8faEyXkebBmm4TPlM0QV1QRWTsP6cC0SiH8KIzc1jbgQ49+J+5qdjXxFuej2V TLMKz15ZmkCaNW57iTkJFpEvEjnxTsyN8vGyBHZPbJkLU4Um4H2+EyC++YB4yFMVwM hS0E3jCsrTwTrUe4mUOsIevgv46NqwxTueT0naTlTu77RodIeta+1ur/IPC8X8Jifx 1S1vb8MndbUTw== Received: from IcarusMOD.eternityproject.eu (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 8AD6537820F5; Tue, 9 Apr 2024 11:36:49 +0000 (UTC) From: AngeloGioacchino Del Regno To: heikki.krogerus@linux.intel.com Cc: gregkh@linuxfoundation.org, angelogioacchino.delregno@collabora.com, dmitry.baryshkov@linaro.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com Subject: [PATCH] usb: typec: mux: it5205: Fix ChipID value typo Date: Tue, 9 Apr 2024 13:36:46 +0200 Message-ID: <20240409113646.305105-1-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- drivers/usb/typec/mux/it5205.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/typec/mux/it5205.c b/drivers/usb/typec/mux/it5205.c index 5535932e42cd..4357cc67a867 100644 --- a/drivers/usb/typec/mux/it5205.c +++ b/drivers/usb/typec/mux/it5205.c @@ -22,7 +22,7 @@ #include #define IT5205_REG_CHIP_ID(x) (0x4 + (x)) -#define IT5205FN_CHIP_ID 0x35323035 /* "5205" */ +#define IT5205FN_CHIP_ID 0x35303235 /* "5025" -> "5205" */ /* MUX power down register */ #define IT5205_REG_MUXPDR 0x10 -- 2.44.0