Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1240725rwb; Tue, 29 Nov 2022 10:42:30 -0800 (PST) X-Google-Smtp-Source: AA0mqf6PCaa5xjRupqPWUA47rJ1C3SJ/ikqXZxPuWpk2djbKeWuro3gMbgtvZRJBJ9rSeiSdbqc2 X-Received: by 2002:a17:902:b613:b0:179:c436:4528 with SMTP id b19-20020a170902b61300b00179c4364528mr43858422pls.102.1669747350401; Tue, 29 Nov 2022 10:42:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669747350; cv=none; d=google.com; s=arc-20160816; b=EJL9PjM13PpUBDyJda8WjENdP8WBTvnohSOMOFE8VUAb591I3lqVnQBWtZjW1IKaJd rOOSrAfgjHjq7lEMa2oGq2wSoVF5PN/qgQh/CNGoIMv4ERZcEcO75xISEIgpmA0QYOdK O6oPQRCYjB247SMmMcyeOn4FcexciirZtyRl33BvKLA1lhItYAhUUFXhEDuBwdTOfUnl 81POn3EvzDgb9UC/2YlkVfc9vLCLXHdeNlxzxmCR1Ez/EH8q3iIWxT5Er6/WjycxpdSx R3cTDmGpnsPI1c03QCPNDx8gzq5ZKRA7Ru5rhaZePBcPf/YKijYfpCzTf+9OAW0g2pox 3/xA== 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 :message-id:subject:cc:to:from:date:dkim-signature; bh=N+A5TNfl6KPPW6pHsEzNuigJ2jpPqkQmCU2Sxca3Jpo=; b=czv1WFbyTmY616zAHv4a7ugjrEXlnKwhrVsAtnHEo4c84FEt2gv6/uZ5OyqFjNiG5v NaGMda5j7D6CsalmJ1qnqrwU8q0QiR4WU5LUlmMFWqhnvE5JWCYi/7X1WoZaJFx4ZMTT crmQ/YITZ5rn4KIe4phnxibJ8Ru569nSxCe4N41e1//IHonifXCwoAL25n4hniYNvrWv WFT0AoYZqbt/pJiRAh2yYi4yeZxOElJAJo/I7+b8t8d93BAOtS+tb0PKrF/m7Ozuh+2Z pI9S+5bzZYxqRXjp2RLNmqYMAqPagAB7R2bUBH6nShTkTlUxoo4fbBv0WLLMhR+eGqTU EpLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vDqzkdJb; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y71-20020a638a4a000000b004785400ad55si1004682pgd.423.2022.11.29.10.42.17; Tue, 29 Nov 2022 10:42:30 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=vDqzkdJb; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236019AbiK2Sft (ORCPT + 85 others); Tue, 29 Nov 2022 13:35:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235761AbiK2Sfr (ORCPT ); Tue, 29 Nov 2022 13:35:47 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 424C04B982; Tue, 29 Nov 2022 10:35:47 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D9D03B817C0; Tue, 29 Nov 2022 18:35:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 651B3C433B5; Tue, 29 Nov 2022 18:35:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669746944; bh=fbQH4j08U1ful5CJFqNWUrgI0E0LWc7WjkdOchpGdgM=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=vDqzkdJbrOmenpuFzaWfjlmsDjJTMleGqzEcYW5cYhJg00PQwOuHwyOhijfE/MeeN wV+7mkJwwEYHTHcofg6H6WFnTdGogKE8cORv1Ge0LAAno7/r+j4cdU2V675ZSa4iFx YLqE2/iKpo0GK6bRNs8uXFOdcoLQXoBN20BwqGG+8C1oBCzrTxLItE+XF1QUIHoiEP 2lqb0AQTSEi/OkK5d8CBC29jtNUpvdqhkLasStquq970/d3AamhOw8U05vm1Jg738C Z/Qvna6Hh3O7LGySyH/ukLRy7Q1HhAqcX7EKXkL2wGyVr6YeeF/mDaIK8f4KkeAjEg BTplrl5OuxQyw== Date: Tue, 29 Nov 2022 12:35:43 -0600 From: Bjorn Helgaas To: Serge Semin Cc: Serge Semin , Rob Herring , Rob Herring , Krzysztof Kozlowski , Bjorn Helgaas , Lorenzo Pieralisi , Cai Huoqing , Robin Murphy , Jingoo Han , Gustavo Pimentel , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Alexey Malahov , Pavel Parkhomenko , Frank Li , Manivannan Sadhasivam , caihuoqing , Vinod Koul , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 17/20] PCI: dwc: Introduce generic resources getter Message-ID: <20221129183543.GA729294@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221127011005.cjzcd6slb6ezy7ix@mobilestation> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Sun, Nov 27, 2022 at 04:10:05AM +0300, Serge Semin wrote: > On Wed, Nov 23, 2022 at 01:44:36PM -0600, Bjorn Helgaas wrote: > > On Sun, Nov 13, 2022 at 10:12:58PM +0300, Serge Semin wrote: > > Thanks for these new generic interfaces in the DWC core! And thanks > > for the changes in this patch to take advantage of them in the > > pcie-designware drivers. > > > > Do you plan similar changes to other drivers to take advantage of > > these DWC-generic data and interfaces? If you add generic things to > > the DWC core but only take advantage of them in your driver, I don't > > think they are really usefully generic. > > Could you be more specific what generic things you are referring to? I > am asking because the only part of the changes which is used in my > low-level driver only is introduced in another patch of this series. I asked because three of your patches mention "generic" things, but I didn't see any changes to drivers except pcie-designware: PCI: dwc: Introduce generic platform clocks and reset PCI: dwc: Introduce generic resources getter PCI: dwc: Introduce generic controller capabilities interface I hoped that we would be able to use these to remove some code from existing drivers, but if they only improve maintainability of future drivers, that's useful, too. Bjorn