Received: by 10.223.164.202 with SMTP id h10csp2979509wrb; Sun, 12 Nov 2017 23:43:28 -0800 (PST) X-Google-Smtp-Source: AGs4zMYB73QZ15MHk23K1eh1SCVIGKKVHNK61x93CmMlRcyD+3U6JEEIX4f4mICfklDd5JWahho5 X-Received: by 10.84.214.2 with SMTP id h2mr1784150pli.261.1510559008461; Sun, 12 Nov 2017 23:43:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510559008; cv=none; d=google.com; s=arc-20160816; b=frMvu8kf+ksioZXXaCVgTx28VDEJfzBMlOX+kS1RmQSXPg6NfYncuEy05KZjWdVGCo ZeGNclHwrjrUHLtO3SXF6XH3Xu+JBNvK1q5v+VK4witk54ObiqYYQVI1VkfRleJwTqN7 9wZX5ILPbE/M56V/0/nf9CXIEZkNzzqHc1YzWk7hugMye6KQCghhEquf6QoDxj+UVFFk 0BeYUljTgZYxciP/pH5ZX+7Bojd7qazr/5ntNvphXatSfpn7ndjawNE1sMcqA/adKYu6 HpbXEKT6JB1i1mPkCa8XvE2mCmotDOvE9+T4h3fRPZZ1KHkzzH0GSMXj2eC2YB5r6WTi 7k8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=sJ074MibOtKdimwgVQXXwHHWZqLePAMeUuSACYTGPpU=; b=SexW+6czGxpbSbX9mobG+lseFWotKCIoqLslWMDLwndUNMpkqN6kt8K+pI6uBUaoRT Kx6nLdowKQLbLAZ34ErKUrpgAoRT/+9uQms0fJSiW2WSqJaF43dc5BVRs9O2EkPNyNs3 05yyePON1dFx3fIPbt6sbuO8ItYA7aBU5MP/tXk17BvBXLJIzmjvrHBmII0tkJBY6ejS QuxbC4r7diUdeN3f9glT0XycVEeAECnmRKFax5yXdqeZjfHkznWRkASE1qvnVYr29gjo rMuNsFsKmTdBVBsawLPI7Ehvk0lMJcrIjEdAx1sutAKkH2AMdjvRskUkqaGbXXhfCDRk xzvQ== 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 y10si13067550pgs.754.2017.11.12.23.43.15; Sun, 12 Nov 2017 23:43:28 -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 S1751736AbdKMHmk (ORCPT + 90 others); Mon, 13 Nov 2017 02:42:40 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:60304 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751523AbdKMHmj (ORCPT ); Mon, 13 Nov 2017 02:42:39 -0500 Received: from hsi-kbw-5-158-153-52.hsi19.kabel-badenwuerttemberg.de ([5.158.153.52] helo=kurt.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1eE9NS-0005Xv-Bj; Mon, 13 Nov 2017 08:41:54 +0100 From: Kurt Kanzenbach To: Mark Brown Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, Kurt Kanzenbach Subject: [PATCH] spi: spi-fsl-dspi: add SPI_LSB_FIRST to driver capabilities Date: Mon, 13 Nov 2017 08:47:21 +0100 Message-Id: <20171113074721.22404-1-kurt@linutronix.de> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The driver as well as the controller support the SPI lsb first mode. However, it's not possible to configure it e.g. when using spidev. Adding this flag to mode_bits resolves the issue and lsb first mode can be used. Signed-off-by: Kurt Kanzenbach --- drivers/spi/spi-fsl-dspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c index f652f70cb8db..02d3ed7f2558 100644 --- a/drivers/spi/spi-fsl-dspi.c +++ b/drivers/spi/spi-fsl-dspi.c @@ -980,7 +980,7 @@ static int dspi_probe(struct platform_device *pdev) master->dev.of_node = pdev->dev.of_node; master->cleanup = dspi_cleanup; - master->mode_bits = SPI_CPOL | SPI_CPHA; + master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST; master->bits_per_word_mask = SPI_BPW_MASK(4) | SPI_BPW_MASK(8) | SPI_BPW_MASK(16); -- 2.11.0 From 1584690884348756715@xxx Tue Nov 21 15:43:15 +0000 2017 X-GM-THRID: 1584689994100742417 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread