From patchwork Wed Jun 19 18:45:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13704441 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 58D20C27C53 for ; Wed, 19 Jun 2024 18:46:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=Q803tOePwccb1h2zDMiIz3ozPcAah2s1cv6FSztbWf0=; b=m+/+UFU8WpYKLEwFnJFC3p7P85 7XwuvGg71UJO0nF9AZr9W49yCZM82mVZyJXFhxbTeJmoep+j2d5wu+2m2S6vFNgr8CnApDcGOvf6c bcMtsI6o4RXup7sGAAGmG7A52gI2nSAD0YgrBk72qrGtVll2OHgewDxk8wE8XVv/dk/Dq2UkDZZyz JmPGGH/nz7Z2il7SWo978btgIDogrrnyH2WtgMpNQpo9nPUaUpfjIVAaGNy2JJGzA//KItySalRPD 3RCt4vCxej2RZhlq9Re4J3yIhP2vkl5d3BO+tpf3FYFaGd05mRcdHY9QpINv483pBwRtyCn0LiaYM 5UJ1neFw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sK0Jq-00000002QSJ-1Rrk; Wed, 19 Jun 2024 18:46:06 +0000 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sK0Jn-00000002QQn-3DXe for linux-arm-kernel@lists.infradead.org; Wed, 19 Jun 2024 18:46:05 +0000 Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-35f06861ae6so67560f8f.2 for ; Wed, 19 Jun 2024 11:46:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1718822762; x=1719427562; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Q803tOePwccb1h2zDMiIz3ozPcAah2s1cv6FSztbWf0=; b=mcRrSIXUD2KJoTbHFzgv9VItp6qDdFMkOyYYq78qB+h02R6C1WQTTirPMTdh+pUzb/ Af3yEd9yz05FeS2IOT+qEiuozRaGYJl7/sP5iBMOTYKQaV8YjtT6SAoNZTR9fwuS+yYk ZBG0oa7mhYapWVXBYyv3c75lx3rrP9uPGAl9vmWmvyaVGPJ7yl61xy/YKmfr4U3vcnWn 8Vga8sKbnhTvvEosQ/WVf4pVhmgoINak/hQGrKLOZ8SkwQrxFInF1w9w6CbC3l1dafAP q/6yFqQ8HRmgnhOkwiGnCmzF8wam3IqlrniSh31lXWof5SDC1aAuVxrvrQE2S0uGn6Qy Eb2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718822762; x=1719427562; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Q803tOePwccb1h2zDMiIz3ozPcAah2s1cv6FSztbWf0=; b=qRrTlXz+iNuBYt82zCRi18TEB4AWgiiMEvgGAKqOK206HY3Wj+Tr5nT+h95iPVGyT4 wyZHM8BUDUHyPuIazfJQyGiQp7sFg7hH3cRSM7gYKmetDXUes8MTUwTaFZHtufTZSSE4 mld3bZXO53LIyeuifQ0PffEM5fNgtY6Oc4dA2pOeWCQ/TzjiFWEZM0iN7reUpvt9Nq73 6gG2xAz+c5VKZA9kiJMBK46hgaUPAUK6PhMAML3aH55UzGr38DPkPlQUpDMj4cleyL7a rBTg2VCa8xVUE5sLLSHm7aFsWlx30qFKBuwIHsCjSi8nEAStGcFWfHDc0gluuWnt9+Is akMw== X-Forwarded-Encrypted: i=1; AJvYcCV3CGN3v2KT391yCEisuviqstvjIu4DZW8OEges1sWFdOBVukU/vnQso3jUbvUMPZp95nJZg13v4PrnYfJOfyK3Wyb0zDJjmgGpk4Mw0vCkzV7ZrO4= X-Gm-Message-State: AOJu0Yz99iRySy/Daf0zjvkKiOiLUTwoIgxFjZ12RtmmVHqV8abgDp4t fvxAO2BNbLFEGV0zH8UUDkJICUUNWxq5WLWx17mWT6YHIgovUk4IZk45wtOldA4= X-Google-Smtp-Source: AGHT+IFWT+3bRELnyfZyXWx5RSUNx7IO660yuwGioJQSIgOSEIf5ViL1XqpqGrTP8TUu85sQWpkvPA== X-Received: by 2002:a5d:43c9:0:b0:35f:d6e:f7bd with SMTP id ffacd0b85a97d-36317b79cabmr2407085f8f.29.1718822761741; Wed, 19 Jun 2024 11:46:01 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:dc:7e00:991f:deb8:4c5d:d73d]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36098c8c596sm7594156f8f.14.2024.06.19.11.46.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jun 2024 11:46:01 -0700 (PDT) From: Bartosz Golaszewski To: Vinod Koul , Alexandre Torgue , Jose Abreu , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Andrew Lunn , Heiner Kallweit , Russell King Cc: netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH net-next 0/8] net: support 2.5G ethernet in dwmac-qcom-ethqos Date: Wed, 19 Jun 2024 20:45:41 +0200 Message-ID: <20240619184550.34524-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240619_114603_852091_665D34C8 X-CRM114-Status: GOOD ( 13.46 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Bartosz Golaszewski The following series introduces various related changes that allow supporting 2.5G ethernet on the sa8775p-ride board. First two patches add support for the new SGMII mode in PHY core and the dwmac-qcom-ethqos driver. Next three introduce support for a new PHY model to the aquantia driver (while at it: fix two issues I noticed). Final three provide a way to work around a DMA reset issue on the sa8775p-ride board where RX clocks from the PHY are not available during the reset. Bartosz Golaszewski (8): net: phy: add support for overclocked SGMII net: stmmac: qcom-ethqos: add support for 2.5G overlocked SGMII mode net: phy: aquantia: add missing include guards net: phy: aquantia: add support for aqr115c net: phy: aquantia: wait for FW reset before checking the vendor ID net: stmmac: provide the link_up() callback net: stmmac: provide the open() callback net: stmmac: qcom-ethqos: add a DMA-reset quirk for sa8775p-ride-r3 .../stmicro/stmmac/dwmac-qcom-ethqos.c | 44 +++++++++++++++++ .../net/ethernet/stmicro/stmmac/stmmac_main.c | 6 +++ drivers/net/phy/aquantia/aquantia.h | 6 +++ drivers/net/phy/aquantia/aquantia_firmware.c | 4 ++ drivers/net/phy/aquantia/aquantia_main.c | 47 +++++++++++++++++-- drivers/net/phy/phy-core.c | 1 + drivers/net/phy/phylink.c | 13 ++++- include/linux/phy.h | 4 ++ include/linux/stmmac.h | 2 + 9 files changed, 121 insertions(+), 6 deletions(-)