Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp709544iob; Thu, 12 May 2022 03:02:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLEo4HV0FZDhpL11g+89AuuKLIyv50NLVQoFmR6YX6IIEol9XaxVKwuDP2449Djo6pZlMd X-Received: by 2002:a05:6602:25d3:b0:65b:1d8a:a8ae with SMTP id d19-20020a05660225d300b0065b1d8aa8aemr7246865iop.131.1652349762646; Thu, 12 May 2022 03:02:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652349762; cv=none; d=google.com; s=arc-20160816; b=C/CGv6Z3BqGEOvTotAuOXVxN8iLNigUAaZWcHBe29trakEEV5a2MHr/vGk0xvq6w3U q6exG4u5F3vdrgjiLbid7EMX3lNZJaBGI83yQUjIg13WnZM1Sai6yAp7Auy3AnQuDvgx KFXDehMp5EK7JPEzuhEYmqcrdU5/3W6oRxS1qHxclsy7o2x2z+91UY7eJXEQtnUVE14C gAIYgdojhUEThyt4UxtTDZ3u0vbwfGxOY4ZT1fMMApa/YgWJ8/258CenpUlAQe5gw1Do TC5m7SAcBNSptPMd/b7na12Z2iX0LEtRjKL0zUYnROtMw3JhtcqcOo5TdT63aPLhONWR IxyA== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=N3SKGREacY/VZBxYZlWA43Qo1T3ZVt4EPSxKDt+TYNo=; b=LZQTXwXGyJDour6bogNbUMr7hRIjvCK5DLgeqYCQNIcQUgJHc0p3KMjN130ZpGRBtz 7OdF2GYgm684hT7OO5+GYlxbdkm3/DxOwkB66jleZax+UEvhvgOhWtW9X4CbWmnwet97 EI3EW90W3QuYNSINeio2/pULs0zJw+ZMGZX6J6nMmkEtFKTAvwwEkcnSaKLcg/vZ8KFT b0MnyKUctKRqKkuAImQRWRR4OieKztFtyJGWdvT9/PYNUpqpNj+/LI9NAFYRDGPw680J khzwU923EBaUCj2MGnXwSS88KiCTf+XT9Ap0TevLwMocCV30EEpNSY3yrk+xtmaK3vfd vRuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=tK6l9WwA; dkim=neutral (no key) header.i=@suse.de; 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=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q17-20020a0566380d1100b0032b0603d504si6309753jaj.91.2022.05.12.03.02.28; Thu, 12 May 2022 03:02:42 -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=@suse.de header.s=susede2_rsa header.b=tK6l9WwA; dkim=neutral (no key) header.i=@suse.de; 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=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344414AbiELHMx (ORCPT + 99 others); Thu, 12 May 2022 03:12:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350793AbiELHMu (ORCPT ); Thu, 12 May 2022 03:12:50 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01B2A663F1; Thu, 12 May 2022 00:12:48 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 3C01C1F8FB; Thu, 12 May 2022 07:12:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1652339567; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=N3SKGREacY/VZBxYZlWA43Qo1T3ZVt4EPSxKDt+TYNo=; b=tK6l9WwA0S3PYmB83LyohRnziZGNdrjikwc2NiSvkj9v/02/UHhKq6906sz9EWoIs24eD7 6/bfR5jEhcqo1FzFJQEBOvt4KA8craSSf1sHtjUEjXHVZssxZZjSbvWZr84jhNhDFYzb9Q PJEvOpQG627Vr8dQ1G5Q/s8TGqzyxrM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1652339567; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=N3SKGREacY/VZBxYZlWA43Qo1T3ZVt4EPSxKDt+TYNo=; b=bIHsZks6iw/+lICFtztoZf/xNSAVEqTUNvof1oyPQL9oiyWayPAIFVyqGQDn9jCBdHI4J0 BWJ7nDDFbMFi6PCg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 1951213A97; Thu, 12 May 2022 07:12:47 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id KGCpBW+zfGJEYAAAMHmgww (envelope-from ); Thu, 12 May 2022 07:12:47 +0000 Message-ID: Date: Thu, 12 May 2022 09:12:46 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 Subject: Re: [PATCH v3 21/23] ata: ahci-dwc: Add platform-specific quirks support Content-Language: en-US To: Serge Semin , Damien Le Moal , Hans de Goede , Jens Axboe , Serge Semin Cc: Alexey Malahov , Pavel Parkhomenko , Rob Herring , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <20220511231810.4928-1-Sergey.Semin@baikalelectronics.ru> <20220511231810.4928-22-Sergey.Semin@baikalelectronics.ru> From: Hannes Reinecke In-Reply-To: <20220511231810.4928-22-Sergey.Semin@baikalelectronics.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.1 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_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 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. 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