From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.marcansoft.com (marcansoft.com [212.63.210.85]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BAE384416 for ; Mon, 5 Sep 2022 15:52:55 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: marcan@marcan.st) by mail.marcansoft.com (Postfix) with ESMTPSA id BE74B41F78; Mon, 5 Sep 2022 15:52:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=marcan.st; s=default; t=1662393173; bh=Ra3o6r5W8eESsw93yHTiwc7uW/oimDp1IFWslWumMc8=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=hbDFQOVIABdVF7kdJ1z1Mav3dov0Ja9+ZKrq/RJ2cJPsFlrBN7MX+FcDWyfJGytLz D+LNbh57tdhvsch7LXB1/IDh3ILSSe2ikP+8TTbLyyR/c03WloBfTxY3u5FNuyI6qc ZgJyoMt3HS9etSf5A7KvQsNdXI6hVtsiuoySHgT5ydDpjYh2RUNLpLFV90GgZCIeHM uWVRloc3CvePFLYRrgvcIawvpysNk2eNWwdqFkgZU2UaQuGl87RwoYkoaMiis7SHrq xBpaeDdcNIgROcSFTGsTJ0L+LWgg/7MnkOTJbLq84iQCjU+CpnPwrW8luIfTkYTnOl TjJgJKCyCwS2Q== Message-ID: <0457bda4-8449-dede-1d85-e4e1317dff12@marcan.st> Date: Tue, 6 Sep 2022 00:52:48 +0900 Precedence: bulk X-Mailing-List: asahi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH 5/6] gpio: Add new gpio-macsmc driver for Apple Macs Content-Language: es-ES To: "Russell King (Oracle)" , Andy Shevchenko Cc: Arnd Bergmann , Lee Jones , Linus Walleij , Alyssa Rosenzweig , asahi@lists.linux.dev, Bartosz Golaszewski , linux-arm Mailing List , "open list:GPIO SUBSYSTEM" , Sven Peter References: From: Hector Martin In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 05/09/2022 23.01, Russell King (Oracle) wrote: > On Mon, Sep 05, 2022 at 04:16:27PM +0300, Andy Shevchenko wrote: >> P.S. Do you have a platform to test all these? > > Yes, but that doesn't mean I can do testing sufficient to ensure that > the modifications are correct. As I understand things, the SMC is not > limited to just aarch64 hardware. FWIW, the RTKit backend is limited to aarch64 hardware, and that's also why I kept all the endian-munging there. T2 and legacy x86 backends (which don't exist yet, so whether things need changing for those platforms is an open question anyway) would respectively do whatever endian-munging is appropriate for them. So at this point, only Apple Mx AArch64 SoCs matter, though I *tried* to write the code in the way that I thought was most likely to cleanly transfer over to other SMC platforms by just changing the backend code. - Hector