Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1186737ybt; Sat, 20 Jun 2020 03:33:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzh6FZrBUuz4Z3Lv/76us92V8FSYL1qmeTxkNyhf7zpyTN+sLWwAfVRYPXretfeauANXQhL X-Received: by 2002:a17:906:5e08:: with SMTP id n8mr7441854eju.132.1592649237781; Sat, 20 Jun 2020 03:33:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592649237; cv=none; d=google.com; s=arc-20160816; b=gfpKXbKsuE1ZC77YIZ0jZwHdPMKh9LiMe69zwGdaG1xl8nuTxZAAqrU3qobFrV2HiF vMrjQB2+xZEUBxv+hw2A97cSBKh6FeJ4lq7Bl1BSbQFJ9hIJDwVJmbp+7WbKHnTl+KlV myZB9mMKSdcuHqwQj96WGszjW2cuGCnj2arolwpDMTRjqwDgO+X64UMoXWa6+cVu8XqY +7+GUp3aMHsssF7td4G1XR0js35hhPQdqBRC9URgPeoRN6R3LpJpwi401/OROAB3X4rM 9nSRt7SQGJjEBbV6oIS9f9tT8BcNQLjKlA7ysW2WMq0tdpTf4LKqZqr8ibAdW8y8wXG3 5FHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=DzAgpAOZLOM7f+2C2NYrc6NoYekk/Q+a1E7XT1PA1jE=; b=JxqMj21+aYOVKwQ1h5CvjvTxaHETjwzcMy+CiPEO9R1BnwWmWxlJe0QSht4UEyOVLW kOrLbJDhKPVzGLE6jQokiNdfxcqFZfw6nzyu71nC5ffTzurpo+2oiGnTjG+Zc+6TCGj0 hle9Pkxq2jR4/Mv+E6pJjBWRUf6g2KVH7YM73D4wZwSnankTqW+59hBSAKT+LEIvcfQg k8bo5fxioh5JEU6YkHFF+Sp4nwq0qaRydCHCyRltF32GqNbP3k/o1hfTICB0H8eSyTFF 6eg5yRp4gvoUv5XdR5Ha98Dk4PATk+46NaegogREYtPTsIQF0VEYRS1RSe9Bp8Uk+23n tGuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@earth.li header.s=the header.b="I32YmR/G"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u23si5105513eds.526.2020.06.20.03.33.35; Sat, 20 Jun 2020 03:33:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@earth.li header.s=the header.b="I32YmR/G"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728002AbgFTKay (ORCPT + 99 others); Sat, 20 Jun 2020 06:30:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726065AbgFTKad (ORCPT ); Sat, 20 Jun 2020 06:30:33 -0400 Received: from the.earth.li (the.earth.li [IPv6:2a00:1098:86:4d:c0ff:ee:15:900d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 280B0C06174E; Sat, 20 Jun 2020 03:30:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=earth.li; s=the; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject :Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=DzAgpAOZLOM7f+2C2NYrc6NoYekk/Q+a1E7XT1PA1jE=; b=I32YmR/GknVIbL66bEJLdSOvv5 EvI5imvkGhippXrgNAjM/K4bcX0OYR3RmPg8MLyFxGDa7BeEBQdxG4ole587G3C4DEVw8o1p6WO/g xhUSsAjNp7N+F/MIv4X/zZ24oJcYhKCVvp/o8p3S4kel9BDjyXF9s9eYxSdd17YW8BJt/mBaprSjD Agf0PCCMBnHeEgp8wmt55EiQxZnugTCM5W/W4oIvw728AgzK0OzFcO2T8v99zPPAFDsu0Ta0VHD1u cJcIQHfHjj0v7wotYIIr//v6mNYMeJO6n+kS2MJ7kF3E5nKderh5kGKl7jQdLd4oqsaKkWq08wydC OC1WW3oA==; Received: from noodles by the.earth.li with local (Exim 4.92) (envelope-from ) id 1jmal9-00048D-Gp; Sat, 20 Jun 2020 11:30:03 +0100 Date: Sat, 20 Jun 2020 11:30:03 +0100 From: Jonathan McDowell To: Russell King - ARM Linux admin , Andrew Lunn , Florian Fainelli , Vladimir Oltean Cc: Vivien Didelot , David Miller , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next v5 0/3] net: dsa: qca8k: Improve SGMII interface handling Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This 3 patch series migrates the qca8k switch driver over to PHYLINK, and then adds the SGMII clean-ups (i.e. the missing initialisation) on top of that as a second patch. The final patch is a simple spelling fix in a comment. As before, tested with a device where the CPU connection is RGMII (i.e. the common current use case) + one where the CPU connection is SGMII. I don't have any devices where the SGMII interface is brought out to something other than the CPU. v5: - Move spelling fix to separate patch - Use ds directly rather than ds->priv v4: - Enable pcs_poll so we keep phylink updated when doing in-band negotiation - Explicitly check for PHY_INTERFACE_MODE_1000BASEX when setting SGMII port mode. - Address Vladimir's review comments v3: - Move phylink changes to separate patch - Address rmk review comments v2: - Switch to phylink - Avoid need for device tree configuration options Jonathan McDowell (3): net: dsa: qca8k: Switch to PHYLINK instead of PHYLIB net: dsa: qca8k: Improve SGMII interface handling net: dsa: qca8k: Minor comment spelling fix drivers/net/dsa/qca8k.c | 341 ++++++++++++++++++++++++++++------------ drivers/net/dsa/qca8k.h | 13 ++ 2 files changed, 256 insertions(+), 98 deletions(-) -- 2.20.1