From patchwork Thu Apr 11 16:05:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 787966 Delivered-To: patch@linaro.org Received: by 2002:adf:e6ca:0:b0:346:15ad:a2a with SMTP id y10csp306695wrm; Thu, 11 Apr 2024 09:06:08 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX8RwW73DYFaqjoVOUjohJU7jwJb+86N1O5jmRjincriE1MhRuyZ3Gf+hNaUS5KbcZpbxXTkrfam5Y2t/CQrPBA X-Google-Smtp-Source: AGHT+IFXncOCJ/0Rhcbd80SNDZSfQQUhYMfVVGuvmJyz1CfxcivkjaObfuepAEfMYFYmeh8tUkpm X-Received: by 2002:a50:99da:0:b0:56d:eb1e:17be with SMTP id n26-20020a5099da000000b0056deb1e17bemr126280edb.1.1712851568329; Thu, 11 Apr 2024 09:06:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1712851568; cv=none; d=google.com; s=arc-20160816; b=L2bLyshScYQHYTrFFrL64WDTlhKsOUOvmpqfHrHMlUfN95Md8bOKNHNi1NDdrv40H+ sHi2MJg5U+G5Y9C7oAUGGbfpn+lPPEphs1o2zGOR9gClrpV3SaUqouWdOOL1yBysiljy clzUq5lAtnKV3/IQGM7ytZH4ykElsyEg9fopq4TSG7GTZGIVFrsvICWgss4GiQ9iMkX+ gkyEmat/EnF9gUQUOMNARMmwRc7mJWYIGL8nKzNLAEdwYEDwgN+2L8zynxnVzBMjAO3v JDpQmky3i5XjCxLoZj2JCIQGFRfSuJSO2wFuk+B9dVKNmn1ZTQ4LlZpqM4fH90A48mx6 5a8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=1YsdJ2lKnRMlY5iscf2Hs8TNoURjfkofgrTPZyUqYWY=; fh=PsYRU4+keaT+7XAq1LTvvZhrte7GpByNJq13HqDN9yE=; b=MvQZliFZ9wVdkhmaQmIMDkKU4ZaDs56v41VOcZCw/V3em8FNTsbfbBt+ndrXqaha4K ShCDiyxBSOD50DT+n8jIHxBG2YENlicMpSp648VXilIkR6nPtswN8g7vIekRzP/BQbzv P2EriaswmovA+hRn4DhvcubYCF7p7s4uLPA7oa07DJgYcw4HPhYECUW4kQO9JEiV+ZRZ VMVKf1zoi2CQ/7cYaH5cmFz/zlUTVskFjSmczlwkIIppuneDo177j9PLLg023FqadXqK j/YnF0L6rYplbI26eA/e5kRn+xQgbD+mk0/Nhz0J8Bj0zyxNuBt6HbKRcCgODIJEc5H9 0PzA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cM2RyJdo; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id i38-20020a0564020f2600b0056fed42abbfsi463664eda.54.2024.04.11.09.06.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 09:06:08 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cM2RyJdo; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CBDA987F04; Thu, 11 Apr 2024 18:06:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="cM2RyJdo"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CD8F787EFA; Thu, 11 Apr 2024 18:06:03 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C833E87F04 for ; Thu, 11 Apr 2024 18:06:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=caleb.connolly@linaro.org Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-56e78970853so1644377a12.0 for ; Thu, 11 Apr 2024 09:06:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712851561; x=1713456361; darn=lists.denx.de; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=1YsdJ2lKnRMlY5iscf2Hs8TNoURjfkofgrTPZyUqYWY=; b=cM2RyJdob5Ruwv2Rq2lCUQrbEr47JDN/u7traxl6uI6p8U8ZpON/WBlRj8sIJDVC2p 4BAwNEHFKwa+9zAVFkG3TFdOgypT8/jmjHRSDhWuvY/WxL7hSPUgZTVRshyP/K+qwjqh mcHTpIyKppSPXlcpkkT7pm0VzANRWn0j5afHFK9f87hPM3yH38rtvd7PCfauDNNARch9 xauiIwzyGfrP7TQMB3GPBup4G2X136w+PsqF2VE+CM9wLPfiEumubVCVyyOREj9Ky75I J03r4C60jhrvRIi2W3X9uaJhAPZBaiGnrbOJP/9SAljnQYchqXqCkJKr4w7+gaLT8ryG lZ0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712851561; x=1713456361; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1YsdJ2lKnRMlY5iscf2Hs8TNoURjfkofgrTPZyUqYWY=; b=mPI7alt4jEvwIHMzrrbhqwhlr3WpfvzBRpzHjiPB4mq47PQ6LX3iQiknMEiVpWnkc1 fAVVQkWAndvs3Dt0oJAz3TD3eQGPuMxBvhee0pBmYipOsPKFjub2X6rQqElpaOqB7yND H6vK9kveLwQH0G/IduO5ryLyOQ2PtL+v/DCsLVdW3QrD7a6D0+ahvTLgEFKlMZX9yMD2 WwoD3LSINxQgeX6QN1HcjmN4e+LK4HeDU4jvCPEypSRuyrNfkfz2RNqxprvGrlsVWWy2 y0PCASMW7Dsn884J2SiGLWkMnAYfBmZrULZ5CsZvByie0T6boO73KPOv2RK7/q9xLiaM gwXA== X-Forwarded-Encrypted: i=1; AJvYcCWWh4oRDtPIWq9D+otOg2T1gvhEfIAdcI22mIj8z7Dh1tJJLcFkpaOtymR1baMPiqb2/ek4MYJjDdj/MnOZbb8BB4Ny3g== X-Gm-Message-State: AOJu0YxOwl5MemHEyy77RR/JhGwyb+Y4uJFOdc60zQ8KiQ9U97qnCMBI To7yxrhzDiTsp1aoU7Yvh1DfzCFGU2gvvrR1IZH4cNITe5I1Ub8l53dSNb4L89I= X-Received: by 2002:a50:c05e:0:b0:56b:dd7c:ac3d with SMTP id u30-20020a50c05e000000b0056bdd7cac3dmr81034edd.10.1712851561205; Thu, 11 Apr 2024 09:06:01 -0700 (PDT) Received: from cymric.caleb.rex.connolly.tech ([2a02:8109:aa0d:be00::570d]) by smtp.gmail.com with ESMTPSA id v19-20020aa7d653000000b0056fd85df9ccsm814019edr.47.2024.04.11.09.05.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 09:05:55 -0700 (PDT) From: Caleb Connolly To: Caleb Connolly , Igor Prusov , Marek Vasut , Mattijs Korpershoek , Nishanth Menon , Tom Rini Cc: Marek Vasut , Patrice Chotard , u-boot@lists.denx.de Subject: [PATCH] usb: dwc3: support USB 3.1 controllers Date: Thu, 11 Apr 2024 18:05:12 +0200 Message-ID: <20240411160527.835767-1-caleb.connolly@linaro.org> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean The revision is different for these, add the additional check as in xhci-dwc3 core_init code. Signed-off-by: Caleb Connolly Reviewed-by: Neil Armstrong Tested-by: Neil Armstrong # on SM8550 Reviewed-by: Mattijs Korpershoek Reviewed-by: Marek Vasut --- drivers/usb/dwc3/core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 96e850b7170f..db045f5822d4 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -594,9 +594,10 @@ static int dwc3_core_init(struct dwc3 *dwc) int ret; reg = dwc3_readl(dwc->regs, DWC3_GSNPSID); /* This should read as U3 followed by revision number */ - if ((reg & DWC3_GSNPSID_MASK) != 0x55330000) { + if ((reg & DWC3_GSNPSID_MASK) != 0x55330000 && + (reg & DWC3_GSNPSID_MASK) != 0x33310000) { dev_err(dwc->dev, "this is not a DesignWare USB3 DRD Core\n"); ret = -ENODEV; goto err0; }