Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3495061pxj; Tue, 11 May 2021 05:56:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRB8aMCl9oxRa6E6kinKPezvmJammVOinbYT3YC6IW9XkDWcoOEQnwmrLrssj4CnEeU7tU X-Received: by 2002:a02:782a:: with SMTP id p42mr3718019jac.73.1620737793880; Tue, 11 May 2021 05:56:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620737793; cv=none; d=google.com; s=arc-20160816; b=h1fwrfSVR5B0yR69kxSpUdMsufgwT+OJAZ/v6BdsSJNsH9s3p1EfTMPZdL+d7MrygH DZsA4+TO957VXkoCDhyFfzg/RgZIublWxdCtEoblYznDbSGepf6E+cQoqEI4F5kpY+/I gGFVVMiCWypbpy+OhEXboIEpqS21ygOGjFYTiv8JiYd/tZgFU2y4ACebwAMI1AJJ20s/ uoWoHQE3SgDksSHXar/akTygvzPDs/e5O+Ym5gb5wJ6cBl5PECX+sRaEiOLbDUIsQxFs z2Fb9/O9iLxtUKo4dHF5Nh/crUuSQ+bn/PpCQlqJcXs2jbbUv+L0Ia5PpF6E6eC0Vyjt dnqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=x9pFK7ahAZtnadUns9WnAkSCRLBVbjNzZ8lUX0DVJss=; b=eYLJbcEFPuOGnizvENWU8bUP/Cey//hfBpZyxYozhsrDnT1u73QzQkHERevEdx6EIU fSJJ56HzLBQuVbE/JDiReaMTQnJaiCudtf+nUsJzieshbBzqzx0qdkR1H03SCTEC7UgZ oHzUlqRBf2JSqL5SvjyGnPkf9r+nIFhc0hIt9ZZre67iqXPmJPuWYk4rOIGflH4IPXDL mCSJtl8obEA8X3yqvTQ71KanBoVO5r9uPOoQe3rIr8xZKVCG8W2FQ8WapvilQLbDgW6G uqlukEjDRD1ZatsMuJR2iAbnwXfDI0UaD9jdEKXyg+NmXLdarEx9jCIJBJm2oM/3TiGh zdXA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l8si19909743iln.109.2021.05.11.05.56.21; Tue, 11 May 2021 05:56:33 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231665AbhEKM4r (ORCPT + 99 others); Tue, 11 May 2021 08:56:47 -0400 Received: from mga02.intel.com ([134.134.136.20]:5813 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231652AbhEKM4q (ORCPT ); Tue, 11 May 2021 08:56:46 -0400 IronPort-SDR: H4LLrThFVEcjymsKoy1QP6oz/ylLrrN7ai0y61DQG2MxY/FLqyXwPizbOUEHGVYGVmbvW+SMXY mG3DsvDxgHKg== X-IronPort-AV: E=McAfee;i="6200,9189,9980"; a="186565628" X-IronPort-AV: E=Sophos;i="5.82,290,1613462400"; d="scan'208";a="186565628" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2021 05:55:39 -0700 IronPort-SDR: NQRM/ZbnuICiyMsTks3kjEe2l5Fnm5WqS9YJWO4D+Xze/wSq3NEQ62EAUfezPbfJDGiblVSGqm zCUDwWt2zsjA== X-IronPort-AV: E=Sophos;i="5.82,290,1613462400"; d="scan'208";a="471114843" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2021 05:55:07 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1lgRuf-00BRpA-6g; Tue, 11 May 2021 15:55:01 +0300 Date: Tue, 11 May 2021 15:55:01 +0300 From: Andy Shevchenko To: Mark Brown Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, Linus Walleij , Liguang Zhang , Jay Fang , Sven Van Asbroeck , Xin Hao Subject: Re: [PATCH v1 1/1] spi: Assume GPIO CS active high in ACPI case Message-ID: References: <20210510141022.56499-1-andriy.shevchenko@linux.intel.com> <20210511111330.GH4496@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210511111330.GH4496@sirena.org.uk> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 11, 2021 at 12:13:30PM +0100, Mark Brown wrote: > On Mon, May 10, 2021 at 05:10:22PM +0300, Andy Shevchenko wrote: > > > + bool value = has_acpi_companion(&spi->dev) ? !enable : activate; > > Please write normal conditional statements to improve legibility. OK! > > if (spi->cs_gpiod) > > - /* polarity handled by gpiolib */ > > - gpiod_set_value_cansleep(spi->cs_gpiod, activate); > > + /* Polarity handled by GPIO library */ > > + gpiod_set_value_cansleep(spi->cs_gpiod, value); > > else > > /* > > - * invert the enable line, as active low is > > + * Invert the enable line, as active low is > > * default for SPI. > > The change would be clearer with the documentation formatting changes > split out from the rest of it. Will remove these changes from a fix in v2. P.S> something is odd about the series I have submitted, i.e. half of the patches simply didn't make it. I would wait with any new submission until it will be clarified, otherwise it's a chance to miss more patches without any reason why. -- With Best Regards, Andy Shevchenko