From patchwork Tue Feb 27 18:54:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Justin Chen X-Patchwork-Id: 21045 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2931409dyb; Tue, 27 Feb 2024 11:56:48 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWAN5aom5545UFq+jsxkYSF2Dz3u0ov+hoi0SXDQL4DBlCY4UyWobOFdnDdCQSt3x8dkFOOlYDYxyGSKQiqzWHNAkB7uQ== X-Google-Smtp-Source: AGHT+IH1ZVc8asPmERy9jXIr6j81SLLvtw0rbn5Mv17RWFU4Mte+D7CKe3SsNLJnJjnkb7VbrwfR X-Received: by 2002:a05:6808:a94:b0:3c0:34b4:ee0f with SMTP id q20-20020a0568080a9400b003c034b4ee0fmr2680420oij.53.1709063808639; Tue, 27 Feb 2024 11:56:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709063808; cv=pass; d=google.com; s=arc-20160816; b=JsFxabaasF8UnJ3MWe3ypdOtfi/A4SOEyFCCqCjQ6mqaZYGd18oaN9QUJFrath1adR 3lAR2PxHGrZCmBandUwTnfvcDHLQoLVA1ZM8scwDWex7clI85DDK8DtpGJvkR/b9eDRB AHV8fz+GirF5AVyr7uTmbcypYDCGDg2e4Qp+AQNN8cxcdgP0VmFWcCtm8a+qgJ6yY0bi uiP7ldq/FxNr0yDgWoLCIX09TFGqrqIx8i3o4L2Yfj/+NN5X9n3CMigEFoi+gYKyPuWy EVnjQlx7UbZGjXd+GxQSdO7BRKiicES+4pmj2UpAbU+v7x7wcp14Kl+nh5S8TpjLv9sm RqWw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:subject:cc:to:from:dkim-signature; bh=yDX5EaTKn4nP8m3cvT93HF+PQvk7bNpz6+L8KQkd1yE=; fh=UOnVZ1sGdMSKftM/Cl3OzL5+tbmF8XxvvvOOHBr6cWU=; b=iShpCKWKcRWyA90+dv+BQc2FzsfIsYmR9aIFjrW1WAns7aecK+4nRc3CKMtJ+MzwuN VqsO27oXvAvtqyWmVh2d/9ilYNVrn4+ZFf5MubQwWu+ZKU1rdx07VY8Ub3gg5wGt2win va/Ei1ZyQ8M9+5T4FoWSQi2WiYNt3lVyZm9pss+u1xG9sw15IbQi8SKlwxkgk85Zfdbe sqQfn1M7MfMc9/ORcZ/+NPHOX1HFrKYEmBSgZoNBUYmpK7sZB8BdRj50G8pIaTZJZ9+5 K6hEXz7YgjSWpeW0BOwSimBp8zv2I/xvVGPGeCjrIJS6ujyi3+63HLrZsBYFMYTd+PIh 1RDw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b="H/tI9lpU"; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-83865-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83865-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id z26-20020a65665a000000b005dc3e73597dsi5788972pgv.293.2024.02.27.11.56.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 11:56:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83865-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b="H/tI9lpU"; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-83865-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83865-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4DF3A284BA8 for ; Tue, 27 Feb 2024 18:55:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B81B714830C; Tue, 27 Feb 2024 18:55:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="H/tI9lpU" Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (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 B88943D988 for ; Tue, 27 Feb 2024 18:54:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709060101; cv=none; b=Ayi5R0RCT7d5mXmRSyb6Wlj5i+HE/Cd+2t78c/rmYlh9xFQg9bYkKZzLV1PGpxahh8s57gu5NNZf22iKpuM8UEyL7o9kOkJSfOnM8472EtO47f/0wspKZbzRXTJ8gl+eEjHywaoqhqJN2QbBxtliqG2mfdtFvTrzfWkcmdrpXsU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709060101; c=relaxed/simple; bh=CSdtxnDL7xRutpRPjpxMycFN8LgkxIJDWBGcuC6kaGU=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=aJT+WKuD7kdLtxJ/oeyk3lIBdyHcadjdHDY4yfs5870EZpSzN86TSuZFTTcjDuZEBw0zoy8IpDz3F71V0h/YOXd7h1oe8pZDiNlCk+KQZYo0TTykCeQUYBSurBEcUp9sSVQo8GMnjCJnFpfekj+tPD8EoEo9bEw5Xv08vRqlpGk= 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=H/tI9lpU; arc=none smtp.client-ip=209.85.210.182 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 Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-6e54b22229cso798968b3a.3 for ; Tue, 27 Feb 2024 10:54:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1709060099; x=1709664899; darn=vger.kernel.org; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=yDX5EaTKn4nP8m3cvT93HF+PQvk7bNpz6+L8KQkd1yE=; b=H/tI9lpUCrJoXvBiqccQ+rAWbFa/y36dYqW73Bd2f0M+oaF5PrXUjADRUFosemEs0o Euku4TmA7C6YMDYeydXotZVqb5Z9Lt3r2B7twm2K5Fw1T0phJ8GpdpEp+noLJFvJJF/U trTOU+/L7c0IMX26XRfGnIZDmsj32HdcCOJn4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709060099; x=1709664899; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=yDX5EaTKn4nP8m3cvT93HF+PQvk7bNpz6+L8KQkd1yE=; b=XVxaSsFaXfHpaSv7h+Ji9LzdlVMY7aAa8972/j9q5XB1fZPe/K6cjsHxg8jyICqEek pbEmybS430OplRUAZaldiZn0YRBD9B+xEQE6v+4xYxCmiBbL0EMhfa3JFoUohpaLAtRo w+bKwpPUtOts//TvSjPK4vHL1dQDS1awXLdKFJKEk0uqlV6qMXyPYBp202SBJ552ODzE 4hNriudAtseSkrearWhW3Re9mnqWhXJMBtDwGdiHmcP2kRBaSOyvhRtAgmrTbxbZR1u5 LqtN7M4ZnLDKBF0P0KXmi5E9188mCeFHy7IYIsQLZZRWW6463YC8Z74cttUC0QpZ1A5Z +S8Q== X-Forwarded-Encrypted: i=1; AJvYcCXnEbplVgnYqDDeKvqlM4MwkzrYa9DSolo9fMPuXLGnWYOvJ3Gglrex8rSqLw/IVkJOwYMElwyrVcDjP5fqv+6tbr12tg/Jdz49WkpN X-Gm-Message-State: AOJu0Yx5ensWT+/uFs23Qx4QUcCl0ZlqKhJWo+gPV/pSkq75ILVz2yUm hv5C0sPkQk8M23VIirMan/BRKigjJcBIr485JtsrurJPo+K6MfV87WmJk3IXsA== X-Received: by 2002:aa7:858b:0:b0:6e5:be2:55de with SMTP id w11-20020aa7858b000000b006e50be255demr6518854pfn.20.1709060098911; Tue, 27 Feb 2024 10:54:58 -0800 (PST) Received: from stbirv-lnx-1.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id r6-20020aa79886000000b006e466369645sm6236898pfl.132.2024.02.27.10.54.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 10:54:58 -0800 (PST) From: Justin Chen To: netdev@vger.kernel.org Cc: 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, bcm-kernel-feedback-list@broadcom.com, andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, rafal@milecki.pl, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Justin Chen Subject: [PATCH net-next v2 0/6] Support for ASP 2.2 and optimizations Date: Tue, 27 Feb 2024 10:54:48 -0800 Message-Id: <20240227185454.2767610-1-justin.chen@broadcom.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792083292577260372 X-GMAIL-MSGID: 1792083292577260372 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(-)