Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B9D2DEB64DC for ; Fri, 14 Jul 2023 20:43:33 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BF36184768; Fri, 14 Jul 2023 22:43:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=openbsd.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; secure) header.d=kpnmail.nl header.i=@kpnmail.nl header.b="pcUDcIl1"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0F2EA84768; Fri, 14 Jul 2023 22:43:30 +0200 (CEST) Received: from ewsoutbound.kpnmail.nl (ewsoutbound.kpnmail.nl [195.121.94.186]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1D22B8474E for ; Fri, 14 Jul 2023 22:43:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=openbsd.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=kettenis@openbsd.org X-KPN-MessageId: 022b29b8-2287-11ee-87d3-00505699b430 Received: from smtp.kpnmail.nl (unknown [10.31.155.7]) by ewsoutbound.so.kpn.org (Halon) with ESMTPS id 022b29b8-2287-11ee-87d3-00505699b430; Fri, 14 Jul 2023 22:42:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kpnmail.nl; s=kpnmail01; h=mime-version:message-id:date:subject:to:from; bh=IU/bBzDBNb+flZG32XFJDve2qWfwWfIWm71GfFEfRRc=; b=pcUDcIl14shZe8tT/hc7RJi/3PqVgJsf5/TCeTLBmhQbpMhol4+j9fly2EC9DpQAvzZJZTP2tJeLZ gH3pe0tnqzZ3nJKCLr4flWbCWuJ293wqXcU/7pwfl8QeQKKcBN6hoUBthNz6YjjpL2/1uDTs/81pfN jltdhAfT08rFFe3Y= X-KPN-MID: 33|fTiKG/xv1jx8FJTogzcDXw1Ujh7BimTwQg/bjYRU80GYGbTk6j6eGx3YzxSbxl4 gXSLSxYK1/ZU3UBRT29/3oopzGb50TZ5A4gxuNnNN4WQ= X-KPN-VerifiedSender: No X-CMASSUN: 33|Ry5YYYR17ERgPi57TSDiv5RTy8GSfttoUeiqK/fnBTxqCYY2pVOPbFJoGdaX9B5 WnJwZFBjMFTmcme/8o9QpDQ== X-Originating-IP: 80.61.163.207 Received: from copland.sibelius.xs4all.nl (80-61-163-207.fixed.kpn.net [80.61.163.207]) by smtp.xs4all.nl (Halon) with ESMTPSA id 15287be1-2287-11ee-9b69-005056998788; Fri, 14 Jul 2023 22:43:27 +0200 (CEST) From: Mark Kettenis To: u-boot@lists.denx.de Cc: marex@denx.de, bmeng.cn@gmail.com, Mark Kettenis Subject: [PATCH 0/3] Load ASMedia XHCI controller firmware Date: Fri, 14 Jul 2023 22:43:20 +0200 Message-ID: <20230714204323.27220-1-kettenis@openbsd.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Some of the Apple desktop machine have a PCI ASMedia XHCI controller that needs firmware to be uploaded to function. This firmware is placed on the EFI system partition by the Asahi installer. So this series sets up a file system firmware loader that reads from that partition and ports the Linux driver that uploads this firmware to the controller. With this series, users can use USB devices (such as a keyboard) when they are connected to USB ports handled by the ASMedia XHCI controller. This includes the type-A ports on the M2 Mac mini for example. Mark Kettenis (3): apple: Set up file system firmware loader iopoll: Add readb_poll_sleep_timeout usb: xhci-pci: Load ASMedia XHCI controller firmware MAINTAINERS | 1 + arch/arm/mach-apple/board.c | 60 +++++ drivers/usb/host/Kconfig | 11 + drivers/usb/host/Makefile | 1 + drivers/usb/host/xhci-pci-asmedia.c | 394 ++++++++++++++++++++++++++++ drivers/usb/host/xhci-pci.c | 9 + include/linux/iopoll.h | 3 + include/usb/xhci.h | 3 + 8 files changed, 482 insertions(+) create mode 100644 drivers/usb/host/xhci-pci-asmedia.c -- 2.41.0