From patchwork Thu Jun 27 11:39:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13714258 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 45CD1C3064D for ; Thu, 27 Jun 2024 11:40:59 +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=ZbI7/sd74idfi/XMipln9/gNNA6hsJvdqtzVYepkGFg=; b=FAXKpeIlAA1aDD0KnSLVzcKyP7 ivswBFfQD8yPh6JIKkOpHyLXb5npsc5lYhn7UZCTdlSH+T0+thhby0TjYwhC9AfIzDeZL9z6av4o3 B1afN5LN+MXKdOPptw4V+eAnEhnRgmZ3uK4ZzuxYBQnwsDSeUOpylF8ueTCiIFcMXDs2Z8JqkYsh5 3Lucmrf8KRxIRs+A0cv0OE91frBRr4C9E5cS4N8U+5HYFQ/r/OQTKs4q22MAwCDrOAgKXvkiCfsXV EOTCucHZr+7kZnDMAj4kCsyszfxhpj3R6KVd5zAf2tQt9nhLKfmZl41UOiqFVM7wyefgFS0HoSUeu qSib0Zsg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMnUS-0000000ABtV-3CVY; Thu, 27 Jun 2024 11:40:37 +0000 Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMnTt-0000000ABiU-0X28 for linux-arm-kernel@lists.infradead.org; Thu, 27 Jun 2024 11:40:14 +0000 Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2ec5fad1984so65825691fa.0 for ; Thu, 27 Jun 2024 04:39:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1719488396; x=1720093196; 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=ZbI7/sd74idfi/XMipln9/gNNA6hsJvdqtzVYepkGFg=; b=IxfMEcZMkve7F8ofb7HjiqesB3epkkEcSYoJDPm3S9DBIGsUxuJxT/AVU0SF9Yj2Yg L1MWo/us/zDy8l1ewhpQBQQHn7uCf7d8U9yD6EyN67QssZmyO3uAN0FQF09dU3mMVoOp RkKvVSVolIONeEFW3JeZao0M1oyskUBnHuvMkdcKg2Mfj4AUf5OjBlZAt6KJk4noyJE/ lFE5kbKcnXJBLV9SQ8UjNfYVEFZdCATVtMLRrHNNz/3oXCigoCQb114QEaSyNlk8Rb9H TgcgfTpiKCP7oc7Gmkbhcb93q7ePWpXVErFlU2DUVb7/+XShJ0fuHO4eti9cLxVYi8ft WCqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719488396; x=1720093196; 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=ZbI7/sd74idfi/XMipln9/gNNA6hsJvdqtzVYepkGFg=; b=SG5B4fBz6PWtkfIrxOaeYemWQ0m2RhHwwRSoPVDZpyDL5MsX8gE8jIbEJ4P6UEXbLO bNsx0ylFr8s5jgaX3QfqmsSSikfTsvasM0jX1yG3tRSSZyDbDHnLOi1YT9NtE5WZNL3i XkVx2zMevc3X0Isto7nlrQ2gSXwgmJ01Eko26SASkQkuUy25OHm9H/9AZYn5mSAB7LJk qFZLoialGq8BMMy+zWgwn49nzp8gT9sT6TQ5Tp6QyNIOW0rlWk3QTeXMUB1hdsB8vcdr 21zBR7BQMvYwWJIRucLgtVTzpEz5DOvSYNIJiLq2cKIhlLJx+oG2eQxw32qutgicyFP9 G2mw== X-Forwarded-Encrypted: i=1; AJvYcCW6zujzGbC1Mg9SpkqJH42o0Iwn7tJV9eARRiVX8fyI/qXXO2YOssUfTr/RyyAkPWMtI2hMSxrVxKR1ZXuP8OLWH9OUtiisTcMH+NpQ6vYCJUflrzs= X-Gm-Message-State: AOJu0YyFdMRLAirYQydbTsn+tyC+vjlwfS8FIiWmOkaT18D1on4vxQxB ZvPosX0mPu1oMA4gYNc+wYhTkmYl9HTJWYOD4lIvkg95zWuQq68Z1tdxAa3LBLM= X-Google-Smtp-Source: AGHT+IHFDzARAto2HLAI3TxjHyub50L0O0Jnjrz9yXwhDePCwserMcflGKVLOY5zTOX5jsXXhqzpcQ== X-Received: by 2002:a2e:a442:0:b0:2ec:5019:8fa4 with SMTP id 38308e7fff4ca-2ec7278a341mr44969421fa.49.1719488396147; Thu, 27 Jun 2024 04:39:56 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:dc:7e00:7fe5:47e9:28c5:7f25]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-424c8468613sm62081815e9.39.2024.06.27.04.39.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jun 2024 04:39:55 -0700 (PDT) From: Bartosz Golaszewski To: Vinod Koul , Alexandre Torgue , Jose Abreu , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin 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 v2 net-next 0/2] net: stmmac: qcom-ethqos: enable 2.5G ethernet on sa8775p-ride Date: Thu, 27 Jun 2024 13:39:45 +0200 Message-ID: <20240627113948.25358-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-20240627_044004_623876_73FAD68F X-CRM114-Status: GOOD ( 10.20 ) 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 Here are the changes required to enable 2.5G ethernet on sa8775p-ride. As advised by Andrew Lunn and Russell King, I am reusing the existing stmmac infrastructure to enable the SGMII loopback and so I dropped the patches adding new callbacks to the driver core. This no longer has any build-time dependencies on the PHY changes so sending it out separately. Changes since v1: - split out the stmmac patches into their own series - don't add new callbacks to the stmmac core, reuse existing infrastructure instead - don't try to add a new PHY mode (OCSGMII) but reuse 2500BASEX instead Link to v1: https://lore.kernel.org/linux-arm-kernel/20240619184550.34524-1-brgl@bgdev.pl/T/ Bartosz Golaszewski (2): net: stmmac: qcom-ethqos: add support for 2.5G BASEX mode net: stmmac: qcom-ethqos: add a DMA-reset quirk for sa8775p-ride .../stmicro/stmmac/dwmac-qcom-ethqos.c | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+)