Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753975AbdGXKxp (ORCPT ); Mon, 24 Jul 2017 06:53:45 -0400 Received: from mout.web.de ([212.227.15.3]:54365 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752568AbdGXKxj (ORCPT ); Mon, 24 Jul 2017 06:53:39 -0400 Subject: Re: [PATCH] spi: pxa2xx: Only claim CS GPIOs when the slave device is created To: Andy Shevchenko Cc: Daniel Mack , Haojian Zhuang , Robert Jarzmik , Mark Brown , linux-spi , Linux Kernel Mailing List , linux-arm-kernel References: <90b3e14d-0077-9a25-9d90-ab340577af57@web.de> From: Jan Kiszka Message-ID: <59066818-a284-4da0-d05f-d2503aeee44b@web.de> Date: Mon, 24 Jul 2017 12:53:20 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="nAHgsvSQHG1M5act0tgD290U5p0kWm3Wo" X-Provags-ID: V03:K0:Nvg9RhDCqYS35l19tU+3ouTiphiX0ZYfSNxdcJtVt07OIKuQRGL nhV+lK87TWrL0RfXDFXLgO3F2P7lfBwPnjbliMIbHWD4bsxHj1PTaP3f+R5nUEVcCeZUkXo mBFsSTJ15zXYozAwmz02Cz7yanWgawkHYZnuFfHSgCQEWFGJ7P57PD3orYZxfEhzIrUiH1s xAumiHAvOZGb/BQR7ncGw== X-UI-Out-Filterresults: notjunk:1;V01:K0:m91Qwi6s+Fs=:CMpuL0Ns2aCYoVWi0qrK47 UIv3/9Fn+bLISBxyw9QWhZBzTgulql4E0xc8i5kQ7fGycrwbzkOsmGvJMOVaKMj2srsJc+qXv 4nbYhWV3xnjBqiZ1v8EagujvIYjFM5ehks8X44vRWuNq7kHkMBz6I1pGf2wZug6KV8xIcByCx bV9Ku+h0n7mCy1nqj4z/o/ruiYBRC1ebvXHQL5scyzZc4MRBNYohAcgLsBaeg9zF7L4d3rxnC N40nO7dBA/1o74i/y6GImn+48eDp5eOVm2JhttzFxMTRGeW+TKwEcbX0qObMHKT8kTJFD+hRK CKANVKKhXiHgE1arIdQYHUrSzCxwNaRb7IwhfsJSJaZcchdd2enWVJDj9SrwnITEd33JhBJOD FdmxNvdQgwxiPHjJ9M9Q8f+Eji0eXkhw7q1KBNQukJVNOW+gKV8JLamjBDvt3iIQ/IRaq+3qF pkj2u54R8jsQd+p64vsHsGy8SItcH1v4ILqSOYem46t9M25JYdYy33HzAfv+7JaeWn9ZRihfS xsz74fCax+ZFZygjlUDBF03cPwn/rp+GgGapw8BRJLRt/sqXvM3Xk0OP20yWI/Bjcnf8YuuAx Upj5P57+O6ZivFJGu6KnRZzpjcmpzgh4Y25uy9NZ0+uBZkALpSWEcqdVYSrgFrAqG9x15ifjJ 34nqJXQHm81v/7epRkywA+jTTipKYmukRphE5lmiTGs3O9tccgCla83YWcexS4oUQAFcIakkV dyEq2NQIYRlG3N/MBIIlJ8Q0kgobDim1GcvcdNXY2fe9d3By9Kd5sKthzVsL/muqiRqvLgqE5 o8ZkQlXdfUw7ujRuWuHhcFG+Qbe9A== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2723 Lines: 77 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --nAHgsvSQHG1M5act0tgD290U5p0kWm3Wo Content-Type: multipart/mixed; boundary="TantnTjuAlqjaPBxiXXbq9vQvRkLT6vkr"; protected-headers="v1" From: Jan Kiszka To: Andy Shevchenko Cc: Daniel Mack , Haojian Zhuang , Robert Jarzmik , Mark Brown , linux-spi , Linux Kernel Mailing List , linux-arm-kernel Message-ID: <59066818-a284-4da0-d05f-d2503aeee44b@web.de> Subject: Re: [PATCH] spi: pxa2xx: Only claim CS GPIOs when the slave device is created References: <90b3e14d-0077-9a25-9d90-ab340577af57@web.de> In-Reply-To: --TantnTjuAlqjaPBxiXXbq9vQvRkLT6vkr Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 2017-07-24 12:44, Andy Shevchenko wrote: > +Cc: Mika >=20 > On Sat, Jul 8, 2017 at 11:41 AM, Jan Kiszka wrote: >> From: Jan Kiszka >> >> Avoid hogging chip select GPIOs just because they are listed for the >> master. They might be mulitplexed and, if no slave device is attached,= >> used for different purposes. Moreover, this strategy avoids having to >> allocate a cs_gpiods structure. >> >> Tested on the IOT2000 where the second SPI bus is connected to an >> Arduino-compatible connector and multiplexed between SPI, GPIO and PWM= >> usage. >> >=20 > This breaks all systems which are using _DSD. Err, can you elaborate? Worked fine here with _DSD on the IOT2000. >=20 > While I'm looking for fix, I get feeling that the approach itself is no= t right, >=20 > So, for now I would vote for immediate revert and then rethink what we > can do here. I'm fine with reverting because the patch wasn't clean anyway (mixed old and new GPIO API) - aside from whatever you found in addition. I had an update pending but, as you are looking into this anyway, I'm sure your patches will be more holistic. Thanks, Jan --TantnTjuAlqjaPBxiXXbq9vQvRkLT6vkr-- --nAHgsvSQHG1M5act0tgD290U5p0kWm3Wo Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAll10aMACgkQitSsb3rl5xSCbQCgzfJBEWMrQjhpiCIVnToj4qJt bBkAn1GRp4kP7pFVYk2wYPDzP5/y2uo3 =Liww -----END PGP SIGNATURE----- --nAHgsvSQHG1M5act0tgD290U5p0kWm3Wo--