Message ID | 20210510131217.49357-4-andriy.shevchenko@linux.intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=i+Gf=KF=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 12B5FC433B4 for <linux-arm-kernel@archiver.kernel.org>; Mon, 10 May 2021 13:13:58 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B697F611C2 for <linux-arm-kernel@archiver.kernel.org>; Mon, 10 May 2021 13:13:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B697F611C2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=9yGVYya4uOjRZI5A7Sm267zxfwKCtJKPIg+X/Jj4Sus=; b=oMYt6/83geGy8Njw2ZNRmBcb6 U3gfvGM/0uE2qX/nmf88YlyGwC9kP4HkCPQNv5KPKVTl4X3W0X3ymgPRcVigUgoXyZ1ZY83GMBa/m EdZ9niwYgRdkSwSTA6bf7TC9w35xnITxfo37x2oyNmE0iUxtio4VvgcvsLJdlUYC5l4IdvXDwM7ej IVF8CanqHKuHowjsew/EPUMbHPZoGAw3EQuaHN2WcpYukqNlfVYB4PIoULr0+WHyjZrSFuKDfxix1 lD2l+9InxjCc3pb+DTWaSKJWHe6YcjmyE8G/2UljL2TfrWpHk4rkj6YEpVoYbrnuVH5Gq4MoWGLAV U9MkvpheQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lg5ho-00EP5n-J1; Mon, 10 May 2021 13:12:16 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lg5hm-00EP5G-H1 for linux-arm-kernel@desiato.infradead.org; Mon, 10 May 2021 13:12:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=Jer3OKHNLozO6haHKkGPp+VuurNAet2ccJz0EedDtDw=; b=QM+S27szrKrmkNMfEUcTcJeBE2 rx4aTFjtNYMW7RZK/VyJVds2M0uOZy7pUA9ILqO2w4+WSDgvXgJUpjp+o8RySq+4Yz5ROYLPftXUz qbSu8Uzbys72ZvxHlC1bb2HanpGCbqTX/5fgiez/7Hm6rfWrq7PcKXNaOGQ4VrlmjrWZ7uBgCP//Y 4ggDeVkJ0awQCqf0BINE8kJ1riYfy6ttQ7ceeFYb5c2P1Wpr0Z05E4BC7eBeopSjgK5KuXpLMQYJA iaLTX7WHTRnc3CnqBnWHuQdbuduAECzN12rvv8Tk+AXFnScMQ+C9MF532SdAM4Xxl9WJ2VxgC13Ro BMR9+Dbw==; Received: from mga05.intel.com ([192.55.52.43]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lg5hk-008jeD-4m for linux-arm-kernel@lists.infradead.org; Mon, 10 May 2021 13:12:13 +0000 IronPort-SDR: gDOy8eWmkgNiMrpcb3RN4WVVLHETNZ8F3r/CqeTfehFceEdIiZ5PbSYxGSpkB1fRv0ILrlZ80l niftI4XfRabA== X-IronPort-AV: E=McAfee;i="6200,9189,9980"; a="284676248" X-IronPort-AV: E=Sophos;i="5.82,287,1613462400"; d="scan'208";a="284676248" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2021 06:12:11 -0700 IronPort-SDR: cdfWr8A2AqccBATyGw3BVMyWmpt2JQ+K0F3lVLPuHtOtqNEguqvlmt+ZXmhI3myDhFKSLE2Upf HJX+9qMCT0KQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,287,1613462400"; d="scan'208";a="624279386" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga005.fm.intel.com with ESMTP; 10 May 2021 06:12:07 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 11E22147; Mon, 10 May 2021 16:12:28 +0300 (EEST) From: Andy Shevchenko <andriy.shevchenko@linux.intel.com> To: Linus Walleij <linus.walleij@linaro.org>, Mark Brown <broonie@kernel.org>, openbmc@lists.ozlabs.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Avi Fishman <avifishman70@gmail.com>, Tomer Maimon <tmaimon77@gmail.com>, Tali Perry <tali.perry1@gmail.com>, Patrick Venture <venture@google.com>, Nancy Yuen <yuenn@google.com>, Benjamin Fair <benjaminfair@google.com>, Kunihiko Hayashi <hayashi.kunihiko@socionext.com>, Masami Hiramatsu <mhiramat@kernel.org>, Andy Shevchenko <andriy.shevchenko@linux.intel.com> Subject: [PATCH v1 4/7] spi: oc-tiny: Use SPI_MODE_X_MASK Date: Mon, 10 May 2021 16:12:14 +0300 Message-Id: <20210510131217.49357-4-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210510131217.49357-1-andriy.shevchenko@linux.intel.com> References: <20210510131217.49357-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210510_061212_211706_AADD1797 X-CRM114-Status: GOOD ( 11.53 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series | [v1,1/7] spi: Use SPI_MODE_X_MASK | expand |
diff --git a/drivers/spi/spi-oc-tiny.c b/drivers/spi/spi-oc-tiny.c index f3843f0ff260..38c14c4e4e21 100644 --- a/drivers/spi/spi-oc-tiny.c +++ b/drivers/spi/spi-oc-tiny.c @@ -86,7 +86,7 @@ static int tiny_spi_setup(struct spi_device *spi) hw->speed_hz = spi->max_speed_hz; hw->baud = tiny_spi_baud(spi, hw->speed_hz); } - hw->mode = spi->mode & (SPI_CPOL | SPI_CPHA); + hw->mode = spi->mode & SPI_MODE_X_MASK; return 0; }
Use SPI_MODE_X_MASK instead of open coded variant. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> --- drivers/spi/spi-oc-tiny.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)