Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp790259iog; Fri, 17 Jun 2022 13:48:02 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sQhj0Ven6F+HVsMy0fmnjIUxMhPS7zp1H1ABfxWNcOtjtlSxkhh0v2S40nNpgSgeg2c+ig X-Received: by 2002:a17:902:ecc1:b0:167:74c3:55b1 with SMTP id a1-20020a170902ecc100b0016774c355b1mr11360827plh.108.1655498881929; Fri, 17 Jun 2022 13:48:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655498881; cv=none; d=google.com; s=arc-20160816; b=unpI3lI0H1bnvQFC4oy8RoeYW9S8E5YzIM5fqWgW0KZEfxnZxw2W1Vaq5y18hqogQs 3QESOBvzLaOEe66nefSP7akK8TSSfisc4ERIipFdNum4qo+q7yv2m4nrf140EtDlt+bj 3wdZaVm+ApvxmPXxP8pYmMMMvvLFSzwVNQZiXDq15G+SWYNohp78BH8rx1b2NFo18Zd9 3tz0M71essLfl4dwGfWYyVufVbC2vUtyGRfLTj7PJq+lyItqczzTyHH4NO/HBbtmGbOJ x2jUvGdwc8F3qpDzGvgg+5ldX54Hc1deTC2ajv9Z/CFHgZgIk2O2iPOKcbeFtDlY5atb L4cg== 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=oISNlUz9ZficuYsPA/Qge/7xO0eNE7k8Vy/EmxWpRmI=; b=abbr4RqskiWCLwXu2jhOvUbgU5kcLmiSfJtmqy0VZE43Ma/MBJgk43h67XVilu/0Pg p+l2TXYYGD1suFZnywIsdnZOFmnL6Nl8B1Qwfn04KMrVYBldasGSSWdOUzO7z36klV1M TLrCdr+9SWybpXPHZ4HbWf8vO+aXWUNCQWiSMn5pryTyCPqR9mJGqgzfTjZAli5HGeFR OqaV7AjCbMNFE7gtj6zgLFZIaU90AD+XOCs0Lnx6+sefBbUiNf5mQfw5i8vUSs3/1DnT 66GYmH8P8YgHbX9ntEAyYNyR0sXdBYMV+dxxJjElvi2CiuYXsXLLp6U4KmD+QpXednyz Gnwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cPydoDo5; 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 cq11-20020a056a00330b00b0050dfc3c58fbsi6754742pfb.5.2022.06.17.13.47.42; Fri, 17 Jun 2022 13:48:01 -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=20210112 header.b=cPydoDo5; 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 S1383425AbiFQUkL (ORCPT + 99 others); Fri, 17 Jun 2022 16:40:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350359AbiFQUjz (ORCPT ); Fri, 17 Jun 2022 16:39:55 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D40CD6B029; Fri, 17 Jun 2022 13:36:57 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id be31so8529870lfb.10; Fri, 17 Jun 2022 13:36:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=oISNlUz9ZficuYsPA/Qge/7xO0eNE7k8Vy/EmxWpRmI=; b=cPydoDo5WZvGMR5+LSnh4cU2jc/hWCi4BCd0UK//fM7ymk/dflR8sjrxE89dsaE2I0 TUsmJdTNRYD0rsLiY3DJH1VXacZGP5SqrlYNQXxOCAHCgCyCEr/0nSo1SroaNxcbalMV z+JXmlYqa4ApElo1U8JMmSrXirGuKiNO9tVeXwwfP1iU+Y8aRZUMYZkI+NY4gslnwFuQ XS/WL9qaHffT6+f2eV2yx1T+F0hm90sG8MIZdmXVpFyBiybpeAXK4CSfRAJRhFAYQoKo P1myqMugwjwhykwPB1+Fi1TsHr+sHSx2AAggonGQG6hPcmN+UwIqHSYDow7sE2qt8Eg0 7G+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=oISNlUz9ZficuYsPA/Qge/7xO0eNE7k8Vy/EmxWpRmI=; b=RS/0oDQ1547YbbMTUC1jZmuD7Cp3iwWNX7eVQ6giLt7L3a7pG5edHCRdOo2NShgwAz XS1xlrxeTDo1IZuH5HalwrjoBrkDQs3RhFGC/6vIB6ZNLbWnZaCr3fVJupItSzY8FesH sncVVVWFnUYr7y4IuvlT9xWgce46S8u+jevWzXSt5LXn9FugJsO9Repne7rzdifXbYGp wgcK1W31jqBBeZhDbFvgguz9DN76uKRSP8qV6kqngNHxxgZQZZsG9wQLoIX1U1tGP0TQ +Us3w63In/KvZALz3HZ0LCBytOzh1nq0/cfUG8MKZjv7brXZvoKJfM3gJbh/rJsk8/+o U3MQ== X-Gm-Message-State: AJIora919EvZ0ZbojV9/zSo2tS/Jetd8bFTrZcRXNjNlKXsr48T4Ztgb MlLcabjmNwGnW2mUHx5IO4s= X-Received: by 2002:a19:a417:0:b0:479:15ef:4ded with SMTP id q23-20020a19a417000000b0047915ef4dedmr6476478lfc.225.1655498211994; Fri, 17 Jun 2022 13:36:51 -0700 (PDT) Received: from mobilestation ([95.79.189.214]) by smtp.gmail.com with ESMTPSA id o1-20020a2e7301000000b00253bd515f88sm627825ljc.68.2022.06.17.13.36.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jun 2022 13:36:51 -0700 (PDT) Date: Fri, 17 Jun 2022 23:36:49 +0300 From: Serge Semin To: Damien Le Moal 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 Subject: Re: [PATCH v4 19/23] ata: ahci: Add DWC AHCI SATA controller support Message-ID: <20220617203649.wa2b3etx6gpm3s5g@mobilestation> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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_NONE,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 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. -Sergey > > > > > -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