Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1044070ybi; Fri, 21 Jun 2019 12:41:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqwnq6uKs5fAUdklXy0Y27v2Nq5/nQ0Ck3P3XQFFojitu4r+qsSWXmeSNOkUdG4HeHxz0lOP X-Received: by 2002:a63:8b41:: with SMTP id j62mr6275672pge.299.1561146118672; Fri, 21 Jun 2019 12:41:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561146118; cv=none; d=google.com; s=arc-20160816; b=gh80eqHTEint55VibCT1JMK0/O5aeejTR4m+azKN+AzOouukm9balrKKR2BrMWp6nO e/p8EJnxF0dqle+X6JVBQLBdjmh6eePpbzPod93MPz+PAFA9/2IA839Zu/SvZrKmg8nW PPh8JbmzHxpqwesoh37pPc9h4FfPdWZ3/we7MjzDDp1x9jbBldMNerA+Xsr9IkcBTyv0 BdAObTWI1lzGaBldGH4cKjQtvhGNrLI0MFlHUqR91pLw44J6jyUo8DtYGUdR1A5xIE2k VC/+PvyosgNewfjsz2Aj0GU5icBjGTahmrTqKLoacdJGiWmylAh7Yq85NhxqsQILDbcf Z0bg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3systKa+Hf4qC2jaG3AjlrFBz0jY6HiFgy5kIInPZyA=; b=pbvYefa10avSaY1JQ7Qzv0vSTSGTEyccjyoS415QwlD/4dMwWoDKXtOZguwUtz9Iq2 lHLuwrOLsXpmWv/8GKlEkvz6bE/+36RHdmXxztMg7NGBUzz0Xj1UvLPTH+vMBXYAJLRz H52+QYJF38xdok+sny5S6vdz4PJoKuSh22BYcek40tIOYA/R1Km3eqYL0L+2qGv5ksjW Eh3w3nqen4VW6GebOIvVnpKAhUTx5sQcCVr6Tpz0OWmbHFHqNPFbzlwcuQ/63YJ81X11 7oycFFPCDVSHkOHK+nzXFKho6sAtAwtvjK+d2ORz2haptCOUBrfypOnCaoCneUhgscST LsZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NLFcAIzJ; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b38si3562099pla.65.2019.06.21.12.41.43; Fri, 21 Jun 2019 12:41:58 -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=@gmail.com header.s=20161025 header.b=NLFcAIzJ; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726066AbfFUTlj (ORCPT + 99 others); Fri, 21 Jun 2019 15:41:39 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:36034 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725985AbfFUTli (ORCPT ); Fri, 21 Jun 2019 15:41:38 -0400 Received: by mail-wr1-f68.google.com with SMTP id n4so6442152wrs.3; Fri, 21 Jun 2019 12:41:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3systKa+Hf4qC2jaG3AjlrFBz0jY6HiFgy5kIInPZyA=; b=NLFcAIzJgQC5f+4dP79+WzoN2aitRR76c7mWvmCCPV4uCawGWkfNCv+sp8q02aMeZ0 QLs8F9F5ZxQHU2zMr1pDMg0mJZ9NIdhh0dS+ovi7D6fypSw0WxWOEBv0r2KegNP2cPUT MPEvxb6Ty11Q1G3CueeX4lHLUV3LnS2L//E+LvJgzdLSPkGhNb+VfMITeDOK7fQD5iwq YsrLpfxE3QHD1RAR2Wa82xAU4mvglXsvD/2J1OI0VKiNKP26WO4LfLOLqhZjPrADrH4v QWQ/OZtVZNWrAdDHUqF1UPSTnakH3EedOOt5ZYtWEaYOWTw6vrRdLKUNAa9IeR0woh3c 7RBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3systKa+Hf4qC2jaG3AjlrFBz0jY6HiFgy5kIInPZyA=; b=nz4NDUYM3IOo9ycEEiRVIyNZmTMQ9gevibf4INGDIlWORn9gCSRCAEkhfjCu4fKEZq Y3T5jdJ9hPQmgCDJ3dl3J1sFZaiQ+1Q3OJxqUIHABQnRgRHAJ7+MZ/QNiXKVqTIoU+ta A6J3UpUZzo/zJiE3EQ4judNyD7o9Beo8b/Ra6NXykUj2wUtDUaGZwAhXyCQil4AwVF7e ABzzdjizALBsLpIagWYVyY0HsfOj1ozfjejtg6mZM7XUtFcnGX9pvmqIAaaYYZJscFUm iaNQ0yiBiRXNHCesrRAjdUrYquUOC+xyHfAiIafuOxZ3MfDmyHNwFVyS9hUknf60AvKN eZ6Q== X-Gm-Message-State: APjAAAVEY/UyHAJjqyhwGD9d7jXi6gQrjcRAlRgpZLKjmIEHzAmqzlug NqLI3Wd4K9YvxZubjDyDqwY= X-Received: by 2002:adf:f34b:: with SMTP id e11mr11601910wrp.230.1561146096000; Fri, 21 Jun 2019 12:41:36 -0700 (PDT) Received: from debian64.daheim (pD9E297F7.dip0.t-ipconnect.de. [217.226.151.247]) by smtp.gmail.com with ESMTPSA id t6sm3622441wmb.29.2019.06.21.12.41.34 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 21 Jun 2019 12:41:34 -0700 (PDT) Received: from localhost.daheim ([127.0.0.1] helo=debian64.localnet) by debian64.daheim with esmtp (Exim 4.92) (envelope-from ) id 1hePPi-0006bH-8c; Fri, 21 Jun 2019 21:41:34 +0200 From: Christian Lamparter To: Vinod Koul Cc: Mathias Nyman , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, Bjorn Andersson , Yoshihiro Shimoda , Christian Lamparter , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/5] usb: xhci: Add support for Renesas USB controllers Date: Fri, 21 Jun 2019 21:41:33 +0200 Message-ID: <11747914.jfR0NPdACA@debian64> In-Reply-To: <20190621085913.8722-1-vkoul@kernel.org> References: <20190621085913.8722-1-vkoul@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday, June 21, 2019 10:59:08 AM CEST Vinod Koul wrote: > This series add support for Renesas USB controllers uPD720201 and uPD720202. > These require firmware to be loaded and in case devices have ROM those can > also be programmed if empty. If ROM is programmed, it runs from ROM as well. > > This includes two patches from Christian which supported these controllers > w/o ROM and later my patches for ROM support and multiple firmware versions. > > Changes in v2: > used macros for timeout count and delay > removed renesas_fw_alive_check > cleaned renesas_fw_callback > removed recurion for renesas_fw_download > added MODULE_FIRMWARE > added comment for multiple fw order > > Christian Lamparter (2): > usb: xhci: add firmware loader for uPD720201 and uPD720202 w/o ROM > usb: xhci: handle uPD720201 and uPD720202 w/o ROM > > Vinod Koul (3): > usb: xhci: Use register defined and field names > usb: xhci: Add ROM loader for uPD720201 > usb: xhci: allow multiple firmware versions > > drivers/usb/host/xhci-pci.c | 942 ++++++++++++++++++++++++++++++++++++ > 1 file changed, 942 insertions(+) > bootlog from a Netgear WNDR4700 with a 32GiB USB3 Stick attached to the Renesas uPD720202K8-711-BAA-A chip. [ 13.523094] xhci_hcd 0000:45:00.0: firmware size is not a multiple of 8. [ 13.868071] xhci_hcd 0000:45:00.0: xHCI Host Controller [ 13.873325] xhci_hcd 0000:45:00.0: new USB bus registered, assigned bus number 2 [ 13.886296] xhci_hcd 0000:45:00.0: hcc params 0x014051cf hci version 0x100 quirks 0x0000000101000090 [ 13.902719] usbcore: registered new interface driver usb-storage [ 13.909277] kmodloader: done loading kernel modules from /etc/modules-boot.d/* [ 13.917336] hub 2-0:1.0: USB hub found [ 13.921432] init: - preinit - [ 13.930356] hub 2-0:1.0: 2 ports detected [ 13.942869] xhci_hcd 0000:45:00.0: xHCI Host Controller [ 13.948122] xhci_hcd 0000:45:00.0: new USB bus registered, assigned bus number 3 [ 13.955514] xhci_hcd 0000:45:00.0: Host supports USB 3.0 SuperSpeed [ 13.981227] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM. [ 13.997141] hub 3-0:1.0: USB hub found [ 14.004375] hub 3-0:1.0: 2 ports detected [ 14.375644] usb-storage 1-1:1.0: USB Mass Storage device detected [ 14.382247] scsi host1: usb-storage 1-1:1.0 [ 14.438959] usb 3-2: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd [ 14.467746] usb-storage 3-2:1.0: USB Mass Storage device detected [ 14.474241] scsi host2: usb-storage 3-2:1.0 [ 15.394562] scsi 1:0:0:0: Direct-Access Generic STORAGE DEVICE 9454 PQ: 0 ANSI: 0 [ 15.405183] sd 1:0:0:0: [sda] Attached SCSI removable disk [ 15.522448] scsi 2:0:0:0: Direct-Access SanDisk Ultra 1.00 PQ: 0 ANSI: 6 [ 15.531952] sd 2:0:0:0: [sdb] 60063744 512-byte logical blocks: (30.8 GB/28.6 GiB) [ 15.541007] sd 2:0:0:0: [sdb] Write Protect is off [ 15.546808] sd 2:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [ 15.574567] sdb: sdb1 [ 15.580581] sd 2:0:0:0: [sdb] Attached SCSI removable disk This is working. Tested-by: Christian Lamparter