Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36785448rwd; Tue, 11 Jul 2023 05:50:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlFJIeol/onsjlpH3JiUKpazqPpHRgXIt88SpAgSGSozgLCzbKUgiAe3jfNSHuWQL4PXXb41 X-Received: by 2002:a05:6a00:1a4e:b0:66c:2d4e:4772 with SMTP id h14-20020a056a001a4e00b0066c2d4e4772mr15315387pfv.13.1689079843258; Tue, 11 Jul 2023 05:50:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689079843; cv=none; d=google.com; s=arc-20160816; b=JiQTlW93vL0SeekDjTv3bwrx4O7Qh5bzrpyLfw+ClWbXlffCbR3/eLLwo5CuBxzRka CtvA5AL2URDMvkQ7eqadKWnszQ9oZpeBt2eTzB/JNl2/LVZPLiJ/A2rKSjrJ1liepRG7 wIflFTD3XUn8t/32kDBDDEtLFpTS53x5vvVCHFr6wCyhbDLI74PcX2t2JtUUZELRler/ XIvtc7jLFbag88rAjxdCy5x2QR7426L80S9X0kIi8Ty55KPSSEA9yUavJ7YYaCgD+E3i O51LCdDST/KCHSGuDGoaHP7LnJTwJfVYsR6TPJZJ/qgXn5tHtA76XSMXC4Ct2ZyS1o3P wBhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PF44NEqyxP0uEPvVdBdUhZoOyhnmXaRRtdBTolupizs=; fh=RWISI7bdYBfRZXeqyiVIXLHMxwwFF91gqFYKQ6KLrXU=; b=FmR6ShfPaO9Co+B7m/8CUgdl4y3em1KtT7W0PE5HHvbjOO/6fws9vvuCWAdveFSMLq jcUXZHMzGWbbJ6vdUdM/Cnnhk3TguAvZlfmbQRT7UL7vV63VidKRsGu5tOPt/4+ZrYgb GEpqs3/yGcCW7TI0cdY9c5XkyrjL7n5BeeOFPt48CCb/YW/Xu49IparQx5oU5AI8E1ph 3rbG1udDn5aIl+PbtCWjw1KCbjhTejbeQ+79REg8LxRsp0pPxV1WsXBLuq0jdlqMkVwT ylJB1C8pEuNGiZCR3Rvs21tP/dYtFWpyGTTcPXvkMmS+W7oabWAozm3b/zr4axL9uPiz qWMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=SBnTfmlU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t21-20020a056a0021d500b00675807330bfsi1445258pfj.194.2023.07.11.05.50.31; Tue, 11 Jul 2023 05:50:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=SBnTfmlU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230215AbjGKMcU (ORCPT + 99 others); Tue, 11 Jul 2023 08:32:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231217AbjGKMcS (ORCPT ); Tue, 11 Jul 2023 08:32:18 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9A80170E; Tue, 11 Jul 2023 05:31:50 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2b6f943383eso89454491fa.2; Tue, 11 Jul 2023 05:31:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689078626; x=1691670626; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=PF44NEqyxP0uEPvVdBdUhZoOyhnmXaRRtdBTolupizs=; b=SBnTfmlUAjKWCRn3fyds5WJnq/rFhCyNY0inIr58sbmQdnr0ekqm/rRHOpDPaGy/KO B5+bnED3EocI70B/1Liqfviz84UQamIYXCfhBLJdAwpngn8GsImdPLHw3RB6cx2k3qLl nSGU6gtvVw3/VsXZCkMPykBjpKDuKmimIVto3O71KEXoVSR8sXs9wWBC1yWjR9VJRV7y Wiz8QKW407Y9wEjIJVzHwlxfi2RJhdAg86N/DwGw/jxMsF0gA+NEhyREeEq19FirWzm/ TqVILtBOKMHlbGVQP5ypx9ZxmExDySMPGPYIR/gAUwwQJjSdRAbKTqb1KbxEGl8qDyoh Eb8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689078626; x=1691670626; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=PF44NEqyxP0uEPvVdBdUhZoOyhnmXaRRtdBTolupizs=; b=Wx/jnBmhVE1jQ5jrjbbacZ8TLn5VsJx0GuztMGkwsPMDY0xnjAeu2JNICuubWKiCF0 8ITWeSCUoalCCG+YtJ3RKl/kcmVY2hcps7SfG5KHwLnlCol2TH29YM5C6RZabft68uyf gm4aC2WfOgglcyRqMlrbjHYAmBt9S78Umm+JOHHlhCsZU+hjZEEJlaCHtaYkr7VRUU3e A/83Sxsy/IrZlvPci9BcZrBOWQmwbzGsxjdZ3lEq4RZ2nCWvl7DlfTK01HMJ9WxskJ5v zDsfSvkt3GXMF7yW2agAvBe5MNWI+8nrWHmqEFz1emIcVoCsfExzY+zIVNcTQ5YnAbRn M56Q== X-Gm-Message-State: ABy/qLblTUsS/QBgwrVsGf6swtsAz/wUo3UVCAOsYgzt7kRE4yr4K4z9 RatHO7kuN5rQvy4h3FTfy6ecnNAhI1vMYg== X-Received: by 2002:a2e:8eca:0:b0:2b6:dc50:19ac with SMTP id e10-20020a2e8eca000000b002b6dc5019acmr13901724ljl.31.1689078625694; Tue, 11 Jul 2023 05:30:25 -0700 (PDT) Received: from mobilestation ([85.249.18.12]) by smtp.gmail.com with ESMTPSA id j17-20020a2e6e11000000b002b6ee75648fsm441355ljc.12.2023.07.11.05.30.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jul 2023 05:30:24 -0700 (PDT) Date: Tue, 11 Jul 2023 15:30:19 +0300 From: Serge Semin To: Andy Shevchenko Cc: Mark Brown , Cristian Ciocaltea , Yang Yingliang , Amit Kumar Mahapatra via Alsa-devel , Neil Armstrong , Tharun Kumar P , Vijaya Krishna Nivarthi , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-riscv@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-trace-kernel@vger.kernel.org, netdev@vger.kernel.org, Sanjay R Mehta , Radu Pirea , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Tudor Ambarus , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Matthias Brugger , AngeloGioacchino Del Regno , Andy Gross , Bjorn Andersson , Konrad Dybcio , Heiko Stuebner , Palmer Dabbelt , Paul Walmsley , Orson Zhai , Baolin Wang , Chunyan Zhang , Alain Volmat , Maxime Coquelin , Alexandre Torgue , Max Filippov , Steven Rostedt , Masami Hiramatsu , Richard Cochran Subject: Re: [PATCH v2 13/15] spi: Rename SPI_MASTER_GPIO_SS to SPI_CONTROLLER_GPIO_SS Message-ID: References: <20230710154932.68377-1-andriy.shevchenko@linux.intel.com> <20230710154932.68377-14-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230710154932.68377-14-andriy.shevchenko@linux.intel.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 10, 2023 at 06:49:30PM +0300, Andy Shevchenko wrote: > Rename SPI_MASTER_GPIO_SS to SPI_CONTROLLER_GPIO_SS and > convert the users to SPI_CONTROLLER_GPIO_SS to follow * I'm not an expert in English, but imo the next would look a * bit more readable: * convert s/the users to SPI_CONTROLLER_GPIO_SS/the code to using SPI_CONTROLLER_GPIO_SS > the new naming shema. s/shema/schema > > Signed-off-by: Andy Shevchenko > --- [...] > drivers/spi/spi-dw-core.c | 2 +- [...] > diff --git a/drivers/spi/spi-dw-core.c b/drivers/spi/spi-dw-core.c > index a8ba41ad4541..45f5acc26b1d 100644 > --- a/drivers/spi/spi-dw-core.c > +++ b/drivers/spi/spi-dw-core.c > @@ -932,7 +932,7 @@ int dw_spi_add_host(struct device *dev, struct dw_spi *dws) > if (dws->mem_ops.exec_op) > master->mem_ops = &dws->mem_ops; > master->max_speed_hz = dws->max_freq; > - master->flags = SPI_MASTER_GPIO_SS; > + master->flags = SPI_CONTROLLER_GPIO_SS; > master->auto_runtime_pm = true; > > /* Get default rx sample delay */ For the DW APB/AHB SSI driver: Reviewed-by: Serge Semin -Serge(y) [...] > diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c > index 06a92a3a5746..bcabae98cb7c 100644 > --- a/drivers/spi/spi.c > +++ b/drivers/spi/spi.c > @@ -995,7 +995,7 @@ static void spi_set_cs(struct spi_device *spi, bool enable, bool force) > gpiod_set_value_cansleep(spi_get_csgpiod(spi, 0), activate); > } > /* Some SPI masters need both GPIO CS & slave_select */ > - if ((spi->controller->flags & SPI_MASTER_GPIO_SS) && > + if ((spi->controller->flags & SPI_CONTROLLER_GPIO_SS) && > spi->controller->set_cs) > spi->controller->set_cs(spi, !enable); > } else if (spi->controller->set_cs) { > @@ -3020,7 +3020,7 @@ static int spi_get_gpio_descs(struct spi_controller *ctlr) > > ctlr->unused_native_cs = ffs(~native_cs_mask) - 1; > > - if ((ctlr->flags & SPI_MASTER_GPIO_SS) && num_cs_gpios && > + if ((ctlr->flags & SPI_CONTROLLER_GPIO_SS) && num_cs_gpios && > ctlr->max_native_cs && ctlr->unused_native_cs >= ctlr->max_native_cs) { > dev_err(dev, "No unused native chip select available\n"); > return -EINVAL; > diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h > index cdc3addfe117..43f6c3f71a76 100644 > --- a/include/linux/spi/spi.h > +++ b/include/linux/spi/spi.h > @@ -578,8 +578,7 @@ struct spi_controller { > #define SPI_CONTROLLER_NO_TX BIT(2) /* Can't do buffer write */ > #define SPI_CONTROLLER_MUST_RX BIT(3) /* Requires rx */ > #define SPI_CONTROLLER_MUST_TX BIT(4) /* Requires tx */ > - > -#define SPI_MASTER_GPIO_SS BIT(5) /* GPIO CS must select slave */ > +#define SPI_CONTROLLER_GPIO_SS BIT(5) /* GPIO CS must select slave */ > > /* Flag indicating if the allocation of this struct is devres-managed */ > bool devm_allocated; > -- > 2.40.0.1.gaa8946217a0b >