From patchwork Wed Feb 5 13:27:26 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Russell King (Oracle)" X-Patchwork-Id: 13961059 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE47FA32 for ; Wed, 5 Feb 2025 13:27:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.32.30.218 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738762058; cv=none; b=ThRVR76bmUkDGPGcKtFU1wvjPFDO9fAkKIi+YSqdYaXsSgLEIKyX2jEKJqkYZV2D9YpP+DjlwRkdIUfZd4Vux77HWGjanBSCrfoc8YBSMTHvAUc56Oos4WOegqlaYl9W/+jWCEHa1vpfZAD6CBFM/8LGbXzeCsXLmPBFfIm2k88= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738762058; c=relaxed/simple; bh=Vo4cnXiBDUBPImuFFbKfMdQHW6DjrHpEgztEDffhZ0o=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=qPMswaTqRhmWhiglvf6aeOZKOf7LWnCRxPczDvaTz3dNMjduAmQbR32KVDznY5HRHFhT9wAvju+bY6W2e6CuMBNrkMQrd9pIzYcXGwpjybTWk2RubyazQG3O/90nlkvCfr0BQapxzmy04iwRJfdBATVvAPq2l7L3aHYnxrNFSvs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk; spf=none smtp.mailfrom=armlinux.org.uk; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b=ijV5S+jG; arc=none smtp.client-ip=78.32.30.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="ijV5S+jG" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:Content-Type:MIME-Version: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=mOzH6N5N8CxYb3sHLKiz2r68AolXAO89k1+za8HvcYY=; b=ijV5S+jGuPwrCPU3h/hKQ5UGrg wS5S8oyivMwyCebczIQHxWGtbS9AidZE6lOUoWXtP/v6s7gK1kVSxs14wbSatKINZYhkzQUsAbD2k 2R2glTJYSFM23fG9UroFgjEsYw2R4hewXXGj5Hxzxl3rszvhXhz55TGsgBKQkv7NO1zVahz9PRbl/ E2eDePhs//i0b6zjJayRTVG98b9j1S/G7ICZGzFU3IRCHVX3qSVhKMJo5udHqOAHVVp7plLPOfjO6 4rXy8bjwH6i+UpmZMDjV1IH03tqvLEgQXqYlrrQLDq4AaYmiedOxX96ZtgmXj+5l4sl0V/vNWadDJ 8LkgN0Fw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:37244) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tffRB-00076R-2m; Wed, 05 Feb 2025 13:27:30 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.96) (envelope-from ) id 1tffR8-0002RB-2u; Wed, 05 Feb 2025 13:27:26 +0000 Date: Wed, 5 Feb 2025 13:27:26 +0000 From: "Russell King (Oracle)" To: Tristram.Ha@microchip.com Cc: Andrew Lunn , "David S. Miller" , Eric Dumazet , Heiner Kallweit , Jakub Kicinski , netdev@vger.kernel.org, Paolo Abeni , UNGLinuxDriver@microchip.com, Vladimir Oltean , Woojung Huh Subject: [PATCH RFC net-next 0/4] net: xpcs: cleanups and partial support for KSZ9477 Message-ID: Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline Sender: Russell King (Oracle) X-Patchwork-Delegate: kuba@kernel.org X-Patchwork-State: RFC This series cleans up the TXGBE configuration for SGMII modes, and then extends that for KSZ9477's "manual" mode. Finally, we add the necessary settings for KSZ9477 to work with 1000BASE-X which should cause no issues for other integrations. Work for Microchip to do before this series can be merged: 1. work out how to identify their XPCS integration from other integrations, so allowing MAC_MANUAL SGMII mode to be selected. 2. verify where the requirement for setting the two bits for 1000BASE-X has come from (from what Jose has said, we don't believe it's from Synopsys.) drivers/net/pcs/pcs-xpcs.c | 64 ++++++++++++++++++++++++++++++++++------------ drivers/net/pcs/pcs-xpcs.h | 28 ++++++++++++++++++++ 2 files changed, 75 insertions(+), 17 deletions(-)