From patchwork Mon May 11 04:53:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 11539681 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 99A05139F for ; Mon, 11 May 2020 04:54:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 810ED20820 for ; Mon, 11 May 2020 04:54:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=alistair23.me header.i=@alistair23.me header.b="zgllr2/W"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="lsRP5ghf" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728425AbgEKEyX (ORCPT ); Mon, 11 May 2020 00:54:23 -0400 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:58345 "EHLO wout3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728447AbgEKExg (ORCPT ); Mon, 11 May 2020 00:53:36 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 775DD31D; Mon, 11 May 2020 00:53:34 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 11 May 2020 00:53:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alistair23.me; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm1; bh=8D8NJelTXQUt+y8GwfLHQxRi1C J86uY3Kb4mQLltkjw=; b=zgllr2/We9jSxleBcw1/2ntO2hUrSugVHY8sobNYiI HbYQxNlr2bs7gcpfKFsFT7G25mrKBIW7bhZoY1/gDpDhzxZ40IU0uYtt3VpblQzs HXjerXdr107XEOGeldKITEWDOYHMEgQeXZiozOc6v0a3YCHXVWYE6NKbXKHE4KT+ T63+aX+EqNsCWdLHAd5HV3KyGVvG0DRaK0ynN6dmRqltIX/KJIO3KASszbYJ801N qsK9dPj21asjFYi8aLXIFLUmDNUuWZ/OrK5JsfwCxd5xfxYAxwdnPG7/rdShBIs/ Ad0KOfwfmlUkoZTVQj/uy3Bf5XGWFahdQHRmnf9h6mhQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=8D8NJelTXQUt+y8Gw fLHQxRi1CJ86uY3Kb4mQLltkjw=; b=lsRP5ghf6A2aa0OYp6Dq/fYECjUfzei3d v7JExSsAgGZND3KdvNmAVBFK92dDdyZySqiXfwsdwfhS7EWYgTJWNak9smsWq+Tc eX+O5t3Oneq9dNmQ3+7kd2LnVpMmKFiKfgKDct1PRUBlQkROFHKcywJwFtAEjjjn axXum50LzGpJ36ut77SDC/ZjS7Yju701bC+yZ+KXgSagt1rGmcG0REIcpa7IsplI spy2Nnl9LCncapLJRz6Z9GAuisZ39kF/aclitjfLFutFVOsK1N25G5JRdDSEWWzY OopTf6VNJ/EHaSNeQkrgI8EELv6MTqyNqMEhK/KzM4Z9ohtGnhizA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrkeelgdekiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffoggfgsedtkeertdertd dtnecuhfhrohhmpeetlhhishhtrghirhcuhfhrrghntghishcuoegrlhhishhtrghirhes rghlihhsthgrihhrvdefrdhmvgeqnecuggftrfgrthhtvghrnhepjeeliefhvdetgfdtte fhtdegffdtiefffeejiefffeevueeljeehjeevhfffueeknecukfhppeejfedrleefrdek gedrvddtkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpegrlhhishhtrghirhesrghlihhsthgrihhrvdefrdhmvg X-ME-Proxy: Received: from alistair-xps-14z.alistair23.me (c-73-93-84-208.hsd1.ca.comcast.net [73.93.84.208]) by mail.messagingengine.com (Postfix) with ESMTPA id 1146F328005D; Mon, 11 May 2020 00:53:32 -0400 (EDT) From: Alistair Francis To: broonie@kernel.org, linux-spi@vger.kernel.org Cc: mripard@kernel.org, wens@csie.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, alistair23@gmail.com, Alistair Francis Subject: [PATCH v2] spi: sun6i: Add support for GPIO chip select lines Date: Sun, 10 May 2020 21:53:30 -0700 Message-Id: <20200511045330.690507-1-alistair@alistair23.me> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org Set use_gpio_descriptors as true to support using generic GPIO lines for the chip select. Signed-off-by: Alistair Francis --- v2: - Use use_gpio_descriptors instead of spi_setup drivers/spi/spi-sun6i.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi-sun6i.c b/drivers/spi/spi-sun6i.c index ec7967be9e2f..ecea15534c42 100644 --- a/drivers/spi/spi-sun6i.c +++ b/drivers/spi/spi-sun6i.c @@ -470,6 +470,7 @@ static int sun6i_spi_probe(struct platform_device *pdev) master->max_speed_hz = 100 * 1000 * 1000; master->min_speed_hz = 3 * 1000; + master->use_gpio_descriptors = true; master->set_cs = sun6i_spi_set_cs; master->transfer_one = sun6i_spi_transfer_one; master->num_chipselect = 4;