From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760699AbcCEMlu (ORCPT ); Sat, 5 Mar 2016 07:41:50 -0500 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:35386 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752304AbcCEMll (ORCPT ); Sat, 5 Mar 2016 07:41:41 -0500 Date: Sat, 5 Mar 2016 13:45:31 +0900 From: Mark Brown To: "Huang, Tao" Cc: Huibin Hong , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, "shawn.lin" , linux-rockchip@lists.infradead.org, Addy Ke Message-ID: <20160305044531.GB18327@sirena.org.uk> References: <1456308004-29102-1-git-send-email-huibin.hong@rock-chips.com> <56CD8F85.2090204@rock-chips.com> <20160226015829.GC18327@sirena.org.uk> <56CFB916.5010403@rock-chips.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="YTJxIO/azM2K2lD0" Content-Disposition: inline In-Reply-To: <56CFB916.5010403@rock-chips.com> X-Cookie: Adapt. Enjoy. Survive. User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: 110.170.137.3 X-SA-Exim-Mail-From: broonie@sirena.org.uk Subject: Re: [PATCH] spi/rockchip: Make sure spi clk is on in rockchip_spi_set_cs X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on mezzanine.sirena.org.uk) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --YTJxIO/azM2K2lD0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Feb 26, 2016 at 10:31:50AM +0800, Huang, Tao wrote: > You misunderstand me. I talk about spi_setup, as > Documentation/spi/spi-summary, which would normally be called from > probe() before the first I/O is done to the device. > spi_setup will call spi_set_cs(spi, false), which introduced with commit > 1a7b7ee72c21 ("spi: Ensure that CS line is in non-active state after > spi_setup()"). And spi_set_cs will call spi->master->set_cs, and set_cs > callback will access register. Without clk enable, I believe some > drivers will failed to run. That's definitely very driver specific, a large proportion of devices don't manage their chip selects via the SPI controller at all. --YTJxIO/azM2K2lD0 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJW2mRqAAoJECTWi3JdVIfQZt8H+gOI5ydHv+WUOYUgx906u8ur jSrNy4ntmcmu/rma0sMnm5XplfSjfcjpyZAf1drVRii0K6jWsyuriMXimS2J2kPc ZHYyEg9E/tbMcLB0xvo855YUIRz269QK0cX0j0VbA5qnikyNfBogqLCaVPK/Hgx4 gXDL4ye0c/vIIRExgWjIUezBIwsQP5tKlccsS516WxvNk3SQFnn+ZtgLXNSVlKh2 cWiF1gg80fncvS4IsQbv3PyTNg7ws8woYZv39df/ksYnNrGMSwWUz3u/9uvq75/w S4xT9agud1xWzlWeoZ/RyW8/jD+gjjaQytaAC9lY7u141Uuho9S1dEVk48SHo3o= =ZuRK -----END PGP SIGNATURE----- --YTJxIO/azM2K2lD0--