From patchwork Fri Feb 23 22:24:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Justin Chen X-Patchwork-Id: 13570117 Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com [209.85.219.178]) (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 D9D4A14DFC7 for ; Fri, 23 Feb 2024 22:24:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708727089; cv=none; b=fGwfsTRbfh+GNAnosu7ODtODE8OrSU9SeSKaNFcW3Tf4CkfWaFKJpb+eXSigTeK5cb9Tat0a+N9Ka4O3GFiZRQR54GEUDu09THE9JUqf6dGpKu77ouTTseLYo7ZYcg9h9Mtg2MDOb2+TgA4DF+N0DoxwuWyIbTGzCt/XfLLlCZ0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708727089; c=relaxed/simple; bh=s5R4SlkED2jpvv9iZzlccGwThh9+2NdeSBsWcqB6x4Q=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=sxMGUu76Sq2aPsK7XdX8JKyvaOzaQTtG+I21/SYvDDL3FJYRYIzYWRV/q0TySW/ZHharJ5qbvb+psjJG7BA1trywx+GmjjNWIc1BiZyfrLr24DN3FrIJqGkUvTxtp67ZuUVWSDVUbVStjNclN4LpeEfyIh42+JrGMZMtwSCLr1w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=EAupxnVw; arc=none smtp.client-ip=209.85.219.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="EAupxnVw" Received: by mail-yb1-f178.google.com with SMTP id 3f1490d57ef6-dcbd1d4904dso1017330276.3 for ; Fri, 23 Feb 2024 14:24:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1708727086; x=1709331886; darn=vger.kernel.org; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=9GES7gWbyjK2jgu2sHnPsguLcqQgx3QEvbdMLkIo2sA=; b=EAupxnVw17EtV43EzRYVZiSpmBLbL+6PAgUobE+y5ar3ICjOKXU9xt9Impkufk+raE 85WzOvo3di00AQy32ljqxWmyYzl2ARmR6h4/GOMCwGohxU5bCDELZrS6sWSz5FXaqZxJ SKSh/1Kj7DSyYTbCxwLknTPg87Z3j6zYbO8FA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708727086; x=1709331886; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=9GES7gWbyjK2jgu2sHnPsguLcqQgx3QEvbdMLkIo2sA=; b=IB86NXBAQDF5aGh9ukRhHxbyI5f8B8JYT3Ps6g/1k8XXb3VXWNgAiwscgxDS3ArOvJ Mev88ulM0v8cz8K8wRMs9Nw5kIOmVmiuEC6G84ZCSvg3Q86A8S/FyJ3fNcPdWB2HLQ2L TfVu0bHA5BPYboRimfQXBcsIaIaoWZ8jUT/LGjKBrFGhk4r3P4PQB46PhslfZx07DWnQ IazGUyFQz/Au5vmePc+zWjgSqogkjOSLkEVugXYDumaSVfTNWyTdo9KObPHn8gFFMQn+ 1qeOnADFO6HrEt500MLesOBc/xMdaqX2rPldmjPVwh8zrvYN9GreihOKRsB09HoypXxe WL7g== X-Gm-Message-State: AOJu0Yx0PrIp+mhXzero7HSJBXDOk8/KvsvtxNOpv1CrzfxbHlGBe8G/ xqvoI9ZG9eD/xAb89pcErXlpGtlWKjuI+KGyuCyLHQxS5e5nBwJT8JKVgC1phqoodN7uQwNv9Nd AAJYKX5FSXw/jsDudFDwDQs3rt1aFFwKfi886qnp3pi2FVRr3clEOcwNQJ4QroYPN9VN+UfT6SP bA4tIL99VQx4wzqs8LyDL9gboh7rmbMSz1EV+QV6erKw== X-Google-Smtp-Source: AGHT+IEi3L1gm3A1Z0eTufXoeDI2Rm6+4zq2mMOowrmJ0cztQdu48d11VT4gtuysAz7rdb0aUswkrw== X-Received: by 2002:a25:db4e:0:b0:dc6:d2d3:a57c with SMTP id g75-20020a25db4e000000b00dc6d2d3a57cmr1208628ybf.59.1708727086444; Fri, 23 Feb 2024 14:24:46 -0800 (PST) Received: from stbirv-lnx-1.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id n19-20020ac86753000000b0042e6198372dsm1036403qtp.97.2024.02.23.14.24.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 14:24:45 -0800 (PST) From: Justin Chen To: netdev@vger.kernel.org Cc: bcm-kernel-feedback-list@broadcom.com, florian.fainelli@broadcom.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, opendmb@gmail.com, andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, rafal@milecki.pl, devicetree@vger.kernel.org, Justin Chen Subject: [PATCH net-next resend 0/6] Support for ASP 2.2 and optimizations Date: Fri, 23 Feb 2024 14:24:28 -0800 Message-Id: <20240223222434.590191-1-justin.chen@broadcom.com> X-Mailer: git-send-email 2.34.1 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 ASP 2.2 adds some power savings during low power modes. Also make various improvements when entering low power modes and reduce MDIO traffic by hooking up interrupts. Justin Chen (6): dt-bindings: net: brcm,unimac-mdio: Add asp-v2.2 dt-bindings: net: brcm,asp-v2.0: Add asp-v2.2 net: bcmasp: Add support for ASP 2.2 net: phy: mdio-bcm-unimac: Add asp v2.2 support net: bcmasp: Keep buffers through power management net: bcmasp: Add support for PHY interrupts .../bindings/net/brcm,asp-v2.0.yaml | 4 + .../bindings/net/brcm,unimac-mdio.yaml | 1 + drivers/net/ethernet/broadcom/asp2/bcmasp.c | 90 +++++++- drivers/net/ethernet/broadcom/asp2/bcmasp.h | 23 ++- .../net/ethernet/broadcom/asp2/bcmasp_intf.c | 192 ++++++++---------- drivers/net/mdio/mdio-bcm-unimac.c | 1 + 6 files changed, 195 insertions(+), 116 deletions(-)