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: 13574314 Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.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 E51534F8B1 for ; Tue, 27 Feb 2024 18:54:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709060101; cv=none; b=pBSkNjU4jMdg0jWVTUrZjHmMRLapmbPApH1j8QWtR0UdgETMDVeMBZWlu6C6LUdMOa06mkizP4K3yP/ZwX323ol6HwxBuRxewn8XnJNHFQUzvJho3QrHXLFCr0kN348WuECwoLgs5nHIp/ZUPYF+EyrPXy01tqMDKE1i1jYPdB8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709060101; c=relaxed/simple; bh=ghkwsd9501XByNi8nMpVFwzCY9iD1kbgNkfNpOfFg3M=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=ZCGTZwi/nb99fjmtiSyUZPJoOe/+ASvS+oRGBZk6q8MZbIiTzsekChorULpP7iV1s9thPq7zSQjU5i2wcKOXr/TLXzwmHYRANrwvT5BXQbep4kcUpEG2Q9+Wb50dc3DQD/p5XW2sc0Wkpj5vDzbSMw5dTSp/aVWolNaIfEm1yuY= 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=OLq9HYFt; arc=none smtp.client-ip=209.85.210.180 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="OLq9HYFt" Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-6e4d869b019so2337566b3a.0 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=yKElh67lrCBFnoGhn0FUU9Q62SInkq9JS5QY1+NzLsQ=; b=OLq9HYFtf+OZa7r27CgDGphEgs1q9kojgWKF0RXQL15SB16LwHsLt/1mXYHbR15DoJ 8xVut4OfbQXC5XK6Vp/nMZwGnv+YsVSZrW3Kng7X8IyPvLwtfpW3+cvphdDb4F6rsNTN JmMVAGpIrk+WhB7tva6Qku2DuNO3CjWanBVfU= 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=yKElh67lrCBFnoGhn0FUU9Q62SInkq9JS5QY1+NzLsQ=; b=Ueb6mxzEJ1cQl9+hg4SS8EYPpYf3yeVPUpKAhTi+kj9GC3Q7GgfXLSZa4LBzjhPp7q SVDvW/mulENaUilk7QRCVrsvDCQc9BCYwsY8h0a/iKIrJOagf69o4t9+4VDFNCFTv7pc uwqY3RtC1C18d2m82Qp9F6nQYorF/uVQbyNeZZvwcusv+MxtRbNn33p0DiOaWr8jY37b thuh5W6sn68mL/gdNmm4+34ig9J46WHH2Bs/AoURJLYNUpegAHdYHcSJchIGgCFwHG5I ptzGt7g23ionn+HdYt8+LXVq3DG8y7L0okoAPnHzsxnFOfbwI5FMbTWczSf5KmNPWr/1 naOg== X-Gm-Message-State: AOJu0Yx2WCW7r5R9XE6rzCEhvZ4pZN1qlzkxB41A1mxqIXGt6yKDyVEA FHo+izaElpzYxateQlaZD+2d3JzT0unqIoC4x2KtpxaVEzPIiaadaz5GIA39xhz0XnmEnwB1NtG LWPjokwjB15LYPG6aUw7f/s5dntVWrc0pmMQrsVxPSxTytwSu0ods8Ixe1OYBYZ3HAXyVaUaNKx I3FqiZLSEBgNoPxyuhQ3AqIkNPq8nXRefXVsv4KxE1llfd X-Google-Smtp-Source: AGHT+IE+mdazMu5NBC3hXc53/TOP6ACtWOFS2yoJA7FcKCooWjqLh5PKP2HZiHYVpBXj3oicaxH/dA== 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: 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(-)