Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1130577iog; Sat, 18 Jun 2022 01:17:10 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s7vNGNQdN1aOpLDg6My+fvwiqvKii+8XXHlSz3rZ4E0pA3/NwiwQHxo0+Y1NQtEtfPZTgJ X-Received: by 2002:a63:135b:0:b0:3fd:876c:975a with SMTP id 27-20020a63135b000000b003fd876c975amr12649421pgt.538.1655540229882; Sat, 18 Jun 2022 01:17:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655540229; cv=none; d=google.com; s=arc-20160816; b=wyrnOGbwJlv+FLKTAgSxw9IFG02xK6ljWkR2u71ofHOgLrkihVBaLM9S2b2JLjtX3l 7Ir516TgZ1k6wmaZcqg2mIvpNxoIENDYB1fRKj83N6BAl6w86jrCMImnC/JV4KRWEFGZ cOoyzMl8fzPwvFx2yZx9AV1RAtGeQ8EFhXtzGbRx5omquqMEXiMJcK2qFMapTDO/LYW5 kFW5cG9glt+yuHuYmx7L14gr6Jns5+ZsQ1rr3ucsMMPCu3K+O+uA/iwmMreE3LPjQOd4 R/vJbLiuobLXmBfQtRe7e0m/nqnGgmcMBuMOqdva7UQilHwVkjxk1nTK+EawfhtZGLSg a9Gg== 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=wV13HopHGlFn27RS83ORCJVlwtLFjQkjit6y83brROg=; b=ELOwcv6G7E8fF4jG/gevZCkG5BQUcmQEbFtSxT1y12+BEf5htr4llvfTuDNJK3ARtl rXgpXbbEChocb5LI833tNXKxvxAELDt7f7t5xkJvZU0BXgmXPoThf+vzX9D2VWNoPq0J 6aBMtN5v/sLS0/j/jkK9J288d/ti6HUX+BF4xnzzPf9qOIwh5kb1Gov3PLdoo/Itgg8S bppad5nPV/y/3zGCWK7PJWufRHm7TPha5fptq8uCVHWNlbJBObK5tp8MhOZGAR/Ffwn+ sfII0iaZK4a9uaw8smFQIo+aORgrFBUuYdqTRLsi+65LX+VX0LAwHzzKvYh01Cc7v+Ee j+0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=p6VpgH8y; dkim=pass header.i=@opensource.wdc.com header.s=dkim header.b=pKJhH2iF; 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 i10-20020a170902cf0a00b00168ef343fd7si8708503plg.274.2022.06.18.01.16.57; Sat, 18 Jun 2022 01:17:09 -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=p6VpgH8y; dkim=pass header.i=@opensource.wdc.com header.s=dkim header.b=pKJhH2iF; 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 S233512AbiFRGym (ORCPT + 99 others); Sat, 18 Jun 2022 02:54:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233315AbiFRGyh (ORCPT ); Sat, 18 Jun 2022 02:54:37 -0400 Received: from esa4.hgst.iphmx.com (esa4.hgst.iphmx.com [216.71.154.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B635A28E0A for ; Fri, 17 Jun 2022 23:54:36 -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=1655535276; x=1687071276; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=+6bmdYR8RDV7Rai4MRodjarsFAmrM8zJ0RVsVV2+CCE=; b=p6VpgH8yZGCagNZw17RzM//lpEMrlAPWpqsa3fvnjPhex+GNZDMvtNe3 XDLeE1pGLUznchvjwqt7dOySW2bFrEjLWwOPTqQIDkMZTD/MRClsg7tZZ frQaTvKR1VBL59f5qFHa8vptX2IdN8g7NVXiSL3pUHX+FbnAn7PTix3m8 FpP+hE/vGvmlA0/soMDG7JuLmixxwAKj/JI5agbZvZepN0zAKqnAof/wG PQa9gKF4tWAxn7WN7zcUwNbeF4R+rGe0aOk7ILZV7t1m50qX9HnY3zhoC Rl8ruzyb3IsC0SmiQaKD2XN0W5VNRDU/+lDLTbRTjtpF9470/NSSqyAr2 A==; X-IronPort-AV: E=Sophos;i="5.92,306,1650902400"; d="scan'208";a="202203490" Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 18 Jun 2022 14:54:35 +0800 IronPort-SDR: /o/NMscNo+7/lG8n8VvJA1WqT0U1dWeQZfXFgWIpwwOkv694kWEvA98eSAvu39BMd6LBFRI5HE Nei1xJbPvD8jRAulOCfIyRoJ8lEmRpB+l1i6LXXfDIrINfb0RGl/ZAmvoflWF+GpXxuM9mgHfd pGY77uxxyKqITV+zB7ePxcqnwy2AcfK7oxKD+A0nknTEU9j/iA03KGFZTu0IkERWtzt2sFS+kw HsIYJHIBUTuOs0ruDcxpKZMUSBtp2n0uya8mxpGueJ77E3Gbapif5hCKFq/yhUVxL2F2/5YYEU 76wLjTQdOPwXcesxU3+c7GdV Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 17 Jun 2022 23:12:46 -0700 IronPort-SDR: 1OEvgMs1TPsFZ+p6Z9R5IkB02HXkKjxiSdX4SeXF0FvdiDiIlkwmaUFO19/YALd4dG0TtEq5AQ wHwfgq/n/CDDGI8mX4/rEPm8VMUmxLw6g/nrEoOnPvZmfbNBN64iSPjO8F7dDk/uazU/kn3EDH qGrTroBQKPxSiPjcC7EeUorXNRiOSCg9t8jXT20l4fEN5RTLwraWnK8V/JgkR37xeB6W0ISnrs TMNeFcRlvPt29N+fNbLXu12w/be+3lcpPJyq0y15kPcTInVUVIXJ5oly+KKhtoE07zLEcyTroM wGk= 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; 17 Jun 2022 23:54:36 -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 4LQ68q08zWz1SVp4 for ; Fri, 17 Jun 2022 23:54:35 -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= 1655535274; x=1658127275; bh=+6bmdYR8RDV7Rai4MRodjarsFAmrM8zJ0RV sVV2+CCE=; b=pKJhH2iF8UOgOTx2Qeafz7q4FMyajYT0Ko/rfBb4hEmxrzfLg+A iM8H0itRWP4bycB0wh1ftrw6HEz9PGn0lNYyHq3wwTWQGOxUupmyIC8WVMgn6FeX qnQhG6sCjH5CdfQlzRekJrDHVsQOHZv0d3ZRcTtzt0APu3Pqm6RCIu3eKcDtw1Zh f7nSjcDpby3oZeL/wB6E495bYzBY2GbxhWgGywYnsy8q6wAEFKHUy5IFERi0PBrN 42LBROzTCnn/Mx1kTA+tNy5Ra/BZJJ3rlh2zEEgHU7AsAceNHHwPi2sWDqaLS78r H+6KPVL1SZyNwjoVKufkihTmZaK1XZb7X9g== 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 oOfVhUcthEYk for ; Fri, 17 Jun 2022 23:54:34 -0700 (PDT) Received: from [10.225.163.84] (unknown [10.225.163.84]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTPSA id 4LQ68l4Cd6z1Rvlc; Fri, 17 Jun 2022 23:54:31 -0700 (PDT) Message-ID: Date: Sat, 18 Jun 2022 15:54:30 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; 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 Cc: Randy Dunlap , 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> <20220617203649.wa2b3etx6gpm3s5g@mobilestation> From: Damien Le Moal Organization: Western Digital Research In-Reply-To: <20220617203649.wa2b3etx6gpm3s5g@mobilestation> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.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 6/18/22 05:36, Serge Semin wrote: > On Thu, Jun 16, 2022 at 09:31:30AM +0900, Damien Le Moal wrote: >> 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. > > Ok. I'll be waiting for you reply in this regard the before > re-submitting the next series version. Please send a fixed-up new version. I will use that to look at builds and config dependencies. -- Damien Le Moal Western Digital Research