Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp996003iog; Wed, 15 Jun 2022 17:49:39 -0700 (PDT) X-Google-Smtp-Source: AGRyM1si9JWE04xh8lc6M3tqWg/rV4gK+kiStUdGfIAvV+25fUQufumdw8FE9kDbuPJy/ESZ8RhL X-Received: by 2002:a17:902:a58b:b0:168:b680:c769 with SMTP id az11-20020a170902a58b00b00168b680c769mr2396041plb.32.1655340578722; Wed, 15 Jun 2022 17:49:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655340578; cv=none; d=google.com; s=arc-20160816; b=lswD9kmZgwrh4Q75MCLT9V4mcSBZMeGhWlYlt1eb3HgeNLwfYbXQpKFPwkiwUvq8PA zCu7xz2mFVkqC9ZRi+kGXKFTFm97Wh7BpKl7Jo11ZtDOFVVsMFD0j0eQFrPBiYRSS6Uf HxsioQnbxvUAWHG/G5YK1ex2XZT2H0VOnodiehHmTWw1J9+tb2+0Sqamb1SKUazVO6ge R+097+g5cpwRTSE0pSjRWmSaIKHFU2qn10iHcMo0mR9OTWC7XZyAF0EhuTu6WsSTsfuQ 1T1VIfQZzOWIvGksMbW6Qqut8x05s/2NpT8Wm4XeemfDCpRX0Gxznx45yCLubN9dkfac QxPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature :wdcironportexception:ironport-sdr:ironport-sdr:dkim-signature; bh=vFUuQ1j6epNhmB2gua6B2VwEhrM4Gpd8SLdQJDNhw2A=; b=SOufcJnCymepNugojwFXeaxpmVGiF9bb3BqYuzfod2OVU2hWyRFASUatiZQOiUHSoj O2bUkqHOxeOe7qNdqAbi9flt3WYsdmUtpI35eFAEbV/X2poFuUk66o4GnCf0jKQLmAEs 9VmcgLotdJm+KSsU0xIsLSn50R4+GqHPkbEP2yCZYiVdQ6nTkkNBvaQh/wvx+0ruUogY 1yrVKxhfNNxsegSIJ6jV0QvApC8Z3ooiUOSYzdCbza8IkthcDZ04Lu9+XuJ6uoekEJCO LuVPRF8iqs5XzFJUzzJK0ZAHsKxoCVq4JygOsReJFzqlMLVXIT7w3YczOuQXzonkBUDa zUBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=IxekO1Lq; dkim=pass header.i=@opensource.wdc.com header.s=dkim header.b=PP8LAnE1; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=opensource.wdc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a29-20020a631a5d000000b003f5fa8c55e9si746839pgm.9.2022.06.15.17.49.26; Wed, 15 Jun 2022 17:49:38 -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=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=IxekO1Lq; dkim=pass header.i=@opensource.wdc.com header.s=dkim header.b=PP8LAnE1; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=opensource.wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344002AbiFPAbi (ORCPT + 99 others); Wed, 15 Jun 2022 20:31:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242913AbiFPAbh (ORCPT ); Wed, 15 Jun 2022 20:31:37 -0400 Received: from esa2.hgst.iphmx.com (esa2.hgst.iphmx.com [68.232.143.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F28A057107 for ; Wed, 15 Jun 2022 17:31:35 -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=1655339495; x=1686875495; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=J4Y9wKkt06E+VVt0NnuJS5WQFB9LInYK8Z8767j+vko=; b=IxekO1Lqi2T2xCzqUEhy2ZM9yLCp2GLDhoE2z6+wC++SqX1C7/3bNIvZ rklUUSJ2nsjQqqebapeRhZrjNM/bj5Snx6JeW5MkqeFCOGLpeC2q069/o x7V9D80eh7unKDiPRSGCqUBkcwD+A9rmrrk6YqVPGkmvFpeG2UIucnWJV wP9bntp40YXzcwFLsgvR6MStuSRajR0sT6ZxlAl43+4crvBjABTqX26hB KnemMktG7Yipe/IzUyUGBXsxp34tjp2o12noXDBMVTihSBTwcU4aA8N1T oKS+mW6lNdza5kngyTQ4x8IG/00Azn0+INDtCC+TJJfjtCKC3Z0AE9qTc Q==; X-IronPort-AV: E=Sophos;i="5.91,302,1647273600"; d="scan'208";a="307573726" 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; 16 Jun 2022 08:31:34 +0800 IronPort-SDR: yLuDAgY4VXeWFOpRzczts8mtvLO6C3yLLpSI97qsmr/43wJ+enCAaLjGyw5GNVvKuVW2AR4x/X evOrt7FKdmTO23XB5rF1NFMYMlmG8s72Vmc3VsA6S79ESSN7HhrNP2QLUM0HlNIg8xy5dtRvcd DOhx6+xbrr1Vv29q6vpSzILSk7z/CS5E4Re0FJEBc8buqPXUT11S5vSHEE0wI8q0+vKChU47ai LBhQTN75q4IhOV3GInWIn/PhUcwlm7np7hT8YJvsnNQITZ0+tpipmZQ3UaWwUqdD0I+CHW7K2N qhEvrpBIrWmNik8fLNtRdmM/ Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 15 Jun 2022 16:54:24 -0700 IronPort-SDR: R8ZzmXQxwMNDWcozNb8b2i1mNRygkzKJe9DjpcbhRlUsrYasNqbCbrPTHGztmDaE/9g9C2xjmD 9a55wv9TDct0i7S0b7gqWj9Z2+8HcF/y/uhhB765h/9Ru5sEQaPTQwSJeh2iNHSgfehFUsWxOR 4gzS9TYbklo9VEM0QLmFHYiqgVxndIPRB8xl3UOIY3Is0r1pnkwqLBuPa+nnzqlxdvbzbgTllD wJzPpvMtxGrxYGMIubebeeWJE2B7SMYToD8iWynv4IXp9EbmkcjkLKmeiD5A9ZFVqAUTaro3z4 QQs= WDCIronportException: Internal Received: from usg-ed-osssrv.wdc.com ([10.3.10.180]) by uls-op-cesaip01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 15 Jun 2022 17:31:35 -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 4LNjlp2MvSz1SVnx for ; Wed, 15 Jun 2022 17:31:34 -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= 1655339493; x=1657931494; bh=J4Y9wKkt06E+VVt0NnuJS5WQFB9LInYK8Z8 767j+vko=; b=PP8LAnE1EMtjRy07QVwzbzWvAVqgr/SlOCl7utLfLbHpn7FYlqz OF69rmm2s02I9FqrPvviNgo+SLOpRFFZhhh5dbqr5SyFHKHvWUTiO5J9C8St09ee dhX3R41wI1UkEL04Iod7+QZIWskkJJSNycUkzn0jqqRD+wZWg5C1IbdA9yBPtR2B Xg/BJSOWTA9GkDg7ZoUSvkg2phZHDYRVrkxcc8T6NR8QC53jzvzliv/tIrie0u9C aY3hqeDAsO+wWK7F8gv6t1SZW3um66mIj/8QEEck+pU23X4Wrmsk0XRtibciNYXb jKEVdMvdLV/XZe+HF2hBytKFtlSj/Yu5eRw== 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 XWXDM1XDdPxB for ; Wed, 15 Jun 2022 17:31:33 -0700 (PDT) Received: from [10.89.84.185] (c02drav6md6t.dhcp.fujisawa.hgst.com [10.89.84.185]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTPSA id 4LNjll5zM3z1Rvlc; Wed, 15 Jun 2022 17:31:31 -0700 (PDT) Message-ID: Date: Thu, 16 Jun 2022 09:31:30 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v4 19/23] ata: ahci: Add DWC AHCI SATA controller support Content-Language: en-US To: Serge Semin , Randy Dunlap Cc: Serge Semin , Hans de Goede , Jens Axboe , Hannes Reinecke , Alexey Malahov , Pavel Parkhomenko , Rob Herring , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <20220610081801.11854-1-Sergey.Semin@baikalelectronics.ru> <20220610081801.11854-20-Sergey.Semin@baikalelectronics.ru> <6c02f8ef-8aea-8f80-590d-343f67a96f8d@infradead.org> <20220610215850.ju76kxjquwef6kd3@mobilestation> <73716f9f-892c-41c5-89f0-64a1985438aa@infradead.org> <20220615213029.3upsmasnnhigqozm@mobilestation> From: Damien Le Moal Organization: Western Digital Research In-Reply-To: <20220615213029.3upsmasnnhigqozm@mobilestation> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 2022/06/16 6:30, Serge Semin wrote: > On Fri, Jun 10, 2022 at 04:34:13PM -0700, Randy Dunlap wrote: >> Hi Serge, >> >> On 6/10/22 14:58, Serge Semin wrote: >>> On Fri, Jun 10, 2022 at 09:34:46AM -0700, Randy Dunlap wrote: >>>> Hi-- >>> >>> Hi Randy >>> >>>> >>>> On 6/10/22 01:17, Serge Semin wrote: >>>>> diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig >>>>> index bb45a9c00514..95e0e022b5bb 100644 >>>>> --- a/drivers/ata/Kconfig >>>>> +++ b/drivers/ata/Kconfig >>>>> @@ -176,6 +176,16 @@ config AHCI_DM816 >>>>> >>>>> If unsure, say N. >>>>> >>>>> +config AHCI_DWC >>>>> + tristate "Synopsys DWC AHCI SATA support" >>>>> + select SATA_HOST >>>>> + default SATA_AHCI_PLATFORM >>>> >>> >>>> I don't think this needs to default to SATA_AHCI_PLATFORM. >>>> It might build a driver that isn't needed. >>>> And it's incompatible with "If unsure, say N." >>> >>> Basically you are right, but this particular setting is connected with >>> the modification I've done in the drivers/ata/ahci_platform.c driver >>> in the framework of this commit. I've moved the "snps,spear-ahci" and >>> "snps,dwc-ahci" compatible devices support to the new driver. Thus >>> should I omit the SATA_AHCI_PLATFORM dependency their default kernel >>> configs will lack the corresponding controllers support. If it's not a >>> problem and we can rely on the kernel build system ability to ask >>> whether the new config needs to be set/cleared, then I would be very >>> happy to drop the default setting. What do you think? >> > >> I'd prefer to try it like that. >> If it becomes a problem, we can go back to this v4 patch. > > Agreed then (seeing Damien is silent about your comment). I have not thought about it :) I do not use SATA PLATFORM at all, so I am not familiar with its dependencies. Will have a look and do my usual build tests anyway. > > -Sergey > >> >>>>> + help >>>>> + This option enables support for the Synopsys DWC AHCI SATA >>>>> + controller implementation. >>>>> + >>>>> + If unsure, say N. >>>> >>>> -- >>>> ~Randy >> >> Thanks. >> -- >> ~Randy -- Damien Le Moal Western Digital Research