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: 13714253 Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3D4BE1494A1 for ; Thu, 27 Jun 2024 11:39:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719488399; cv=none; b=OcrAP++zXC2xzZ1uB2NmoETJC9BiX59eH8s5LqlC+usTAga/VUg+ttJGrUOTk8AjzWCpZKtSYG+sjLdX2Yiym6yAWE2uJu+qpyuNbCyD7K2Cf5EqDBVHRdlFuPkbU+3HLuW/9wyHp/eVzwo2cmySFkRHUmftt3mq5/qnYRCjJdU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719488399; c=relaxed/simple; bh=H2oINYv1RisztMZ/1SAqTZYHs/1i3Urmq4+NkMvMiMc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UUFbP94Ys8PqlAvzc69M3aRxX4vCnrVLtqXip7TsB3pTGkm2xSnlVNOBJAs9ueGFTYT82okL6doCc8M9PqwNwVGzHo6k3SujzqA9IiiRGkXVL9UIeIIFTbcf4+FLtp8veMlvZuzxoSq8IWM7DLjs90RET25HSpKy1gO4W03Nw/0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=Thtjle8C; arc=none smtp.client-ip=209.85.208.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="Thtjle8C" Received: by mail-lj1-f180.google.com with SMTP id 38308e7fff4ca-2ebe0a81dc8so104379311fa.2 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=vger.kernel.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=Thtjle8CV8sAZ48bIIqpc7edKv32ptt4YMAdb8nLauRmRbVzyrF4rAd0bP9wXsv3QP r0l9sY6A4LmbmYizqFVH3nvsSW8Q+K1GRV4RUhpwqP0WtaS1o15S3TfAceDGKJtFaKVR i8vz41XhVaP+YR/484dkjsjVkHTg3jFijCNol1rQ8pRRLYquDEdYaiKPQyeOrxvzWk3Z LX9G56MHG4E9AMq39rugx17tjoZsBurACY5DdWVSwvPO98apD72uvm+05eFk2wrSaJfn SKn4LM/bm7P3alUpJF42+JTs3nEh++eX4yDgZna4IrdL4BN+6RsN+QA+Jjb3STxxoB74 lNzA== 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=M5Tzs1i5fZ2EsZi1j8FrkGcIL0ziMqVk3EDD46Rc5YCqCRVAB0lFI0l7YBRW+0DBYV Pxq85JDF65NQffzrxw3MRdEZvXN0DM4o3Bn8VJAE9cRxNxhgWf1gVtgoUFU52wpPHuFW xcNK2EI7of5mXIplqGYfIBYHP/mmH+fpXpN3pRJFJWgVFvx1W3895x6PmqrkxaFlamEM EH3RMoD5ARaxAcnw1u/mbjg8lHYLhjDZPN4qTezdNU9IeQ61JPP0YQ05ClEfbIJOxprG iMP1Xp9ooyIz85eolvP2i1jmTKfbr5AJIAwUUSHEGwRwHoiiunIUCPv6k4WnDr7I4Ugu oEvQ== X-Gm-Message-State: AOJu0YwJq/PiOTAKR+fpSl9uW827JuJ32nPwUctXthS3tcPTcTgv3x9U geyQTT7DcXUSrpWm75OYHd0NNmPuFpmcq8l8AzWDsRTz5vhlho2q7HrPV0UfThk= 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 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.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(+)