From patchwork Tue Dec 24 00:58:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 182424 Delivered-To: patch@linaro.org Received: by 2002:a92:a146:0:0:0:0:0 with SMTP id v67csp1083225ili; Mon, 23 Dec 2019 16:58:58 -0800 (PST) X-Google-Smtp-Source: APXvYqySiAOmzji+UpbuOEsop9v+YwUI+HuYiE9WvgKZH2VZjNnHFyZKSqoI140UKpYNz6OmYT8U X-Received: by 2002:a9d:664a:: with SMTP id q10mr26686902otm.99.1577149136049; Mon, 23 Dec 2019 16:58:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577149136; cv=none; d=google.com; s=arc-20160816; b=NTuk5f4g/6stExRO9IzdzWjM9Pv4T72ljnasCjcWKm/ImDo041c8zuuSGpzvRbKfqh 3Miah/Az03Ox1Qp94zWwCvdrwAqUO/onZbRyjhRYoFViSIs9ABQvtyw2X11DkAbRKlz8 9LNUzuAum+VRyurDuK/DMh+798glMF9qw7r3Yc6+uk3tsgtS6XEX/s5lzZDB4PDKXTvZ fDnlstYdeP5uz2lZKUYKCGlIjBIyCh8mjCHCLb4k+1gmP03oFN+pjmrylXWNYYOnUZZ5 PJNN+pxOBDHdFV+7en17yAMJdqKS+vKWIB16BuxnYtSAVYdlCHzpj/xfo3t3hj+fD+7H V7Yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=0XoqHRTFNlIQGSRJmQYUOtnzbeRsieODrZz4Q7PUuJ4=; b=keHA2kVEr89o6g3tChxQwUlF1TRwqWHuk1XZDNTcQPNwBrQVqDEQ9Un78kbhwvTeOr 6hezc7SGgpmdyG2+N6XAa1QkNcP2cMtH5D5kQMYhe7Ah1ft1UsFvunnuU6WvUZ7jcPow hhcmdFp+/CtrcWK0SGKgHaz8r2XAG5VsV8rOT0YUm3avjxUZQqK623eRwbN2F2MuzHSE OBSF4TVMkcfpx3oHJ8E0E15bJTnOVssvBwnVCry7jcPcn7QFN2GB+2uftmlNMcpOgNfq uS8DHCyqEhByuDFZbTidYh1o2suIyPLAekhv0RVHpkHc9z9auEdZriG/Sbyq0u0LeNXa R6vg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 44si10532685otu.77.2019.12.23.16.58.55; Mon, 23 Dec 2019 16:58:56 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727121AbfLXA6v (ORCPT + 27 others); Mon, 23 Dec 2019 19:58:51 -0500 Received: from mx.socionext.com ([202.248.49.38]:23643 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727040AbfLXA6u (ORCPT ); Mon, 23 Dec 2019 19:58:50 -0500 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 24 Dec 2019 09:58:49 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id 71F43603AB; Tue, 24 Dec 2019 09:58:49 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 24 Dec 2019 09:59:39 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 126851A01CF; Tue, 24 Dec 2019 09:58:49 +0900 (JST) From: Kunihiko Hayashi To: Mark Brown , linux-spi@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Masahiro Yamada , Keiji Hayashibara , Masami Hiramatsu , Jassi Brar , Kunihiko Hayashi Subject: [PATCH 4/5] spi: uniphier: Add SPI_LOOP to the capabilities Date: Tue, 24 Dec 2019 09:58:26 +0900 Message-Id: <1577149107-30670-5-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1577149107-30670-1-git-send-email-hayashi.kunihiko@socionext.com> References: <1577149107-30670-1-git-send-email-hayashi.kunihiko@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add SPI_LOOP to the capabilities to support loopback mode. Signed-off-by: Kunihiko Hayashi --- drivers/spi/spi-uniphier.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/spi/spi-uniphier.c b/drivers/spi/spi-uniphier.c index c4e3b96..caf0446 100644 --- a/drivers/spi/spi-uniphier.c +++ b/drivers/spi/spi-uniphier.c @@ -543,7 +543,8 @@ static int uniphier_spi_probe(struct platform_device *pdev) master->max_speed_hz = DIV_ROUND_UP(clk_rate, SSI_MIN_CLK_DIVIDER); master->min_speed_hz = DIV_ROUND_UP(clk_rate, SSI_MAX_CLK_DIVIDER); - master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; + master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST | + SPI_LOOP; master->dev.of_node = pdev->dev.of_node; master->bus_num = pdev->id; master->bits_per_word_mask = SPI_BPW_RANGE_MASK(1, 32);