Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4478482rdh; Wed, 29 Nov 2023 02:38:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IEMF9/jw+TyB7Gb5o2XFVcohxkYqwq8mcms95ErpmK557yoXKc3fs1hZm11WAsNzVv0dyY7 X-Received: by 2002:a17:902:cec4:b0:1d0:265:6a2c with SMTP id d4-20020a170902cec400b001d002656a2cmr4058002plg.11.1701254323700; Wed, 29 Nov 2023 02:38:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701254323; cv=none; d=google.com; s=arc-20160816; b=fSfeLz3M+ygQNFBwYYrG0l37BSYV2eDawCHqFbzGEMiEUCadSS4b/WPTS4Bkf7IAZE cZKIXleGPtvcjO7E3hPC75xTYzZWLZXTyvuyEVRT+9hKTDEEcrIGF1yGGUiRZlpSjigN 9v2T+EeXPMvqKtXUI2XOu6zXLSDJT3alC4ZAC/Tw9Zp11HydVgIx5uzs/RobfBfn5E9G j4iQfmmdBGroSEvh7jZVpEXDeFI6+qIVuhoGkf0NhHFqrc0336actZ8aNJQ4JqFT6cnk fTXkOyxTX+VZqoEuW30WIXOg2SHbtEc/APvalX2A7a0RDjV0j8wrCf20WqngXUlvJ1MW 7A9w== 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:subject:cc:to:from:date:message-id:dkim-signature; bh=YVL5H5p6npDvqHk3KuIbfLoOW3Jt9rDFhXjL2FY1/7A=; fh=floi/2IuV1Qum9ifTQSOvf7MUhMRHRs0awnS5YABf+A=; b=ArXA9uPMpiTTrlJC2A1OtwoYhD++/u3XTi+Ch2ctWqDRNyLo/THF+AUPqXA9CrYdqx kTjdnQa+Jc46NgK0NB01Si6Gr3LLMBHMM9bMKndkRaxP1qxnsD9UNbI3DZd9yx2zGU9B L9ViyTicw6nr7pEjZNnGg+s+Mi1b5V9Pyo1bnPMpAUBcl/g3hpioVuaRkkW9cml0kPC4 H3bhuZCu1z68YZsbyB8al3ZT1iWDKUjZiQeCy2P4dSI0kUrYN4Gcwu1CvKfOAjwY2oev /V87GQTVWpd2Hb1uu9mp5SZH+TpC3OaiwB1LTr+lWiLHqhA20r9uZrSNW9zmZIyZj7UU 55Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="aC/TSEwY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id l12-20020a170902eb0c00b001cfbd011ca2si8294440plb.110.2023.11.29.02.38.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 02:38:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="aC/TSEwY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 321A280511AE; Wed, 29 Nov 2023 02:38:41 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230009AbjK2KiL (ORCPT + 99 others); Wed, 29 Nov 2023 05:38:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231622AbjK2Kh4 (ORCPT ); Wed, 29 Nov 2023 05:37:56 -0500 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB94C1BE8; Wed, 29 Nov 2023 02:38:01 -0800 (PST) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-40b34563987so4416105e9.1; Wed, 29 Nov 2023 02:38:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701254280; x=1701859080; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:subject:cc :to:from:date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=YVL5H5p6npDvqHk3KuIbfLoOW3Jt9rDFhXjL2FY1/7A=; b=aC/TSEwYg2ct+BswmB+zs6laCh3+AXJQaAaLOjfV9uLb0AfxUfjW/a++6FaRDcJguh c4hjXMbYGywmEkHwWMfoE8fdAhnLWT5B8taaqx3CLE1fnznXEUVGM/OgGsOT0ZFqxQVW j7iccUW11F4x7XscRR/eLDoj5xjrNghytZ8tXFA5c9BbPIFawKrZyDXyviIxSCClPnPO v94gqrSn8ZLNNm0UI05WmuliYLSJcEZzzJU/oGt5IgRbFoBy8UjNC4wB/B9wjUrQtyYN y/FddduyWAWonMVwPqdKC1YJOJKMuZgraduvrKVYZm5mBGFBVCPVFEZ01Uhfx5cowcul SRUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701254280; x=1701859080; h=in-reply-to:content-disposition:mime-version:references:subject:cc :to:from:date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=YVL5H5p6npDvqHk3KuIbfLoOW3Jt9rDFhXjL2FY1/7A=; b=to6MUvXz28dbD6oYEP7qIdD4rDe2kaJV15EXPW9a+VaP177UO4otfhzlgTrm0pIq0T v9OBHcXnwXs5CujIBz2Xk+WEY28qSGEb+B/5Q+diWnwYdzZO0m1+GXnz//TAUdU2GmR4 gps51hSlm8qdkLGdBSDcdyQvGn9OXzYW2MZgL5Kn3cdlGp8vhWJ4/uPz318YnLkBv4Wb 40hAxBRO3FazwhlVsHCbae4xVft7BMT+pqImnEbyI7mAJs48K6Zp1uqE7+GRjWLe7O6A 7OaXHTWDYbXaBdSFSt08bjEt4yYkQ3+STF9dZk9dQzldIat2l7ijGuDvGZWt+ntPuhA5 nPUA== X-Gm-Message-State: AOJu0YxwrccsGRTvnh34jGRAHL1Cap3glZdun4w+l3j4HXlnfOsVQvK7 DDigWcAePhULzRvpoUyMZGo= X-Received: by 2002:a05:600c:138d:b0:40b:2afd:1a9 with SMTP id u13-20020a05600c138d00b0040b2afd01a9mr18428597wmf.15.1701254280093; Wed, 29 Nov 2023 02:38:00 -0800 (PST) Received: from Ansuel-xps. (93-34-89-13.ip49.fastwebnet.it. [93.34.89.13]) by smtp.gmail.com with ESMTPSA id j7-20020a05600c190700b0040b43da0bbasm1711731wmq.30.2023.11.29.02.37.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 02:37:59 -0800 (PST) Message-ID: <65671487.050a0220.dae78.45f0@mx.google.com> X-Google-Original-Message-ID: Date: Wed, 29 Nov 2023 11:37:56 +0100 From: Christian Marangi To: "Russell King (Oracle)" Cc: Andrew Lunn , Heiner Kallweit , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andy Gross , Bjorn Andersson , Konrad Dybcio , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [net-next PATCH 13/14] net: phy: qcom: deatch qca83xx PHY driver from at803x References: <20231129021219.20914-1-ansuelsmth@gmail.com> <20231129021219.20914-14-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, 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 pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 29 Nov 2023 02:38:41 -0800 (PST) On Wed, Nov 29, 2023 at 09:53:00AM +0000, Russell King (Oracle) wrote: > On Wed, Nov 29, 2023 at 03:12:18AM +0100, Christian Marangi wrote: > > diff --git a/drivers/net/phy/qcom/Makefile b/drivers/net/phy/qcom/Makefile > > index 6a68da8aaa7b..43e4d14df8ea 100644 > > --- a/drivers/net/phy/qcom/Makefile > > +++ b/drivers/net/phy/qcom/Makefile > > @@ -1,2 +1,3 @@ > > # SPDX-License-Identifier: GPL-2.0 > > -obj-$(CONFIG_AT803X_PHY) += at803x.o > > +obj-$(CONFIG_AT803X_PHY) += at803x.o common.o > > +obj-$(CONFIG_QCA83XX_PHY) += qca83xx.o common.o > > These PHY drivers can be built as modules. You will end up with several > modules - at803x.ko, qca83xx.ko and common.ko. You don't mark any > functions in common.c as exported, no module license, no author, no > description. common.ko is way too generic a name as well. > > Please think about this more and test building these drivers as a > module. > Had some fear about this... What would be the preferred way for this? Having a .ko that EXPORT symbol or making the PHY driver .ko to compile the common.o in it? Honestly I would like the second option since I would prefer not to create a .ko with shared function and EXPORT lots of symbols. On SoC it's expected to have only one of the PHY (at max 2 when the qca807x PHY will be implemented, with the at808x also present) so the size increase is minimal. (just to be more clear, talking about this makefile implementation) at803x-objs += common.o obj-$(CONFIG_AT803X_PHY) += at803x.o qca83xx-objs += common.o obj-$(CONFIG_QCA83XX_PHY) += qca83xx.o qca808x-objs += common.o obj-$(CONFIG_QCA808X_PHY) += qca808x.o For name of common.c, is qcom_ethphy_common.c a better name? -- Ansuel