Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2584499yba; Sun, 7 Apr 2019 23:39:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqyuVJUbbWCRRM51Uppw37ifH/C4Z2UFaimok4ZZLcunYu+0QR7pG1Fxukjc4hmL0vuqFNZR X-Received: by 2002:a63:4e10:: with SMTP id c16mr26636608pgb.302.1554705547658; Sun, 07 Apr 2019 23:39:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554705547; cv=none; d=google.com; s=arc-20160816; b=MqustdW7FUb5VTpilN05VYYNvo5YeeVjvqgOS8g2oC4iMP8BK8D+qxI3jWMQb5NJV2 pOer3qWsZ3+yJtE4CKrubWEd08MYGpo68Sg8Z3b2tTU/sxNWl0Fusn6+mWVQ94lgJzZl 5MUYWxFXWNAhbUleWZlVt6yGV7YeOZR8i4LHMaiKCWNlGQ+O9yhqUpisuAlDLU7vmTKo cP2GBdFDJ7i25BQeZwUB/v2/6EXOv2EIHpygQUxaWFYisn8qEvaVphbm7B2Fw4DqHEZ6 b/sdXSXuXbNzFS31I0mP5V1Rk6Kbhxd55unobT+JcETFWH3WOEjwNJLfv0W1iI80QR79 JxWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=iA/NMGYDBzquW7qMdFvBWFDWZIUMk2wtm9yIs5TCGd0=; b=dLOg92cdc/KrCv7JqERbnnxQo6vGLGGJ8kYNtXrOMM5CHNbcSuB3X/goPzGdl+vkTi AdgHfRF9AZMek+orXsvW9C400ZNEYFo2BgTAzhFP5RAju+0pPhTgx0yO7kPj6YpDMNQW j6uptavr7karJIjvwqXv8H5fdYK65qYnuCkDwjN5a/EV7eDRUk2Ke/nXNfU3HaWJJctj m4Kfy4B/wGMWGRCG8bw6BmD7pFYhiCVlio2NnuUKLJhqpi/T53GARA5LZP443Hwx6Q8+ hXC3EQ9Hj7JM3195rXtYagX3InQ5SwuuofcLqxr9e+ETb5iXFxzmFsNL78VqNVtPeV4e AIOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=aCu4R9FK; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g189si20624810pfb.289.2019.04.07.23.38.52; Sun, 07 Apr 2019 23:39:07 -0700 (PDT) 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; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=aCu4R9FK; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726570AbfDHGiI (ORCPT + 99 others); Mon, 8 Apr 2019 02:38:08 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:37326 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726012AbfDHGiG (ORCPT ); Mon, 8 Apr 2019 02:38:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=iA/NMGYDBzquW7qMdFvBWFDWZIUMk2wtm9yIs5TCGd0=; b=aCu4R9FKOv+i84QJhN+z2qrFz rqYQs+SoFPARS7UdPYoY46bQrFScYloim027RJlVf7tGpG4mQBTmU5fOLLzsKN77EuTAHojOi+vlc sp3g1BfEHReI8YaRXcvmAupwIRjfl9ltMzXXGkYwO4XN/5B8UznyrfjUcbTgXwzn7Xk0E=; Received: from [8.46.76.46] (helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hDNuq-0003ee-9J; Mon, 08 Apr 2019 06:38:01 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id 42F79441D58; Mon, 8 Apr 2019 13:30:22 +0700 (+07) Date: Mon, 8 Apr 2019 13:30:22 +0700 From: Mark Brown To: Sowjanya Komatineni Cc: thierry.reding@gmail.com, jonathanh@nvidia.com, talho@nvidia.com, robh+dt@kernel.org, mark.rutland@arm.com, kyarlagadda@nvidia.com, ldewangan@nvidia.com, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH V2 14/20] spi: tegra114: add support for gpio based cs Message-ID: <20190408063022.GK2803@sirena.org.uk> References: <1554423259-26056-1-git-send-email-skomatineni@nvidia.com> <1554423259-26056-14-git-send-email-skomatineni@nvidia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="1y1tiN5hVw5cPBDe" Content-Disposition: inline In-Reply-To: <1554423259-26056-14-git-send-email-skomatineni@nvidia.com> X-Cookie: Shah, shah! Ayatollah you so! User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --1y1tiN5hVw5cPBDe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Apr 04, 2019 at 05:14:13PM -0700, Sowjanya Komatineni wrote: > + if (cstate->cs_gpio_valid) { > + int val = (spi->mode & SPI_CS_HIGH) ? 1 : 0; > + > + gpio_set_value(spi->cs_gpio, val); > + } This is adding new usage of the numbered GPIO interface but we're in the process of trying to transition to GPIO descriptors. Please update this patch to use descriptors instead. Please also investigate if it's possible to use the core GPIO chip select support more. --1y1tiN5hVw5cPBDe Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlyq6n0ACgkQJNaLcl1U h9BcSAf+P79lHEqMrW7XuwAWcgHftZesiNc2uJiGMhLmSXW5FIZB0YnxdsMJq9Fk 9oml5tF0sZSunCU5fbZvsVmtvsdfLhf03Qpbi+wvG9Z+OR1IUHwrIRx60nhHBirr aHqKNt3cJPQX/cNEvJ+v3LAuwe0Y5GB6wrjGbmWsoUFqFd65wzITOm1s6yzJAbN8 w+FQ0n3BnWLi5nk5tjsYUtd55Ha1Q5PFjN1u1G7tw1TJBqAmoWT5XfgSmcaEOQG+ loIcH0KURFQ3rKw6BYGofntwLzaFGGOkAw1HunyW6zJyoRGu4CBFI7R5FyZwXg1W RU5GmuMxu0im7Vx+Axhh5E0tOu8ucg== =NNIA -----END PGP SIGNATURE----- --1y1tiN5hVw5cPBDe--