Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 76B80C04A94 for ; Wed, 16 Aug 2023 03:46:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241608AbjHPDp4 (ORCPT ); Tue, 15 Aug 2023 23:45:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241630AbjHPDpb (ORCPT ); Tue, 15 Aug 2023 23:45:31 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFC791FCE for ; Tue, 15 Aug 2023 20:45:29 -0700 (PDT) Received: from dggpemm100006.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4RQYrV5xZ9zVjlx; Wed, 16 Aug 2023 11:43:22 +0800 (CST) Received: from dggpemm500007.china.huawei.com (7.185.36.183) by dggpemm100006.china.huawei.com (7.185.36.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Wed, 16 Aug 2023 11:45:27 +0800 Received: from [10.174.178.174] (10.174.178.174) by dggpemm500007.china.huawei.com (7.185.36.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Wed, 16 Aug 2023 11:45:27 +0800 Subject: Re: [PATCH -next v2 19/21] spi: dw: switch to use modern name To: CC: Geert Uytterhoeven , , , , References: <20230807140717.3484180-1-yangyingliang@huawei.com> <20230807140717.3484180-20-yangyingliang@huawei.com> From: Yang Yingliang Message-ID: Date: Wed, 16 Aug 2023 11:45:26 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Originating-IP: [10.174.178.174] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpemm500007.china.huawei.com (7.185.36.183) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org Hi Serge, On 2023/8/15 19:36, Geert Uytterhoeven wrote: > Hi Yang, > > On Mon, Aug 7, 2023 at 4:10 PM Yang Yingliang wrote: >> Change legacy name master to modern name host or controller. >> >> No functional changed. >> >> Signed-off-by: Yang Yingliang > Thanks for your patch, which is now commit eefc6c5c2451126c ("spi: > dw: switch to use modern name") in spi/for-next. > >> --- a/drivers/spi/spi-dw-mmio.c >> +++ b/drivers/spi/spi-dw-mmio.c >> @@ -68,7 +68,7 @@ struct dw_spi_mscc { >> ((((val) << 1) | BIT(0)) << ELBA_SPICS_OFFSET(cs)) >> >> /* >> - * The Designware SPI controller (referred to as master in the documentation) >> + * The Designware SPI controller (referred to as host in the documentation) >> * automatically deasserts chip select when the tx fifo is empty. The chip >> * selects then needs to be either driven as GPIOs or, for the first 4 using >> * the SPI boot controller registers. the final chip select is an OR gate > Have you verified that Synopsys did update the documentation for the > Designware SPI controller? If not, I think it's prudent to keep the > old name. I'm trying to rename the legacy name(master/slave) to modern name(host/target) used in SPI drivers, is it ok to change this comment master to host ? Thanks, Yang > >> @@ -142,14 +142,14 @@ static int dw_spi_mscc_jaguar2_init(struct platform_device *pdev, >> } >> >> /* >> - * The Designware SPI controller (referred to as master in the >> + * The Designware SPI controller (referred to as host in the > Likewise. > >> * documentation) automatically deasserts chip select when the tx fifo >> * is empty. The chip selects then needs to be driven by a CS override >> * register. enable is an active low signal. >> */ >> static void dw_spi_sparx5_set_cs(struct spi_device *spi, bool enable) >> { > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds > > .