Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1869482ybi; Thu, 20 Jun 2019 05:21:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqwveJRrlQr/arg6AMCnawecHddaoN2Byq0VdhuwZGJBIdrzuGPHrA9IfVjDf4z/RTsjZiqR X-Received: by 2002:a63:fc61:: with SMTP id r33mr12672596pgk.294.1561033286582; Thu, 20 Jun 2019 05:21:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561033286; cv=none; d=google.com; s=arc-20160816; b=nOnGEqS+qAjQ3eyFlUpl5lY6LiK3IJZhyR/sffJxM2ypF1mWlAEqTUVn8Zq8SxQvcS +e31beYQcwPdM2moqqLbVrgZn51hUyyapnaxFVSUctjsJO/30NlvuO5qJAdEbZ+CC0Kt SKMSUE/w6WuerPwg5lolw4wgdUV6/hjzZRsJtHy/cOBcENPVHhrCt/aMd4EJQkgpGmUs g55Z2bFAExv214Cqf8bIONR/+iF43vsXtp2jIroVidh5I01KBkYpXtDINnGMA4orSsgi DSwOZlShw48YXg5G5d0MaPQbQhUuxnknE56WjHM+2am+IRqZXJwNS8dLlMs5nXoracZ5 mRhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=namYwH2SwUP+OgnWWY++B0k/SLsw82PkDkPXTo0GI+o=; b=mIP9YZZrJsfhH1tZjcCQoZBr8JS1ZAMjs51asFI0DOGeY7qZSFZCNq5mwh9F5c3Fe6 KDJAxbzwR2G8bViXSbkBAvY8k/CEGps7e6HLH2tMVDKVt17U1qTQ/TuIl5jL0ynOKGEz riRMil++uk4yjPgDRfZmSzdwYQK3HpJTKWPWT7qp3sXvI+dBRBrT9b/2ELMSrt4UysHY vdNNq3USoOAWid+ELR+uKcjVObl3y3fxswkWgtNqvS6tPiGdwzzFFZynyvWl0LGXrgca +N4ZHynaYe6n4yYfDzEnNJD7Dw1O01DPUsyT1bGeUsEiEZRCnhLtMOQ0TTviaT3igCIp TGzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oWEOibzH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i10si5461841pgs.231.2019.06.20.05.21.10; Thu, 20 Jun 2019 05:21:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oWEOibzH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731724AbfFTMUQ (ORCPT + 99 others); Thu, 20 Jun 2019 08:20:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:44524 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726874AbfFTMUQ (ORCPT ); Thu, 20 Jun 2019 08:20:16 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 0755F2080C; Thu, 20 Jun 2019 12:20:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561033215; bh=n0G/+6qb7qw5DGnYI2pT1g29VJVpYzQKudyEs0DE8DI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oWEOibzHy+eUwIi7JgpV2fKCniqoviMJXdixyunQECR1sDvbhoi/xw3z0xMQfQbOP ieFZ03NknkPs4BTWhH8hKZdPEjNu7xo9zi5pNJ8Z9zBcCQNiJEXcI32IXQU0hc2bnf 072dIUUHeoJq4x9eGU1igMCt+OUOdvoGW0fbvgmU= Date: Thu, 20 Jun 2019 14:20:13 +0200 From: Greg Kroah-Hartman To: Vinod Koul Cc: Mathias Nyman , linux-arm-msm@vger.kernel.org, Bjorn Andersson , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Yoshihiro Shimoda , Christian Lamparter Subject: Re: [PATCH 5/5] usb: xhci: allow multiple firmware versions Message-ID: <20190620122013.GE19295@kroah.com> References: <20190620102154.20805-1-vkoul@kernel.org> <20190620102154.20805-6-vkoul@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190620102154.20805-6-vkoul@kernel.org> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 20, 2019 at 03:51:54PM +0530, Vinod Koul wrote: > Allow multiple firmware file versions in table and load them in > increasing order as we find them in the file system. > > Signed-off-by: Vinod Koul > Cc: Yoshihiro Shimoda > Cc: Christian Lamparter > --- > drivers/usb/host/xhci-pci.c | 39 +++++++++++++++++++++++++++++++++++++ > 1 file changed, 39 insertions(+) > > diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c > index 3574afac44c5..2ee9e6bbabcb 100644 > --- a/drivers/usb/host/xhci-pci.c > +++ b/drivers/usb/host/xhci-pci.c > @@ -333,9 +333,12 @@ static const struct renesas_fw_entry { > * - uPD720201 ES 2.0 sample whose revision ID is 2. > * - uPD720201 ES 2.1 sample & CS sample & Mass product, ID is 3. > * - uPD720202 ES 2.0 sample & CS sample & Mass product, ID is 2. > + * > + * Entry expected_version should be kept in increasing order Why? > */ > { "K2013080.mem", 0x0014, 0x02, 0x2013 }, > { "K2013080.mem", 0x0014, 0x03, 0x2013 }, > + { "K2026090.mem", 0x0014, 0x03, 0x2026 }, > { "K2013080.mem", 0x0015, 0x02, 0x2013 }, Just put a { } entry here at the end and then you don't care about the order at all. Much simpler and easier to maintain over time. thanks, greg k-h