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: 11716061 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8B62213A4 for ; Sun, 16 Aug 2020 09:50:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 67C4220716 for ; Sun, 16 Aug 2020 09:50:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597571431; bh=MuzYdBgIYAbxUvBCWqa1bdzBfGD5XqPgC8ntMwWo7bA=; h=From:To:Cc:Subject:Date:List-ID:From; b=KIHo32PMoR6MM/kcdk4OG9Pdqo081fqQfYNrxGabx2RzQS6c0INQd7tqtukjOqMy3 b70jyWGksesST+c1SP3ti5kNqVmQYfAqaOxcCOi7y0DjL1AbguTeGbFjvLTdDBlpXn HaR0C7TXjmzZj24OHaE2klpFyWBWoFwFw2HqqiPk= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726399AbgHPJuJ (ORCPT ); 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(-) 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);