From patchwork Sun Aug 16 09:49:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 247776 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp1747454ilo; Sun, 16 Aug 2020 02:50:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6pi2vAu+yQNPvizQdqHOZ/KxB1k04pChBtzcpTCI+ByVuZT0zVUrvV5Xkue4vu2Xp12Dh X-Received: by 2002:a17:906:a109:: with SMTP id t9mr10902900ejy.134.1597571421222; Sun, 16 Aug 2020 02:50:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597571421; cv=none; d=google.com; s=arc-20160816; b=qrNujzN22j8zLUMBVyVYmEq/FVWDHKKlM4lWXSRz7G2E5jOPeEsECzpXNOWOv26lP1 /YOY3Ym8NPgDaXiUnPMfPSXp03IRobvDLiYjP31TB+CZuq4m59BXOiPbFk5BXnRklpHE DpaPkgKslY4SGY9bErfTpU70R/kO32WKORk8cvKi49KKYgP1rFtETh5QlDAA+TVyKD9U xAQQBkFFOMYA9CQ/1AjaCEJAKNj+jEppmkWLP8atglQM79WbIGS+GYl7ydYQwdgXYOIL WADyvQc5Dx6hv/jWeeyv/vkxcEanVvQx90ExZYYCKNV1uG2bc9ZpZJ9bQeGmLQergKmP CYiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=4CEVePfA3Xl1n1jkwkOH+e2vegkTFZqmn97Vtkf6db0=; b=ghyclgxGEAxkYcPNgLySCgTSUDjACEwWbqit7jkZGpbZZqXRoWG5Z/K4lpa74lsz35 JuY4zo4ASucwg1cYozybF5jKUDvbZ7QV2cW3LQ7G+0vK1aL/WDbYIkUyv95TuuIK6mCQ wjJPdknfUBEsBUlZttpwv+RrpycW+4Ni6/AvjGJq0sclp33jW+RTsX1kiHAUJD2g9P7G xAxPV8cLVRIKvJEc8X9Nz3WsN/izEtcuNwTNJu6OnzYYxGQIIF4uMS43odd9fGSjhdpP k0LGbzIFFORJ5YlBi3YmnsSrMdngj+GLC4atrBZEb+h5Z75fBFYPRZHNwn+OFtOnNU5f Gkag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fu1cgfs6; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f16si8654661edv.411.2020.08.16.02.50.21; Sun, 16 Aug 2020 02:50:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fu1cgfs6; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726399AbgHPJuJ (ORCPT + 5 others); Sun, 16 Aug 2020 05:50:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:51916 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726092AbgHPJuH (ORCPT ); Sun, 16 Aug 2020 05:50:07 -0400 Received: from localhost.localdomain (unknown [122.171.38.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2EBEC20674; Sun, 16 Aug 2020 09:50:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597571407; bh=MuzYdBgIYAbxUvBCWqa1bdzBfGD5XqPgC8ntMwWo7bA=; h=From:To:Cc:Subject:Date:From; b=fu1cgfs6CoYs37t+152Bvt+oazE4LrVD62DksEJXhosjXOCKOAvylbL67rL/Neq5J Es7UuOKxkDUleQtenXXT/L8w0NLbTPy0GrPUAL8cV2cyY40tMv576FS+LepyedUH0W CP3kcbinNbWBqEjk3eqAonbABQPmlYd0Toicru3M= From: Vinod Koul To: Mathias Nyman , Greg Kroah-Hartman Cc: Vinod Koul , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] usb: renesas-xhci: add version 0x2020 as valid Date: Sun, 16 Aug 2020 15:19:49 +0530 Message-Id: <20200816094949.349878-1-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Some devices in wild are reporting firmware version as 0x2020, so add that as well Reported by: Anastasios Vacharakis Reported by: Glen Journeay Fixes: 2478be82de44 ("usb: renesas-xhci: Add ROM loader for uPD720201") Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=208911 Signed-off-by: Vinod Koul --- Greg, this fixes regression for folks with preprogrammed controllers with firmware version 0x2020, please mark as stable material drivers/usb/host/xhci-pci-renesas.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) -- 2.26.2 diff --git a/drivers/usb/host/xhci-pci-renesas.c b/drivers/usb/host/xhci-pci-renesas.c index 59b1965ad0a3..03875cd28ddd 100644 --- a/drivers/usb/host/xhci-pci-renesas.c +++ b/drivers/usb/host/xhci-pci-renesas.c @@ -50,14 +50,16 @@ #define RENESAS_RETRY 10000 #define RENESAS_DELAY 10 -#define ROM_VALID_01 0x2013 -#define ROM_VALID_02 0x2026 +#define ROM_VALID_01 0x2020 +#define ROM_VALID_02 0x2013 +#define ROM_VALID_03 0x2026 static int renesas_verify_fw_version(struct pci_dev *pdev, u32 version) { switch (version) { case ROM_VALID_01: case ROM_VALID_02: + case ROM_VALID_03: return 0; } dev_err(&pdev->dev, "FW has invalid version :%d\n", version);