Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp2868576ima; Mon, 22 Oct 2018 18:08:56 -0700 (PDT) X-Google-Smtp-Source: ACcGV63tz/fBApWkwsz9u+vdn8cc4Rkd2vGL8YuWRB7S3A//vuKDMqZubcstaqmB9Vl/ZCmlVdo6 X-Received: by 2002:a17:902:45a5:: with SMTP id n34-v6mr40814721pld.341.1540256936883; Mon, 22 Oct 2018 18:08:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540256936; cv=none; d=google.com; s=arc-20160816; b=ymoNpKh2p35cGlX9YM3jG+IDZ8RSV7GtGJYzyr18fW45gotqdL2CSXr4rZY91BQ+Yk kcQzj6/Gv47KEhlUMGTr/QDVLKr96tzKVpA3Xk/KGzWaLc1uStBA1If9Q0eHGnhEOIrU MObCSIvc1gZ5Yebc4hXdXp5ibxvRGNuAEJhcVnb6dE6LcjSfnsnpR0OLo4eag84TyWzv CD+YxaEoINnMXhKxyipLuWV5hP1xt3dadFyiJz8YYT/uWiPXp8RkB1JLzb78ZHfFoix7 t3ZjCk/JvrbbaRbXfx1jruoRo0yFpu1bvIYsLhQk+OcEG78Om7cW9mCyz+xt5lLNbXdd mgJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Dw8Qjeswo1fiQxpz5TeSz6FDLID6QIN1kVfa3XtAzzU=; b=d+zYgdrjEfSvnU1u4f/d8dhmx4hh5MTx0tuohelx8nS5b+qfjaEB0BLeodRt4nJIDh h3xbMJsxm5sDeVtbdmZzXVe66vkyVNHj74P7vFz6tALQ0J955tMn+t1e0nxik9kDgNwl G4NJolJTKVepBYQxIba00YoAEXlclx+VUS25DwJUYetqf69PTD40PZLXuuyhAkyHL++t gqK/cKIveokeL5s3vjABHXqCF/Onj1Gk5gb9/eCf098pJHsWRVJGSW49m8qL6y3y2w03 3JZMhnJg9GTnVCqEP0QpEnzRmfJgBpXzYcJj1gPp4sGBkq8MFLkRKBBMmUeQHlK+QhUR lOJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ntqVK65Q; 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 b24-v6si35490024pgm.145.2018.10.22.18.08.41; Mon, 22 Oct 2018 18:08:56 -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=ntqVK65Q; 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 S1727801AbeJWJ2r (ORCPT + 99 others); Tue, 23 Oct 2018 05:28:47 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:42247 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726809AbeJWJ2r (ORCPT ); Tue, 23 Oct 2018 05:28:47 -0400 Received: by mail-pf1-f194.google.com with SMTP id f26-v6so20768302pfn.9 for ; Mon, 22 Oct 2018 18:07:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Dw8Qjeswo1fiQxpz5TeSz6FDLID6QIN1kVfa3XtAzzU=; b=ntqVK65QU4fAuMQ4FX4SADMUkJ+bp8bILQEVaW7MtACQCD19Fy0t2x1cToxowaFqLw Yzc0R8+GIGsTqSZl1xb6cbM6vvm9n67vR9K9BB0ntgByDA/vs7dwLCdzLo08Cq1iUioM nS0kZ70w1br5uyxJQOxuqRjvCFtu9YuJ74zPg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Dw8Qjeswo1fiQxpz5TeSz6FDLID6QIN1kVfa3XtAzzU=; b=mR4jJQ8ULUxkwM2bamV4YWxf1mxmZgcEyM++9Hp+9dgZZPRQnPHyvJIDgIhD5J4UlX vyMJqNLNf9LPAgQhgur0Kb4hRixoauMxDmYCHELq25TbZMloXQ8nQ2ea2cDHILegU95C 3v1SmIlWyTTTIs2MWh6mbTgr1RD57Frp8OsA3wmWoJN5QPPFWskhW3ZXfzbHfO6xY7Aw Ehu42DdQRBt6XwsriAzB4ch/EwJVzOxStv6LyIsoYgo0Esl855UfyNDkpFuTezA6Bo5Z UtUDQ0uBRfdtRsoLEo8BDHdqu7Iw+lH1e0apVvs+E7ywyJ9qblut9IEQMZuaYsKmegBJ T9ew== X-Gm-Message-State: ABuFfojkgb3f30qT7flQtr7xORkcvLaOj7tl7hOgrSkVkV9LCSTkG3DS 9tw+IGpXCLH2Q1rfJEX47OembA== X-Received: by 2002:a63:2218:: with SMTP id i24-v6mr44657107pgi.238.1540256868779; Mon, 22 Oct 2018 18:07:48 -0700 (PDT) Received: from ryandcase.mtv.corp.google.com ([2620:15c:202:201:ed1c:3d1c:9d92:99cb]) by smtp.gmail.com with ESMTPSA id q24-v6sm38104982pff.83.2018.10.22.18.07.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Oct 2018 18:07:48 -0700 (PDT) From: Ryan Case To: Mark Brown Cc: linux-arm-msm@vger.kernel.org, Doug Anderson , Stephen Boyd , Ryan Case , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org Subject: [PATCH v1] spi: spi-qcom-qspi: Fix remaining driver nits Date: Mon, 22 Oct 2018 18:07:07 -0700 Message-Id: <20181023010707.153647-1-ryandcase@chromium.org> X-Mailer: git-send-email 2.19.1.568.g152ad8e336-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Address remaining comments from original driver patch series * Move RD_FIFO_CFG to be ordered corretly * Expand spinlock comment Signed-off-by: Ryan Case --- drivers/spi/spi-qcom-qspi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/spi/spi-qcom-qspi.c b/drivers/spi/spi-qcom-qspi.c index b8163b40bb92..e0f061139c8f 100644 --- a/drivers/spi/spi-qcom-qspi.c +++ b/drivers/spi/spi-qcom-qspi.c @@ -90,6 +90,9 @@ #define PIO_DATAOUT_1B 0x0020 #define PIO_DATAOUT_4B 0x0024 +#define RD_FIFO_CFG 0x0028 +#define CONTINUOUS_MODE BIT(0) + #define RD_FIFO_STATUS 0x002c #define FIFO_EMPTY BIT(11) #define WR_CNTS_MSK 0x7f0 @@ -99,9 +102,6 @@ #define RDY_16BYTE BIT(1) #define FIFO_RDY BIT(0) -#define RD_FIFO_CFG 0x0028 -#define CONTINUOUS_MODE BIT(0) - #define RD_FIFO_RESET 0x0030 #define RESET_FIFO BIT(0) @@ -139,7 +139,7 @@ struct qcom_qspi { struct device *dev; struct clk_bulk_data clks[QSPI_NUM_CLKS]; struct qspi_xfer xfer; - /* Lock to protect data accessed by IRQs */ + /* Lock to protect xfer and IRQ accessed registers */ spinlock_t lock; }; -- 2.19.1.568.g152ad8e336-goog