Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1300824imm; Wed, 26 Sep 2018 15:27:36 -0700 (PDT) X-Google-Smtp-Source: ACcGV61BH86kbYqaC2Y0kjM3PjrbEGH25UxPDjudB3uJxXeWGFQMLZcgMtkfFwcuq3ZczKqEU83K X-Received: by 2002:a62:808c:: with SMTP id j134-v6mr8155673pfd.47.1538000856763; Wed, 26 Sep 2018 15:27:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538000856; cv=none; d=google.com; s=arc-20160816; b=T/W8WOP0cpLG/XGNtyRRL98POc0FLwYEWgLIzyi5baHimM3C61EKONBMEguU4Ql7os diCmskBJq2HprhDipa0WrmgKdhWwSQLBmZxbMi+7LyDcbKjZxUKsjKnzKE84mevl5m1M TUci9eq7OtaVrfqsMj2Qp9Ayika0A+h8vdvt6Sqqdk+mdPEmicMNt7qNQ6R8Dhej3zAo LF55XvxeVnP8Vbg/NWtHYLoX7UjBMx3EZ6FNRn6gP6QBk2ClZPTZQgcVzyfHvhD7P6YS hLIUDrQ9n21yfWPuR1FSXiLUvmHdskyVWsbBc+JYpkAwydxTgTGv9bI3nFNDP5sf8KP8 ojRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=DIf5qG6HxpksA8wW/Isodofx+oxHrFutWJoiOUUJ2TA=; b=A0xkpjoOVLvBoMZUdvY2osGZfbNdvHQwP8JsqwhHRWE9myfNNHSD82TkVgzG42vsXC D45QOai4Qgnhg1xiTf9w5uORhVaGNZexXwDYPOLhsXInl/D5/1w7gOqViCtufonH+UeM ukYvoez8atCtfK0P9vffjQrJJ6T+MBELAXgmPSw5SbwXMJD6YRSqMZyzLcKOmDZHXaRD 0OcdtUWQ9Rzvdr0kAkLYclJ2c9xWp+G41+dkgNntVLVo8SKw/dT0et0V2wuOjTd/A0ZI ZSApyZ+QijiCY19QfMy+BH9aKzHNqAPlWmW/6PBiUJBeijP+G3tPUJZa3kP1stJTJ4Yx v/xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="SV/cMuaZ"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e62-v6si257099pfe.31.2018.09.26.15.27.21; Wed, 26 Sep 2018 15:27:36 -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=pass header.i=@chromium.org header.s=google header.b="SV/cMuaZ"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726634AbeI0EmV (ORCPT + 99 others); Thu, 27 Sep 2018 00:42:21 -0400 Received: from mail-vs1-f67.google.com ([209.85.217.67]:35437 "EHLO mail-vs1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726545AbeI0EmV (ORCPT ); Thu, 27 Sep 2018 00:42:21 -0400 Received: by mail-vs1-f67.google.com with SMTP id l3-v6so378155vsc.2 for ; Wed, 26 Sep 2018 15:27:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DIf5qG6HxpksA8wW/Isodofx+oxHrFutWJoiOUUJ2TA=; b=SV/cMuaZmddg/smNIXobF25XnArePErTX135EPcfmOZDkA53BoWtxSft3ggEcgg5LX 5gO0O4+3t1kyTqIzDzMxRYEtIdP6ukSNGyuAQjmwRRktRrCOjuMmvN2MWOHBoACgF8Z3 MWjh3DPwqoPeyK5ou/NH1HNlqaXnSAl5RAUP4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DIf5qG6HxpksA8wW/Isodofx+oxHrFutWJoiOUUJ2TA=; b=CRqL7MA72llmCC5Up5miCbEoVwgcapLUgBD1FrO2jYXqIV9Hle0qWgmMlSXdJ3nYa2 L3KTzkrt53LciyEEzorjMltqr9ikXH2+UjVA8j8aigxwRdWV7UEYw7ZXsOa3cpohZcVP 5FyzOPa/a4ocY6n/1pxfwKcHPfmWud5IMr2ZyF8wDgNsVYRyIuw2RQLfI1MP3cI1ta6f vp/HUCSRCVwaOzZJCr/hRZf5tyl5JHOENrA03z/cz1tFQqX8Q2UzhYVJzLGoS1PHq6qw KjAW5Q/TS4ExBXt4dwSmrojFlBjRMdOEQ4Ag9JbC2WfxRTwGrNt/9LYF81/JD9IIdDzy a7kA== X-Gm-Message-State: ABuFfojKgcC3P20lUHEyoi2KzTSfl6yg2HjSG/yrDkshvco+W34MkmNN LLslPJPwjlFmcYnE3fzUVUq4sN5EyZQ= X-Received: by 2002:a67:4447:: with SMTP id r68-v6mr2485101vsa.38.1538000832333; Wed, 26 Sep 2018 15:27:12 -0700 (PDT) Received: from mail-vs1-f54.google.com (mail-vs1-f54.google.com. [209.85.217.54]) by smtp.gmail.com with ESMTPSA id v123-v6sm35727vkb.42.2018.09.26.15.27.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Sep 2018 15:27:11 -0700 (PDT) Received: by mail-vs1-f54.google.com with SMTP id y22-v6so347055vsj.10 for ; Wed, 26 Sep 2018 15:27:11 -0700 (PDT) X-Received: by 2002:a67:1141:: with SMTP id 62-v6mr2424367vsr.213.1538000830773; Wed, 26 Sep 2018 15:27:10 -0700 (PDT) MIME-Version: 1.0 References: <20180926205204.184898-1-ryandcase@chromium.org> <20180926205204.184898-2-ryandcase@chromium.org> In-Reply-To: <20180926205204.184898-2-ryandcase@chromium.org> From: Doug Anderson Date: Wed, 26 Sep 2018 15:26:59 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 2/2] spi: Introduce new driver for Qualcomm QuadSPI controller To: ryandcase@chromium.org Cc: Mark Brown , Randy Dunlap , Stephen Boyd , linux-arm-msm , Trent Piepho , boris.brezillon@bootlin.com, Girish Mahadevan , LKML , linux-spi Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ryan, On Wed, Sep 26, 2018 at 1:54 PM Ryan Case wrote: > > From: Girish Mahadevan > > New driver for Qualcomm QuadSPI(QSPI) controller that is used to > communicate with slaves such flash memory devices. The QSPI controller > can operate in 2 or 4 wire mode but only supports SPI Mode 0. The > controller can also operate in Single or Dual data rate modes. > > Signed-off-by: Girish Mahadevan > Signed-off-by: Ryan Case > --- > > Changes in v3: > - Corrected QPSPI typo > - Removed setup function and moved configurations to prepare_message > - Added __maybe_unused to suspend and resume functions > > Changes in v2: > - Addressed formatting feedback > - Squashed bug fixes and features from Doug > - Now uses transfer_one_message instead of mem_ops > - Fixed suspend/resume > - Added spinlocks > > drivers/spi/Kconfig | 6 + > drivers/spi/Makefile | 1 + > drivers/spi/spi-qcom-qspi.c | 598 ++++++++++++++++++++++++++++++++++++ > 3 files changed, 605 insertions(+) > create mode 100644 drivers/spi/spi-qcom-qspi.c This looks good to me and addresses all outstanding feedback I'm aware of from v2. I've also tested this patch and it's working fine. Thus: Reviewed-by: Douglas Anderson Tested-by: Douglas Anderson NOTE to Mark: please be aware that there are currently _two_ SPI drivers in flight for sdm845 since there are two totally different SPI IP blocks in SDM845. We need both this driver (the Quad SPI one) and also the other driver (the GENI SPI one). As I understand it Dilip plans to send the next spin of the GENI SPI driver some time in the next day or two. -Doug