Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp641114pxu; Fri, 4 Dec 2020 11:42:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJzAgGmlyiauEdPcC8UF6kRtN596stjyLj0hb7fTLR6aOSnoqwaGNvxl78zRNanzv/eBU/ys X-Received: by 2002:a05:6402:c95:: with SMTP id cm21mr3505256edb.294.1607110928964; Fri, 04 Dec 2020 11:42:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607110928; cv=none; d=google.com; s=arc-20160816; b=EssPovRR4Wufsa2kmcLPvYvGdKIZXUBzF+2EfC2HnACc6ZbA7lzCakB8HDXitH1tSC oZiFy27G7c0nIT9J9ue49oPPAxiHZOakXg88YV8ooS95Uumd/qnMBr7R7dkBgi6bHMX5 BprqavKluehRMXocU018MgGI/ggruYtCVmS78VXj0HqniiZfs/e4AR6KYcmelrHlMEPq dB06kfWc3rlODJntJ2BuqWQRJTSAi00UU2VjE7mcEpedv4I0/hfj8nKq3OJKftR31lip i4lbU1V+fPrx9BlCZY24CdJpC5PTaRyYxpAoVkJtaWav2XbIOQheoLQuUjiRpoLG+bKV W1Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=z02bYpW+7Mv3ChAgiAsPawwOKuNxCdLfLFsK6QR3N2g=; b=RGvX0B2p5ou3NlnLB18va1mXaGjbUijp0YOvWvQlyj+MrHxVE8Tlc59zprAR/NgTrM iinR76RFoGdTJWBSBWLqvTzCb3EXNFnq8Gw1GRpMvnZ2zvJg+mZg878m617swmC2eBh6 NS7vHcNvHiWyJmq6KN+bR9YwKtbrFcFIxd3hWdNj7lSXwNTGM62gvt7vg2X1tsPk+X2n 33jVcp9MccQrYSArLPt0zHFqha4aOVyDIHbqRgvHNMdkmH/gPaYvr0CTnqeEzzAuJSKB B1Oq0ggRv8qXuZMm8SDH6+Q+etuxbwjX7KEJV0d53iURiPskFMIGGekjMQlVg1t2fcm2 r4BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Vs++Opko; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id l15si1943415ejk.413.2020.12.04.11.41.45; Fri, 04 Dec 2020 11:42:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Vs++Opko; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1729762AbgLDThL (ORCPT + 99 others); Fri, 4 Dec 2020 14:37:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730705AbgLDThK (ORCPT ); Fri, 4 Dec 2020 14:37:10 -0500 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 637B8C08E85F for ; Fri, 4 Dec 2020 11:35:47 -0800 (PST) Received: by mail-pl1-x643.google.com with SMTP id p6so3688957plr.7 for ; Fri, 04 Dec 2020 11:35:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=z02bYpW+7Mv3ChAgiAsPawwOKuNxCdLfLFsK6QR3N2g=; b=Vs++OpkolBidQ0q+Ilza0Lha2VWjdSfRUa0ZzyaK0DdwopqPCGjYsRuljefTYyN41n SMbziRk4cUbUTZSxJGFsasYy+OuGga4sEI/YuO+UYsdrtDxNFg3bzdS01K0AMf1PNPgy XqWplByD5XICWPph7gUl2ablIZ35/fL5KvA5g= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=z02bYpW+7Mv3ChAgiAsPawwOKuNxCdLfLFsK6QR3N2g=; b=EcJGMyyXaEorrJCiK2LEr3TBqFORIdFuorqCCqLc9W/XSiqpvWBVUkuXCeXEc+0LUv gg0p/9HoUtet8iJv+6tN8suUjDYqu6xaYtfDGhWLq5vh9E6zcATLh1fWkmMe5LCah0Bw joawINvmKajKNdKlhAWrV6QYCN6wN3q0HbCk9C51SITYAVayLJND9nBmTS1Tm2g6gzJ2 oZnrOxIVZshXpgcuxGRSKCrvqJn96A3JQFEOvqgN62yTMlH+DHiS0CiiU+X2piCdfLE0 scncdPFY45NgemKT7CnS0RbCD1oiVc3XYYqdbXaVDn0ycmYtcIL2hOGc7j5ly/Z/BTtC FZHg== X-Gm-Message-State: AOAM532jh+SL8CP84mIWMhori1UGatZB+vVnIa2tg6YsuNBF3d3zudtH CKFQ7BlVvJBz92l1Pg/ofSOkTw== X-Received: by 2002:a17:902:aa4b:b029:d8:f87e:1f3c with SMTP id c11-20020a170902aa4bb02900d8f87e1f3cmr5331771plr.23.1607110546995; Fri, 04 Dec 2020 11:35:46 -0800 (PST) Received: from smtp.gmail.com ([2620:15c:202:201:3e52:82ff:fe6c:83ab]) by smtp.gmail.com with ESMTPSA id g8sm4576548pgn.47.2020.12.04.11.35.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2020 11:35:46 -0800 (PST) From: Stephen Boyd To: Mark Brown Cc: linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, Benson Leung , linux-arm-msm@vger.kernel.org, Enric Balletbo i Serra , Akash Asthana , Bjorn Andersson , Douglas Anderson , Alexandru M Stan Subject: [PATCH 3/3] spi: spi-geni-qcom: Use the new method of gpio CS control Date: Fri, 4 Dec 2020 11:35:40 -0800 Message-Id: <20201204193540.3047030-4-swboyd@chromium.org> X-Mailer: git-send-email 2.29.2.576.ga3fc446d84-goog In-Reply-To: <20201204193540.3047030-1-swboyd@chromium.org> References: <20201204193540.3047030-1-swboyd@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Let's set the 'use_gpio_descriptors' field so that we use the new way of requesting the CS GPIOs in the core. This allows us to avoid having to configure the CS pins in "output" mode with an 'output-enable' pinctrl setting. Cc: Akash Asthana Cc: Bjorn Andersson Reviewed-by: Douglas Anderson Cc: Alexandru M Stan Signed-off-by: Stephen Boyd --- drivers/spi/spi-geni-qcom.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi-geni-qcom.c b/drivers/spi/spi-geni-qcom.c index 25810a7eef10..c4c88984abc9 100644 --- a/drivers/spi/spi-geni-qcom.c +++ b/drivers/spi/spi-geni-qcom.c @@ -636,6 +636,7 @@ static int spi_geni_probe(struct platform_device *pdev) spi->auto_runtime_pm = true; spi->handle_err = handle_fifo_timeout; spi->set_cs = spi_geni_set_cs; + spi->use_gpio_descriptors = true; init_completion(&mas->cs_done); init_completion(&mas->cancel_done); -- https://chromeos.dev