Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1042165iob; Fri, 13 May 2022 20:46:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwoWzvCFz6eO73aGTc2hV7I2YTs/3NbroyA36aZJ1PFpICQZ8VZ7MppWKMQKqvHpctW78Uj X-Received: by 2002:a7b:cd97:0:b0:38f:f785:ff8 with SMTP id y23-20020a7bcd97000000b0038ff7850ff8mr17291267wmj.44.1652500018296; Fri, 13 May 2022 20:46:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652500018; cv=none; d=google.com; s=arc-20160816; b=OMDv0aZ5bDIG/S0h1R4s3r6LCskT3JaopEYmm99qUwkX77PjR9z/m3G2ugy6iv2kCF VqwhzsJFBozUuRjji6Xsp+RjSJSXTgfDi6nqxmFNF8O0YhT4rR6nT5Bo0zuIGOhMitPJ mKDKQFVCEDUqI0daTCoKqiv0apB6y/Ov/RSRFgAYx/N1tJiFpQfwNxTVLPkXzSLMf8s0 p33D9IPO5oTff0a0oScL1vsQ7l1OGUXQkicht7RX/uRNEo+kJ3IlDvfArRe6SNx7rQkx UAhqgxqSyiD6IEFSte+/QMMeN0v4AuT9DB2xybOWk0uSawHKH2+qcJR/7zimitdcWIN5 Jbtw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=gLe5l9DAolzLphi8/wPvIZln9njciDHas8G30cxiyRE=; b=HVZFE6QXVCRzb+Vju3TfWFLzzCZFOBkLMGqlrx9lJN6LVIBcExt3RZVTtIUoTr6nMt jd3DXa7Ro5siO95PiyeDgjDnmIKYfJJ7cx7ExqPLvJiPS/Z7n8HjyOBPy7yJChwxF5gx FWa8Lfg8fx6iFJDvfGAoGyKNN4S7Sp6J/aUfsD557VXys75vWCQioZasKWuNIELmpDDc 1rd5H80uTZ9xLahrTrxLd7zPsRTZbssBhq+oHfKTVoFpYdoZZX+rOWud96KTy5ZF+roy P5gNJnOfZr4vMZmbobNeFKepENcuPMVF2EoGESc033pLOe/5lnZUHHtyZbDvYl0ptKLT YLlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=f+myMvIi; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id t16-20020a5d5350000000b002060b2c217fsi3312973wrv.24.2022.05.13.20.46.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 20:46:58 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=f+myMvIi; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8107F46AB8A; Fri, 13 May 2022 17:20:47 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350766AbiELQ3M (ORCPT + 99 others); Thu, 12 May 2022 12:29:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241673AbiELQ3K (ORCPT ); Thu, 12 May 2022 12:29:10 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3EC760BB7; Thu, 12 May 2022 09:29:08 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id bx33so7146734ljb.12; Thu, 12 May 2022 09:29:08 -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:content-transfer-encoding:in-reply-to; bh=gLe5l9DAolzLphi8/wPvIZln9njciDHas8G30cxiyRE=; b=f+myMvIiz2tjwVtbg/kwFeqyRkKhEUyloCObDSYMuAm4tqelGuM/cpPuvE4abEDHe+ qm+HgiUExaRlIQs4cDQUnEvlh0RUFpxHKSURPyRKEAeQf2AP1iZi8x5Xh8Y3roofRHAD 2iAu3rnA6ggRtCqTCdqaf6WWpko4Q+Rv7Fs1zgnuSkUAmpz6Nc9O7glhWXixIZvYDQvi dQAuRaRUmMj2HLxwtdL+K/g+gfjKPQ80Ai4pn7i/Akk1wptzy9c3TTk5X25l989641OK o0V5oLpfH9KkNs6aoRfAFtdf0KYaTOTT4YZiK4wAQIH0I9Uhozm4kuEg3jnUedPuiWd8 TNPw== 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:content-transfer-encoding :in-reply-to; bh=gLe5l9DAolzLphi8/wPvIZln9njciDHas8G30cxiyRE=; b=O9BpZomNF3I+8+2yd85mQPlAHpnLXt1+wnGOPJUHcQUfSRGGLFbkIolUSdVuZehCtS NPnN4ysNBw9DyZpd1F5vR/aof4crECHraK8aZDoZ4IeIfhAo/xBWtj4mvXHn15DWIgJK gaAkAVYfKZsJhHn3sSsrFWiUNWTtmwVO8xG98H9TWsgoqQjv649uIANwxZcCAuV+hE/l ZdXAoikDgFnC6u8NbQnTPkLooeqyBSUe84erwHxO7nmIvQIn2n2ncaEndSilOk3C2UEG PvHeiKrkp3PeKA/6/D3PXNjcltkWuoD28JXYbkRTqxyACnp5OfghmLsymEH02JCEk9WP fXMQ== X-Gm-Message-State: AOAM531NJTIKtGNXVFW10FxSNyySCbgpDhhb2nkVgNZde1iQN3TW/Avf rnVJj40L3YAkzUiNFZY0SIQapEyJsLIDDA== X-Received: by 2002:a2e:9556:0:b0:24f:1c4f:cade with SMTP id t22-20020a2e9556000000b0024f1c4fcademr496981ljh.39.1652372946377; Thu, 12 May 2022 09:29:06 -0700 (PDT) Received: from mobilestation ([95.79.189.214]) by smtp.gmail.com with ESMTPSA id n11-20020a05651203eb00b0047255d211adsm2738lfq.220.2022.05.12.09.29.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 May 2022 09:29:05 -0700 (PDT) Date: Thu, 12 May 2022 19:29:03 +0300 From: Serge Semin To: Hannes Reinecke Cc: Serge Semin , Damien Le Moal , 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 Subject: Re: [PATCH v3 21/23] ata: ahci-dwc: Add platform-specific quirks support Message-ID: <20220512162903.ehqrbqm5wngznwjl@mobilestation> References: <20220511231810.4928-1-Sergey.Semin@baikalelectronics.ru> <20220511231810.4928-22-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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, May 12, 2022 at 09:12:46AM +0200, Hannes Reinecke wrote: > On 5/12/22 01:18, Serge Semin wrote: > > Some DWC AHCI SATA IP-core derivatives require to perform small platform > > or IP-core specific setups. They are too small to be placed in a dedicated > > driver. It's just much easier to have a set of quirks for them right in > > the DWC AHCI driver code. Since we are about to add such platform support, > > as a pre-requisite we introduce a platform-data based DWC AHCI quirks API. > > The platform data can be used to define the flags passed to the > > ahci_platform_get_resources() method, additional AHCI host-flags and a set > > of callbacks to initialize, re-initialize and clear the platform settings. > > > > Signed-off-by: Serge Semin > > > > --- > > > > Changelog v2: > > - Change the local objects prefix from 'dwc_ahci_' to 'ahci_dwc_'. > > (@Damien) > > --- > > drivers/ata/ahci_dwc.c | 52 ++++++++++++++++++++++++++++++++++++++---- > > 1 file changed, 48 insertions(+), 4 deletions(-) > > > This really could be merged with patch 19; as you're adding a new driver you > might as well fold this patch in to avoid further modifications. That merely depends on the development approach. I saw and reviewed not one kernel patchsets introducing new drivers and adding features one after another. Moreover there is no kernel patches requirement which would constitutes not to do so. In this particular case the modification isn't complicated at all thus can be reviewed as is. -Sergey > > Cheers, > > Hannes > -- > Dr. Hannes Reinecke Kernel Storage Architect > hare@suse.de +49 911 74053 688 > SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 N?rnberg > HRB 36809 (AG N?rnberg), GF: Felix Imend?rffer