From patchwork Sun Aug 16 11:59:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 11716105 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 37B1B913 for ; Sun, 16 Aug 2020 12:00:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1EEDA20716 for ; Sun, 16 Aug 2020 12:00:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597579256; bh=CXcNyaPtavfj7aGTBkfdqdo9bINGV1Mzg2Iw/8pbozY=; h=From:To:Cc:Subject:Date:List-ID:From; b=pa8CtKeiaxx2ag0tBy7EP7f5YHRCfxezGMDIIVZaXI1qFdWKLTL2ewqG41GBxYhRD ErLS/qkNqMlhUaK7BOhKJyEzZeEe/Ltj3t5Nou+wTqFEEcGMfGHAv+qjQtHBDScW6B i3jsXG6OxGMq/heJ5tNZTgTGLGFdtZcLb65IONz8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726339AbgHPMAZ (ORCPT ); Sun, 16 Aug 2020 08:00:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:52396 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726308AbgHPMAN (ORCPT ); Sun, 16 Aug 2020 08:00:13 -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 DD9D1207D3; Sun, 16 Aug 2020 12:00:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597579203; bh=CXcNyaPtavfj7aGTBkfdqdo9bINGV1Mzg2Iw/8pbozY=; h=From:To:Cc:Subject:Date:From; b=oYBQms5G+ACe346GACm1SD4S49w7jSNQPi0x7irHu6s97Uqxj8yV+8bgPJyw0wMmM x7VbuvLuaAfh7QoVOwxKeHoszMwTuK6OSaZzarT11F3ee95LqOu9bliy9ZDnRq3eIU uHlV251FUBhbUhAqRRUmUUf4bXOTkq7TnrMJBgP0= From: Vinod Koul To: Mathias Nyman , Greg Kroah-Hartman Cc: Vinod Koul , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] usb: renesas-xhci: add missing versions Date: Sun, 16 Aug 2020 17:29:50 +0530 Message-Id: <20200816115950.400594-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 0x2011 and 0x2020, so add these 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 and 0x2011, please mark as stable material drivers/usb/host/xhci-pci-renesas.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/xhci-pci-renesas.c b/drivers/usb/host/xhci-pci-renesas.c index 59b1965ad0a3..f32b5a958ace 100644 --- a/drivers/usb/host/xhci-pci-renesas.c +++ b/drivers/usb/host/xhci-pci-renesas.c @@ -50,14 +50,19 @@ #define RENESAS_RETRY 10000 #define RENESAS_DELAY 10 -#define ROM_VALID_01 0x2013 -#define ROM_VALID_02 0x2026 +/* keep the ids sorted */ +#define ROM_VALID_01 0x2011 +#define ROM_VALID_02 0x2013 +#define ROM_VALID_03 0x2020 +#define ROM_VALID_04 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: + case ROM_VALID_04: return 0; } dev_err(&pdev->dev, "FW has invalid version :%d\n", version);