Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp16697imm; Fri, 21 Sep 2018 09:34:21 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbFEfU44cCc46Gih2gH6pHXCwY8O0Ft/RbtnVG09QI8Rn5uvBZ7ykmq1yoLpD6GnIJV1+cM X-Received: by 2002:a63:f14d:: with SMTP id o13-v6mr41765958pgk.236.1537547661480; Fri, 21 Sep 2018 09:34:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537547661; cv=none; d=google.com; s=arc-20160816; b=vp+tDTBTfD+itx0pWTMEyMyWMyIOXKuLf2KkDcSdEFfuCBATgvjJ+kdqhE5AHL2bHU zSJicV3HGMwIK3YFkzuHHOdjRwOgPIGD3Y5muzXsRVBu+j/uOslXA8Bc4SOXaMo3Aj6t o6WD+oPok0sIh1R9lBVPvKYEBdf2+Rz0YdwtkOUoSWGBxG9UHGwiY8JB8dX2BifNGfOg VI2P7xAy0wgRmawh9B6BbN42915/OlUC+fV94MflUEwy5zbtpbKgPNq6wRB3JZvtuwb+ 2rhpskwxHxRMQrApUwTxyzIhEFmLQr2q/ztXDmSWMW77CzhM+KSPBI5pOBuG8RHtfmYv xurQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=rM3YFzC592u/Ruld8gNJDOXm5+6G+BkszvYnnvZ/XEo=; b=M9UC3d3Eu6ttxtUDXL9MTUZKniXaTHlxEDcbuaV48SUnLq2k131Q+1lWxegKHb+0Cc 9EZBHsz/MdyGGue0O4U7/DcTHMkCFrU8k6Ulu7z7uMRJzvuLN6c/Gi4bulO5xs0alrDR TXYzqnahE7ip6KEj5QA7qeDXKRKKhU0QK2VPNrPoyntnW0lb1O6SW4C0T+1UN7XBJawt qTrLdHPHSFyS355OJdiY3NgwC9DmPgSiM3At64jErAIF8XjaHTqh5kxkLiRYzJKl4GiE xCOxTZACC7b/sElOxbCHfjJ8VpfQHijiaW7PxRKd6w2k0rGpyeaUqh7NTmEsGUbN4+0/ 0i/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=N+TgSGdt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r17-v6si3776491pgo.278.2018.09.21.09.34.05; Fri, 21 Sep 2018 09:34:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=N+TgSGdt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390937AbeIUWVR (ORCPT + 99 others); Fri, 21 Sep 2018 18:21:17 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:44240 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390281AbeIUWVR (ORCPT ); Fri, 21 Sep 2018 18:21:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=rM3YFzC592u/Ruld8gNJDOXm5+6G+BkszvYnnvZ/XEo=; b=N+TgSGdto6iHm6mRFNT9WzShs G8juaPmqn0e6sjksSRw+j/7rHgA2N8RQ45OkF0ovnOU92rFAjDjfT/m3r7NrxiNu4TmB4/IFSfS3x gliz+qOlr6YcYUIloxRfAGgFh4DARDJDH4xKS0xJBt3oNqZR7GChgvU5pXcaRvVFfwmis=; Received: from [209.121.128.187] (helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1g3OLA-0000eb-R8; Fri, 21 Sep 2018 16:31:37 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id C7C27440078; Fri, 21 Sep 2018 17:31:34 +0100 (BST) Date: Fri, 21 Sep 2018 09:31:34 -0700 From: Mark Brown To: Ryan Case Cc: Boris Brezillon , Stephen Boyd , Doug Anderson , linux-arm-msm@vger.kernel.org, Girish Mahadevan , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org Subject: Re: [PATCH v2 2/2] spi: Introduce new driver for Qualcomm QuadSPI controller Message-ID: <20180921163134.GD20825@sirena.org.uk> References: <20180920224055.164856-1-ryandcase@chromium.org> <20180920224055.164856-2-ryandcase@chromium.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="8w3uRX/HFJGApMzv" Content-Disposition: inline In-Reply-To: <20180920224055.164856-2-ryandcase@chromium.org> X-Cookie: Disc space -- the final frontier! User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --8w3uRX/HFJGApMzv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Sep 20, 2018 at 03:40:55PM -0700, Ryan Case wrote: > +static int qcom_qspi_setup(struct spi_device *spi) > +{ > + /* > + * Ensure that the configuration goes through by reading back > + * a register from the IO space. > + */ > + mstr_cfg = readl(ctrl->base + MSTR_CONFIG); Your setup() function shouldn't be affecting the status of the hardware for any other SPI devices using the controller, otherwise it might disturb an active transfer. prepare_message() is typically the best place to do this stuff. Otherwise this looks good. --8w3uRX/HFJGApMzv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlulHOUACgkQJNaLcl1U h9AQAgf/Zh+oen4pzwNai7h7WkEDetUqq8QAgw3/J0FeM13RQmJLz0TTqfn7mKGD 5BbkdhnehODoAedL7aZEImHgmp5rx/IcUlqixyeDDkZaAPpXRqNEQuAJKNGlZWWG MpedK4gy41VbTEfDTPEYIvFzA6MoPrF/yA96qC6g6RgGWR4QpO+8DbXsFeyoxH9u h48XP4ttP2Cwz1mn+KpdblKH8MZnXZM2JuDEHfoQsxNtmLInWhISVFvh5/qx2JbG GPhXkkaBoD0S5vzvf09Fcc4g/L2Va4c/MqZ7dzmYtXD6br8UYRZ8cawEcpj+Atdu eajQ1OiCkL6TEjJz0yJ9iGzeGUJbzw== =l2cj -----END PGP SIGNATURE----- --8w3uRX/HFJGApMzv--