Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp71112rdh; Wed, 22 Nov 2023 18:56:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IGANowKPTkfeD24UppzO4VNHJHPc0JmmF2Ix/ZWd56GfEidEkmtbInMQRWYNcmVB1RuA513 X-Received: by 2002:a17:902:6b0a:b0:1ca:abe:a08b with SMTP id o10-20020a1709026b0a00b001ca0abea08bmr3739786plk.68.1700708186301; Wed, 22 Nov 2023 18:56:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700708186; cv=none; d=google.com; s=arc-20160816; b=oGBRa3SCkFQsOYm5mzTrVNhmtf69FZE1FRUcq4fy9vyRxtjzjXQ9TFKlFliIutTAkV R4MEIfssR/att0zrhX10yrDGFq4r6NJI74JFAqquAGTXTFNvU07wwZRTRIsJArugzjUE qCIDm1lM1Xd0+81f+OlxpEOBv7jj9lt6JPi1fx8/McaUrlCinVEogH5QYb678nfoo4h5 bz9NwFQ7ABU5958tAxU87ldawX8TnKcBeAQ2wk5jZ2eJRAppcSTQwXK8dxC5EoTviJnU VpTs+Z4f46sYyEuFgMpTt5I0qi0Klr71Jc+kwk1hZKmPRomRd44TAkg+2a6ZQYWZj+T8 duqg== 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=OquazO1sQ+hlt6OacUFPeKJSQFcf3TbpH59OwUObgWM=; fh=+k2ac32NMQohGfx41aqcCJ8a0dRKeYTq2xCKQy0sbrE=; b=o0ZHVP7Ya/a+NGva2xpgvp4mWf8mloDniQIA1apEiQZUFfLO6O2KibpFIksXFlNYAU kZ4A7U9YPbbnODrNdCvEHZgeT/Nphl7l/k56VczdI5QaLaolNSEb+HGPJnlYYFAAmJgx P/wzYSC554C/eE8oIksTnnf3ekFIjm8sOW8FJMGUACYBTDKfwzUZTiXa5KBbxPuKDOPU gM+bZeglxEnGt8sfBng2yQBrPNrVWRLd5ngwN6UiG0rlOJpP+CFCDzsc8lYR8Pn7oVHt 1yWA/YCfeBvYmPJ/OqTMkSr2V9qLz2RmLMEYHv7DMgpV0o2dWQHFqnM/fF2osZbPmGvS dkQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=XdfIfnjM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id x3-20020a170902ea8300b001cc7c07930dsi239556plb.104.2023.11.22.18.56.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 18:56:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=XdfIfnjM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id B9755807C874; Wed, 22 Nov 2023 18:56:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232736AbjKWC4J (ORCPT + 99 others); Wed, 22 Nov 2023 21:56:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232584AbjKWC4H (ORCPT ); Wed, 22 Nov 2023 21:56:07 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1375B191; Wed, 22 Nov 2023 18:56:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=OquazO1sQ+hlt6OacUFPeKJSQFcf3TbpH59OwUObgWM=; b=XdfIfnjMs+I9Gtt2YRBuDhmDvE sstglqcfCEaaKc4H/4cQ1cJ4OyJiR8/BZYJG4V30j9LTaXp+kdB07rOVdGulo8um3Rka7Q4AbB8XN J48VPuxoeeGD8HzpzAR/AcadbwIKSQKvmEZqiH9Q/4CxbbZ+czYZpG3UjuDWWpda52ac=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1r5zsi-000vyt-3E; Thu, 23 Nov 2023 03:55:56 +0100 Date: Thu, 23 Nov 2023 03:55:56 +0100 From: Andrew Lunn To: Christian Marangi Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Bjorn Andersson , Konrad Dybcio , Heiner Kallweit , Russell King , Florian Fainelli , Broadcom internal kernel review list , Daniel Golle , Qingfang Deng , SkyLake Huang , Matthias Brugger , AngeloGioacchino Del Regno , David Epping , Vladimir Oltean , "Russell King (Oracle)" , Harini Katakam , Simon Horman , Robert Marko , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [net-next RFC PATCH 13/14] net: phy: add Qualcom QCA807x driver Message-ID: References: <20231120135041.15259-1-ansuelsmth@gmail.com> <20231120135041.15259-14-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231120135041.15259-14-ansuelsmth@gmail.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 howler.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 (howler.vger.email [0.0.0.0]); Wed, 22 Nov 2023 18:56:24 -0800 (PST) On Mon, Nov 20, 2023 at 02:50:40PM +0100, Christian Marangi wrote: > From: Robert Marko > > This adds driver for the Qualcomm QCA8072 and QCA8075 PHY-s. > > They are 2 or 5 port IEEE 802.3 clause 22 compliant 10BASE-Te, > 100BASE-TX and 1000BASE-T PHY-s. > > They feature 2 SerDes, one for PSGMII or QSGMII connection with > MAC, while second one is SGMII for connection to MAC or fiber. > > Both models have a combo port that supports 1000BASE-X and > 100BASE-FX fiber. > > Each PHY inside of QCA807x series has 4 digitally controlled > output only pins that natively drive LED-s. > But some vendors used these to driver generic LED-s controlled > by userspace, so lets enable registering each PHY as GPIO > controller and add driver for it. > > These are commonly used in Qualcomm IPQ40xx, IPQ60xx and IPQ807x > boards. You need to justification why this is a whole new driver, rather than just extending at803x.c. I did a few quick checks. The Downshift code is identical, once you take into account the different names. Interrupt handling looks very similar. MDIX looks the same, and Specific status looks similar, etc. There are clear differences, but i think there is enough identical code you should be sharing it. Andrew