From patchwork Wed Feb 28 22:53:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Justin Chen X-Patchwork-Id: 13576079 Received: from mail-qt1-f169.google.com (mail-qt1-f169.google.com [209.85.160.169]) (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 596173FB98 for ; Wed, 28 Feb 2024 22:54:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709160861; cv=none; b=FFtunnjJaOccpX5M/oeT3MdO5MY8uDm8yyCNws0E4rGk8L8fgcBETPvRwGGTMvMA819BXvcTiZ93eAcWT/VSsNieQm6Qeut4/Q6Whin76qCZVDOMFf+KQFNf/NVA/F/Zefcdp3wS6iDdK8uG48E1Yz1uKYiBQNxNzzQcozFJVVs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709160861; c=relaxed/simple; bh=GkhCIMvfSdVKSqPq8L1gie4zc/s9MeDpKZJUGxCbePc=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=stXFOcgl/Wv8XfBSnsXufBZcLXqTQV+9KVsHHeV755fyreU0jUiydax2CkeTbdrSD51ZUU2AaR39RpU/0jqxEkQbocKMdvRREo5pDEUr5wQE9kDN12rDoDCfsENgRsFQFjnC9UHi4CS2/KWa18ul2K0CSkdTxD+DfV5DmAXgbR4= 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=Cbg5UbpN; arc=none smtp.client-ip=209.85.160.169 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="Cbg5UbpN" Received: by mail-qt1-f169.google.com with SMTP id d75a77b69052e-42eb3a8f4bcso1835311cf.1 for ; Wed, 28 Feb 2024 14:54:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1709160858; x=1709765658; darn=vger.kernel.org; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=9w7TQmObL8dH/lkzmLgqHfD+K3Npx1QO1uGSALb79ZE=; b=Cbg5UbpNjz6Q4zrAaMQuL2gFjfQKm+C/QIxdBg0N09/owSUtqesnjf9OMu1TUnzpmD eVOuH426YUVjjFdocXahWbAfAek5ogtrDm+NkweJPUcL39u39ebrG1Sd2YCZBefe5diX jfrf3/3Ppxf4sD8ga9XKGrUR75k41QC1zDjL4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709160858; x=1709765658; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=9w7TQmObL8dH/lkzmLgqHfD+K3Npx1QO1uGSALb79ZE=; b=QU0pMB9rFDlZ1GAN8LFgnpG7AFm2/2t4e+TwQF/o/BUmt8UPVE0osotCqqz/TbLIrx F+tH2+cgVW3eAquqkq3q4y0wK66Eh2YZnSi8l0fWA+OKP7L1AB+Xi33b6CSr0hG3A1g6 enkFGSlDI7MPRoSUmQy4jGwidYfOK0b2hqshjl3Yy726Opp7Pj3Q9K7aRSJLO7ksoEtN isGLo3DQsAPYWQQfESDHMfWH4OVvibBkW3WAJIfTnDwPUzGcBaPh4Z1t1I/ePTAS3k4o aI7+bWsvXSMF26V6VLCERKkgklJKklCpKw4R1BfsmMsJLiVne8gdUWxuvk9umfPTeIbU T3ZQ== X-Gm-Message-State: AOJu0Yz9qmOTYpYPcHTWNg9/CapvyGpPtFskuhpGEWXmDbnbwAuXy9+U yaMMmerlNI1VE4T0/wndNn9hdDVbawo78QueMHtPiLOXP1yTJIdRPGB6J0Tt9dY7gPnLuaN/vOt dzLcuF9mrog/nZQrJ+C5BHUWaQeT6elBVNWj+85xiMnStRCkXliMAazG0TJQwnBDQ7AdyrRbosK st9vTPcd/XZ+xUKnhRtF1+uNNYBxIE0oyEAmQwjJMHCBCZ X-Google-Smtp-Source: AGHT+IG1szzt9+azs90UiHREGlw65UV7sS/b1JE/5oIAcdngQjQDEJ9DhnhJnUsDPNR0f+e6qi3Q4A== X-Received: by 2002:a05:622a:1646:b0:42e:5a10:27f0 with SMTP id y6-20020a05622a164600b0042e5a1027f0mr444519qtj.8.1709160857995; Wed, 28 Feb 2024 14:54:17 -0800 (PST) Received: from stbirv-lnx-1.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id b1-20020ac812c1000000b0042e3468a98csm95036qtj.4.2024.02.28.14.54.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 14:54:17 -0800 (PST) From: Justin Chen To: netdev@vger.kernel.org Cc: horms@kernel.org, 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 v3 0/6] Support for ASP 2.2 and optimizations Date: Wed, 28 Feb 2024 14:53:54 -0800 Message-Id: <20240228225400.3509156-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 | 203 ++++++++---------- drivers/net/mdio/mdio-bcm-unimac.c | 1 + 6 files changed, 204 insertions(+), 118 deletions(-)