Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1529698ybd; Sun, 23 Jun 2019 09:40:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzYiy2ynVA/8dvVm8RBzAaArXhQN1uOcKY2WLXVlUQVi6II9GMB+D5RiDvxyQ4HJl2UZL+1 X-Received: by 2002:a17:902:9041:: with SMTP id w1mr130683872plz.132.1561308033197; Sun, 23 Jun 2019 09:40:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561308033; cv=none; d=google.com; s=arc-20160816; b=zR0MeBwLnvtiQkk6xUKfaIbzzQRXk4E953661A+NMKN8ake1metVncDutU4qnx7T96 qIUMVCwFMTd6SVuAJ8KhstowcObLnvzq7cymECh1lZj7dlKHlKzqSNSvPJg4NeMLWg+x pPdkWlt2SNawIirEce+XAuDQF9LCoKfWoQ50kSB0kG+3nA8k/Uocgq3OqovUSf1Zbp4V 53MKF90kjDIgGr91yIMuqYazENqF43KDxXbqq+ImnfaQJmbwIp0JhJAhjzO46gbUtHeM kejU2Rhnm3v8fiNI+x6P7KDEgVk9fJ4UgAqi/gxO/gfdgVt0H5mA/iCils8Wl3NJcvlC q1Ew== 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=BiCOddH0ll9L4JSAd7y653BzFOCkokTzj5vu2wfMF+8=; b=BrNBroUqGvr3vLVUrlBK7cqoz0EV/zGeyrnEV8OQzsjqsPxTa9e0+/dOK5GId6N9oF gJ4z3b4v5FfV1p4Q565MMvHymKbfjZKA1tILzySOpKTAiS17R9IlTqut1/3Fd2CEGGq0 oZzJclXn0tTYYtfqoWLp4Eqy3V0Libmi6zArOG+1ryE7hguhOzetxWImLub3a6RC1bZY PbvrrDZaypExBCich77vQv70OswM9knraCTtFUu24xNexxJmcRpjeLLryfZakp29n78a ePIF6e24Wj4H5mDwbjdELPJyfLc6bEVMHuNX+gaSjwtFtzOraaazUepKuPx0LyhdZDFv Ab3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TWbG0d3o; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y62si8480559pfy.244.2019.06.23.09.40.17; Sun, 23 Jun 2019 09:40:33 -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=TWbG0d3o; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726762AbfFWQjy (ORCPT + 99 others); Sun, 23 Jun 2019 12:39:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:50730 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726399AbfFWQjy (ORCPT ); Sun, 23 Jun 2019 12:39:54 -0400 Received: from localhost (unknown [106.201.35.23]) (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 611AF2073F; Sun, 23 Jun 2019 16:39:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561307993; bh=EbPSEBX2/Vz3/4Tik7hYPX8JPEk5Jr1v73rmvGLknOU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TWbG0d3op4NpLBfu7NbdMSAgsV1FiDentR9fJhUm6tnqA4071m1FF8v/uVgrEM4mp KCmSloD+oa47zyhIx/0tRXRfvPlTau7CHZsEpwarNWC5bPT3MY0BURhhAJqi02xK7A pC5tpkYzzlAxmb/5EWijcQmtp9Xd3DNvuiycsqwU= Date: Sun, 23 Jun 2019 22:06:43 +0530 From: Vinod Koul To: Christian Lamparter Cc: linux-usb@vger.kernel.org, Mathias Nyman , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, Bjorn Andersson , Yoshihiro Shimoda , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 5/5] usb: xhci: allow multiple firmware versions Message-ID: <20190623163643.GT2962@vkoul-mobl> References: <20190621085913.8722-1-vkoul@kernel.org> <20190621085913.8722-6-vkoul@kernel.org> <4561421.lKpHrRjrp5@debian64> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4561421.lKpHrRjrp5@debian64> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21-06-19, 21:46, Christian Lamparter wrote: > On Friday, June 21, 2019 10:59:13 AM CEST 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 | 46 +++++++++++++++++++++++++++++++++++-- > > 1 file changed, 44 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c > > index 771948ce3d38..1fb890984d6d 100644 > > --- a/drivers/usb/host/xhci-pci.c > > +++ b/drivers/usb/host/xhci-pci.c > > @@ -336,13 +336,19 @@ 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 for a > > + * chip, so that driver will pick first version and if that fails > > + * then next one will be picked > > Wouldn't it be better to do that in reverse order and try the latest > firmware first? And then fall back to the older ones? Yeah that seems better will update the order. > > > */ > > { "K2013080.mem", 0x0014, 0x02, 0x2013 }, > > { "K2013080.mem", 0x0014, 0x03, 0x2013 }, > > + { "K2026090.mem", 0x0014, 0x03, 0x2026 }, > > { "K2013080.mem", 0x0015, 0x02, 0x2013 }, > The uPD720202 (ProductID 0x0015 with rev 0x02) also > works with the K2026090.mem I found online. > > so, > > + { "K2026090.mem", 0x0015, 0x02, 0x2026 }, Thanks for checking out, I will add this add send updated patch -- ~Vinod