From mboxrd@z Thu Jan 1 00:00:00 1970 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 ED091C433F5 for ; Mon, 11 Apr 2022 13:03:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240003AbiDKNFs (ORCPT ); Mon, 11 Apr 2022 09:05:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234731AbiDKNFr (ORCPT ); Mon, 11 Apr 2022 09:05:47 -0400 Received: from esa6.hgst.iphmx.com (esa6.hgst.iphmx.com [216.71.154.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31114120AA for ; Mon, 11 Apr 2022 06:03:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1649682212; x=1681218212; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=GonxJXSP5Jp3Xd7YM5AlvcGjeaM6Z6X6GgWrsHdG9Yw=; b=NaXIs+vEhDp0Zfv2+MjOgoqMkdAhAq9Kf4RUAIr1R48rxGD5t42l/ZbJ C3pW81JESXGCpgE1JUMD/21I+5l4iWyIxmMgXU4BaDc6wotxk5cE2q9LA ifwW8PzRCzaxhhXjG3B/0iaSfKNqtUGqRm/NwNUWmP2UdABfU3GhgrUSN 1xaKfw72CghDGUYJoiiJpLUMDkBPECRjpK18Kd3Rf0dKUFHWGxheL1OVw COKNvrgADaoNWNILEHTwqJFrmXqnVkyd+mK8mk4UXOJz5XYV/N6f1/9Zy bvBWp8tyCfA/wU815PKgOTI267S40Ypefahn/SA4qujridzglTi+k5fJU Q==; X-IronPort-AV: E=Sophos;i="5.90,251,1643644800"; d="scan'208";a="198525878" Received: from h199-255-45-14.hgst.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 11 Apr 2022 21:03:31 +0800 IronPort-SDR: YXuXJZwjo1V4ZETbeSnMKA/zfHzS/BsoXZLhiVd1THOEUd5pVzQ19Fld4ZwQVcTzJjvmOZxbvA VyxrBWCPCv2SPbDgAa6SqNBOHDa04yB133zPvLFukranjgC9ZTKhrDvcXfT5zr/o90abhmuPM+ 4vlVEDWcocgOKKmIegIoQA2d1Mmkb0+/NdtosXJNbV4XEXss0hXiBeowfEHAseWwM8ltuvKj6R 2rT+KFxMDoDCFl4WAjtGEmZnb0QXyeQI3+f1otMJMz2w8J1f+FkNoICK8WzBFi2t0OaEpGCL2p /Km+mWcxxwroMWhqhwhIuXch Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 11 Apr 2022 05:34:48 -0700 IronPort-SDR: 9FgtJcyg//lR1ewsGTiB7qtiF78yR6r/tPrM5Lyk255zCmT9hytMjGOimFI+f2TM2BuV5IQNbE hDCls/C3BmNoYG4vTvQVeRQT1P1RhI/dIxI4gbRYyntuRRZRAZwTfQC+TjMOQH5WkaVqQw0erq sFQswl8Bth27rCpE2qGoj0PmBWhYJDRQaA0UQOxOzicH5oWbweYj0P3MmKpak5BYI67WRSf/kf DgeAEBNYfHfgJSxnE1MFifaxVNNwnjvS1MmQDSSkiZnlWVWG84ZZfRaT/Q2BxiBy9gmnOitFs3 ZIk= WDCIronportException: Internal Received: from usg-ed-osssrv.wdc.com ([10.3.10.180]) by uls-op-cesaip02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 11 Apr 2022 06:03:32 -0700 Received: from usg-ed-osssrv.wdc.com (usg-ed-osssrv.wdc.com [127.0.0.1]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTP id 4KcTYt6D7Mz1SVp2 for ; Mon, 11 Apr 2022 06:03:30 -0700 (PDT) Authentication-Results: usg-ed-osssrv.wdc.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=opensource.wdc.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= opensource.wdc.com; h=content-transfer-encoding:content-type :in-reply-to:organization:from:references:to:content-language :subject:user-agent:mime-version:date:message-id; s=dkim; t= 1649682210; x=1652274211; bh=GonxJXSP5Jp3Xd7YM5AlvcGjeaM6Z6X6GgW rsHdG9Yw=; b=uOG3e7awlyrhX10tYSqVxTqB52BuS6mHzh9d9Fw8N3z1pJ2MJOb 6en0NLwtDpvYkwtSOt4ypp6WMh0NyJB2Ux5EnMb9LVDLvDlQT5ttcscr7lEOFe4/ 9osknsfdRqwhNKGkUkEz35M7K3VTddIE+7BRxt2NXPzSYE64IAb9+assY+K5XDEr P3k2wj0Zj/aEm4B31udF1UxxZjlzLfRKMTYjsdJcpuDW9Vla2ke7QfMyqcw9tA51 sSZAtM5W3yB7MK+LTAVm2RHUmZAzOUOg6p9V/4JiP2+F5B3FYPTFLdLISryRlQih 4/ief4Fg4713T2aNFj9KoPMLB38BkSa1lFA== X-Virus-Scanned: amavisd-new at usg-ed-osssrv.wdc.com Received: from usg-ed-osssrv.wdc.com ([127.0.0.1]) by usg-ed-osssrv.wdc.com (usg-ed-osssrv.wdc.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id yiKz_y1NTWKf for ; Mon, 11 Apr 2022 06:03:30 -0700 (PDT) Received: from [10.225.163.9] (unknown [10.225.163.9]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTPSA id 4KcTYr3pcLz1Rvlx; Mon, 11 Apr 2022 06:03:28 -0700 (PDT) Message-ID: <382133db-7a90-6092-d3cc-3c4f5d851838@opensource.wdc.com> Date: Mon, 11 Apr 2022 22:03:27 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH 17/21] ata: ahci: Add DWC AHCI SATA controller support Content-Language: en-US To: Serge Semin Cc: Serge Semin , Hans de Goede , Jens Axboe , Alexey Malahov , Pavel Parkhomenko , Rob Herring , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <20220324001628.13028-1-Sergey.Semin@baikalelectronics.ru> <20220324001628.13028-18-Sergey.Semin@baikalelectronics.ru> <2f873143-eb45-e652-063d-615d63055401@opensource.wdc.com> <20220411124126.wnfykivcvtllyua6@mobilestation> From: Damien Le Moal Organization: Western Digital Research In-Reply-To: <20220411124126.wnfykivcvtllyua6@mobilestation> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On 4/11/22 21:41, Serge Semin wrote: > I beg your pardon what convention? Is it defined in someplace of the > subsystem docs? If it's not then how should I know about that? These > are the device-specific macro. The static methods below are also > platform-specific and the standard kernel coding style doesn't specify > any rule about that. Moreover the most of the AHCI glue drivers (LLDD > like ahci_mtk.c, ahci_ceva.c, ahci_brcm.c, ahci_st.c, ahci_tegra.c, > ahci_xgene.c, etc) use the same prefixing style as I do here. Finally > the prefix reflects the actual device name "DWC AHCI". So if there is > no subsystem-specific restrictions I normally define the prefix in > that order for the sake of the clarity. Look at how other ahci drivers have named things. That's the "convention" I am talking about. Most of them name things ahci_xxx_... Same for macros. > > Note I don't mind to convert the code to being the way you ask, but if > it's really the AHCI-specific codying style convention then it would be > very useful to have it described/advertised in some place in the > kernel so to know about that beforehead for the developers reference. > So do you insist on switching the words order in the names prefix here? It is nice to have code consistency in the naming. That always facilitate grepping the code. -- Damien Le Moal Western Digital Research