From patchwork Mon Jul 8 07:50:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13726258 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (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 5C5B6156E4 for ; Mon, 8 Jul 2024 07:50:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720425032; cv=none; b=SKY1HUAqghAun9tz5sUESB++E4bX5wWr697txOjudUbR7PpGmYwMCRE8LcdTY8VaNOFYnKjLsxmzl0lMbG8RwLubxlKD0cjkw3x3Lkl4rI9xk/fMKqwexKlvchh7q4BynjcAiczWBcej/cGDXlPxWl9jFsrs4leyXmNIjVFd98c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720425032; c=relaxed/simple; bh=zlqTiyiSFReaiDoVro5r1Tj6xxCarZuSRspRmcKnFcM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hGEm2nXr8pWiX2N4lNm4aT3+pdP9AfRISdDUTRkektQALjkTf36uRDHL9kq5AFVqC11EwjIV2Cmb3VROXGOjIP3PSzrxn1i+0DhX5T1VK9vxkzbECYQxRKKdBvjaEq/fBZTqXVdqLzRF1UKyH8LZUWSFyHhrx06Py6XMiSfrnss= 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=ScBGe3xI; arc=none smtp.client-ip=209.85.128.49 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="ScBGe3xI" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-4257d5fc9b7so30985085e9.2 for ; Mon, 08 Jul 2024 00:50:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1720425029; x=1721029829; 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=rL5EmpXsyEHR5xbjqSORtM1Tgm1TFK+MLaWF6mslrng=; b=ScBGe3xICf4jsjVwqhrMdU3o8lpMckKla7jGHJ83qMZ3AEeA5HBlbacxsAG04HeSB2 +ijhlXrZ0PsT5m47UtQq0Xawik69p+xMGz+UuJCa8DcgblIpYea9R+cZmdP+ElYKw04i d/dm7wm947wbmvyC7eTPtzegrprA+TTW93CVoQ6dYMXfelpRADJ8nf65wfSZBp5GYlt0 vqcLoYZoH9cW9OfuDO9MuQe2WZ108CaUIK7USBSzoR7nLFEYKMaB2CIo5dEtKAK+rf3l QgC9+SgfTNiAOOipw551bZu3sSCfNF1AtHC2hGNHPjxeCAx/RRV2PQ0V1+hjVBGYrzsA aXHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720425029; x=1721029829; 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=rL5EmpXsyEHR5xbjqSORtM1Tgm1TFK+MLaWF6mslrng=; b=Cw0yJ0LLtrBJ55EPn3kSatwk6o0qbR44I2JkE4C3XRUslNbKFCAhQGV9teSaHK8X3M rzDjPeYX0kRXhmpx2E37P2L7l1XuxZcjoWkw8RHpsS1+cE7ErGKW/Bc/9MKgLeImFazF YvTee8QrgLCMX4qgVgNebolrpk/diP1vBosZuiSvIXGOV/MygqKfR4rnAPPqkmy//FqF WjAK5U4BFb4cn//+hyqdIB+qLuyy74SrdJmimojPLoJE23UeyRa5f7JOx9J81HrfTesp G1JExuPZyhOYV2O4ZV1mStsVDfGgbKsUnMf/Nyr2jKlti9FGsDBYOUsSRfesb3aJ7edY K0+Q== X-Gm-Message-State: AOJu0YxaTVrHh/pv7CSghw25GWv/lMpc+mGbgUCh2o+VJ2NX584P/Heh HamrJvsjsqGOVURAovsomzDnoXBknRrXRiIS/cMpYZMUF5OXxdBk+YzB7ANVQgs= X-Google-Smtp-Source: AGHT+IF8wgRd2T3knWIhdjphcEX1k5ZGI+v30Lz6M0/6seTTCf6NS4sgCajGkmxPTZ7m2e6Ohzxodw== X-Received: by 2002:a05:6000:1542:b0:364:ee85:e6e4 with SMTP id ffacd0b85a97d-3679dd658b8mr13290035f8f.53.1720425028552; Mon, 08 Jul 2024 00:50:28 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:dc:7e00:b5f9:a318:2e8a:9e50]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3679d827789sm10160055f8f.76.2024.07.08.00.50.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jul 2024 00:50:28 -0700 (PDT) From: Bartosz Golaszewski To: Andrew Lunn , Heiner Kallweit , Russell King , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [RESEND PATCH net-next v3 0/4] net: phy: aquantia: enable support for aqr115c Date: Mon, 8 Jul 2024 09:50:19 +0200 Message-ID: <20240708075023.14893-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 Resending rebased on top of current net-next. This series addesses two issues with the aqr115c PHY on Qualcomm sa8775p-ride-r3 board and adds support for this PHY to the aquantia driver. While the manufacturer calls the 2.5G PHY mode OCSGMII, we reuse the existing 2500BASEX mode in the kernel to avoid extending the uAPI. It took me a while to resend because I noticed an issue with the PHY coming out of suspend with no possible interfaces listed and tracked it to the GLOBAL_CFG registers for different modes returning 0. A workaround has been added to the series. Unfortunately the HPG doesn't mention a proper way of doing it or even mention any such issue at all. Changes since v2: - add a patch that addresses an issue with GLOBAL_CFG registers returning 0 - reuse aqr113c_config_init() for aqr115c - improve commit messages, give more details on the 2500BASEX mode reuse Link to v2: https://lore.kernel.org/lkml/Zn4Nq1QvhjAUaogb@makrotopia.org/T/ Changes since v1: - split out the PHY patches into their own series - don't introduce new mode (OCSGMII) but use existing 2500BASEX instead - split the wait-for-FW patch into two: one renaming and exporting the relevant function and the second using it before checking the FW ID Link to v1: https://lore.kernel.org/linux-arm-kernel/20240619184550.34524-1-brgl@bgdev.pl/T/ Bartosz Golaszewski (4): net: phy: aquantia: rename and export aqr107_wait_reset_complete() net: phy: aquantia: wait for FW reset before checking the vendor ID net: phy: aquantia: wait for the GLOBAL_CFG to start returning real values net: phy: aquantia: add support for aqr115c drivers/net/phy/aquantia/aquantia.h | 2 + drivers/net/phy/aquantia/aquantia_firmware.c | 4 ++ drivers/net/phy/aquantia/aquantia_main.c | 40 ++++++++++++++++++-- 3 files changed, 42 insertions(+), 4 deletions(-)