Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3696022ybl; Mon, 13 Jan 2020 00:41:28 -0800 (PST) X-Google-Smtp-Source: APXvYqxHHmxRKX+zY9QSN6J7WlJBKRtUE7D/wAaoR7hzfJcpgScNHUA9RFrRzPGYURdvHFibXpvY X-Received: by 2002:a9d:133:: with SMTP id 48mr11752618otu.15.1578904888023; Mon, 13 Jan 2020 00:41:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578904888; cv=none; d=google.com; s=arc-20160816; b=UMJG2500iQYvFSid65oyPB0T63bXEioEcOGTsbUT9mp9YS5sEjcKbMiqVKDMCkAK57 2T/03JD/B8SK+fnC3SqCqLeT41buOrbFkVBRpKt7CscFFc/six3nhLg+XUJC+hZnUt71 9Gl9ue9hqZjQIjvBt7o0PvUBTru7g3NAZ9MmGQE24ila+dXCyOs++F0ziAMLfuH6KzSK p2XHqHVXnOUyag9vGvrR4Q43J3hQp8F4Mt2XC+8LTp2T1NtZnxty/TbZFGU+7NTgJqG0 fX480XrZT77r52swC/YjLqJpfKGuqrdwRZxcYgUhHSTdhxSMfxDhs2tiDY3t6WyM1HM6 /7DQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=HnJmgTUYeLbJgITrc9vwW/1FymzspRn2WlJqLhEqPsY=; b=rF6n221PvRVp7+sI4ncNrw8mCWTQCKrEwOnY1Iiy37vWJ+uKGXztbQQGwCU/2tIKu6 gqz9TdHVihnghUMvzfRhDZ6oSggjR8e2+Cqh/6rRVETxOd2KahQ3OKIjd8YWir5g5LPl ARfdJabUii9Z884uSWL7vGg4XcD1tnlMl8qH7D2UwI/vG9IeD+qmZY6ec2IglCayzIwg 3imbC2NWZpPAXluQwE+iY8b4BlyqTs4QGeOSHbchcop/FFZmLCiqVbW9jD2ofIrfQPzI 00fjChSxfVSt0u4OVDGRIi6Byr7Xq+jF5zRwakfy6pZStxybSNppo5tm+7MEqVlu2RtR 7Sbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AgI2hGFd; 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 f21si6420578otp.56.2020.01.13.00.41.15; Mon, 13 Jan 2020 00:41:28 -0800 (PST) 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=AgI2hGFd; 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 S1728841AbgAMIkY (ORCPT + 99 others); Mon, 13 Jan 2020 03:40:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:42898 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728778AbgAMIkX (ORCPT ); Mon, 13 Jan 2020 03:40:23 -0500 Received: from localhost.localdomain (unknown [106.200.247.255]) (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 1B84D207E0; Mon, 13 Jan 2020 08:40:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578904823; bh=I265izXednaMD33cxtz9/CP1bziJa3bkaKS845VPu18=; h=From:To:Cc:Subject:Date:From; b=AgI2hGFdETq7ptUYQUEBUAYYFnS/8sTZ3WnFanOHNyI+HKBDKrzfa21meKzyZhxbO /b80mScb4hLzUvV3xgMgm+7a9brBDCwKqfny9a2LZXCBTqlbqfZqQXFa02fleZnTtG zv909fiCr8zgRHxxyYx2x6Q3nZZfaJUzsL3nk6Uw= From: Vinod Koul To: Mathias Nyman , Greg Kroah-Hartman Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , Yoshihiro Shimoda , Christian Lamparter , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 0/5] usb: xhci: Add support for Renesas USB controllers Date: Mon, 13 Jan 2020 14:10:00 +0530 Message-Id: <20200113084005.849071-1-vkoul@kernel.org> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, debugfs hook for rom erase and export of xhci-pci functions. Changes in v6: Move the renesas code into a seprate driver which invokes xhci-pci functions. Changes in v5: Added a debugfs rom erase patch, helps in debugging Squashed patch 1 & 2 as requested by Mathias Changes in v4: Rollback the delay values as we got device failures Changes in v3: Dropped patch 2 as discussed with Christian Removed aligned 8 bytes check Change order for firware search from highest version to lowest Added entry for new firmware for device 0x14 as well Add tested by Christian 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 (1): usb: renesas-xhci: Add the renesas xhci driver Vinod Koul (4): usb: xhci: export few functions usb: renesas-xhci: Add ROM loader for uPD720201 usb: renesas-xhci: allow multiple firmware versions usb: xhci: provide a debugfs hook for erasing rom drivers/usb/host/Kconfig | 9 + drivers/usb/host/Makefile | 1 + drivers/usb/host/xhci-pci-renesas.c | 985 ++++++++++++++++++++++++++++ drivers/usb/host/xhci-pci.c | 18 +- drivers/usb/host/xhci-pci.h | 18 + 5 files changed, 1024 insertions(+), 7 deletions(-) create mode 100644 drivers/usb/host/xhci-pci-renesas.c create mode 100644 drivers/usb/host/xhci-pci.h -- 2.24.1