Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp166426pxu; Tue, 1 Dec 2020 08:26:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJyQMMZlFasfSrgdfCCF5V68Rh03HLnuqopFRqkNIB8L3wzlcv8Li06b4AFydckkLDLuvlCB X-Received: by 2002:a17:907:3d8b:: with SMTP id he11mr3650089ejc.207.1606840006485; Tue, 01 Dec 2020 08:26:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606840006; cv=none; d=google.com; s=arc-20160816; b=YQt1tJwoUMTLUQ3LNy5Qz4u+kBDkP7BkyvaSRjcw/geCYdcXJRwOABjeibT7J5PRZ4 c/efe+dqVeZ05wd4YsaroVv0Gx/t/aYc05/zTspixh7hmR4lXipOs4i283NMbLj5BOIl jzCIFLpfywZAPYkZiLb1T79Ox/65ZfmVsER7n8OZyluybkQCSJyUazwtLbCNhUQ6M788 W3Bsyvrxa4chPp+bDQzBKkjtWulQQKwKq4Ax0kjHLFgrDhZHMZaBrDh6Sl0AjI0rSSo/ v/Bnv+Yirm8UL41jDRsC/vJocfbsf/+3lBW1LUI42WV9xEbcI+4hiQ6z8HnQkff3C9sd 3T0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:to :from:date:dkim-signature; bh=9fTjs0Vy1mO2Eom2xZoUY2RfKJopSBS/emy2zNUmk9E=; b=WbJUPrKvp8s1acVIgAXiOJFYcv8VMWT8hVfHG/4ejfjcoODl830HdlVdf5O/VzEocM MRdu//gaBMC2Hq4HrpMELni90ED0RH68J1itXsAUC7cRLyjm74wXTc08Vyn2R8Xuqd3t IJjI5C2PKrPJBdoS2nidr43/IA+rQSxt2iDYG6Gwm/udb2vFcAzKUu1TF+/b9Z10ww2m apI4k4UajmoZF7hO3QDcX05bCVThBjwxUjIHq4Om24KcwVH0Cr48BnbVuhxmJBCUAswY 1B+QVvDijNdfuUGZnpmh4RFnT3YQut3jxvMXUlEjDVR0C29HFT3EqMKpojGWgWkgQIFw 6sjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=n1yhp3E8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id q5si195876ejr.681.2020.12.01.08.26.23; Tue, 01 Dec 2020 08:26:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=n1yhp3E8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S2392166AbgLAQVq (ORCPT + 99 others); Tue, 1 Dec 2020 11:21:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:50130 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392161AbgLAQVq (ORCPT ); Tue, 1 Dec 2020 11:21:46 -0500 Received: from localhost (cpc102334-sgyl38-2-0-cust884.18-2.cable.virginm.net [92.233.91.117]) (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 A612822244; Tue, 1 Dec 2020 16:21:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606839665; bh=xP4j4dXsCh30TdsYod/HR//GppU6cYvfO1KKkPvjTqA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=n1yhp3E8gT7DGv2tlmpvZZHWpzg0LWNNQQfIxYQvkFibtA1EYqlA2q/0HNeCmrRcO JtUwWVIfVMuNAfT+XS4Doat2hN51sW2T4H0+cEfpJFw4pHKcVr5irWXGYd/o8uzXC8 E5YZAmgfjOWgiNuhbuqhE8jNqObxHmf8YnndbIfk= Date: Tue, 1 Dec 2020 16:20:35 +0000 From: Mark Brown To: Linus Walleij Cc: "H. Nikolaus Schaller" , Sven Van Asbroeck , kernel list , Laurent Pinchart , Discussions about the Letux Kernel Subject: Re: [BUG] SPI broken for SPI based panel drivers Message-ID: <20201201162035.GK5239@sirena.org.uk> Mail-Followup-To: Linus Walleij , "H. Nikolaus Schaller" , Sven Van Asbroeck , kernel list , Laurent Pinchart , Discussions about the Letux Kernel References: <2D7916FA-678F-4236-B478-C953CADF2FFA@goldelico.com> <4AC29229-9542-4E77-B993-217E29C7E209@goldelico.com> <20201201121620.GB5239@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="7ArrI7P/b+va1vZ8" Content-Disposition: inline In-Reply-To: X-Cookie: Who was that masked man? User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --7ArrI7P/b+va1vZ8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Dec 01, 2020 at 03:20:12PM +0100, Linus Walleij wrote: > The reason why I shoot in the dark to convert all SPI > drivers to use GPIO descriptors instead of the global > GPIO numberspace is detailed in drivers/gpio/TODO > so I will not repeat it here. > I don't know if much can be done about it other than > having better programmers than me at the task. Or > less tired when they write the patch. etc. I think the problem here is more to do with where we started than where we're going or how we got there - things have been glued together or happened to work in ways that mean I'm not sure we reasonably understand the situation we started from or all the requirements it has. As you say I'm not sure anything beyond throwing the API away and starting afresh would really help here, but that's not really how we tend to do things for a bunch of very good reasons. --7ArrI7P/b+va1vZ8 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl/GbVMACgkQJNaLcl1U h9DRFQf/bvSVNPMLgac30kzXhteF7a25VMyxoCwA6rMBM8pqRmBuy3rZSeU7A1eb 065JN5kiKk0oHCUj59v3YYEmXmr1pCS8GFfR47Lak2Zj1mRFxBQyNp8/C+C0qYfg iwPhAiMgszQTNBYveu7xaHc1fFBx0Lp6LXPH+A9UgH5U2ZBlBZvVpKlPyU98xL8p ViWfwrdZ1c/haC4/O5IunDU7zCueemxw6+2diHFBPZw9FhrdKaBMl2bU7+kNo/1b 28VqPrgsyz8E1ajLnBlFr4QV6cPcs7R8dMw5Haq2Re/yPz8Mfhf5QWqO9BIeEigm 4w6MUZgsKQ9ZPPtsiQT7AxpSXqOOCw== =pEP0 -----END PGP SIGNATURE----- --7ArrI7P/b+va1vZ8--