From patchwork Thu Feb 22 20:56:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Justin Chen X-Patchwork-Id: 13568121 Received: from mail-qt1-f175.google.com (mail-qt1-f175.google.com [209.85.160.175]) (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 CB40A7172E for ; Thu, 22 Feb 2024 20:56:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708635415; cv=none; b=ttv4byAdqeBq5R+wFSI1NJDEyIMDcNKum/YQVqF+tq9tMeMGQnwmr8DXdz2y49SHOjH69QzX+YhLV/SAefTGqZ32M5zOb4tjGFBdJDQvcIRg+ihh4uytwDdbERf8zEOB8BgZa675O3FO+F1S1cCFzO5DYTZNISq/17e2Ujkq+7c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708635415; c=relaxed/simple; bh=24xA1th6hZjvPDPrVeqgcvraDIJlaQzqmgLgS4ZPtbM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=NKYIbJzudfsof8dHgMcNdr09vtPTSVuxyu9DKoxGuK9HD3yGTSxjP3cRR3VaAFcIoVeWu0baPukG2ITG6krhwLAbzPJzCPtx9vKVn+SS5+7i9ROGIQmUgZllhozvmuuh86CdZ+K2rnEgEyN0Fd9m62opm4F/SFdrVL7SZt8y9UM= 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=K+/JcQLJ; arc=none smtp.client-ip=209.85.160.175 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="K+/JcQLJ" Received: by mail-qt1-f175.google.com with SMTP id d75a77b69052e-42a0ba5098bso293021cf.0 for ; Thu, 22 Feb 2024 12:56:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1708635412; x=1709240212; darn=vger.kernel.org; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=dRa/LMWJl1135XUSC0QowFriyJxb39ZunEM0rZZ46SQ=; b=K+/JcQLJe3bTA+f4ssogpnet5FWAueYIz/eB1Bu/fpXrOFKnfL0gMZaZTSzpumEWWl U1sa9SQ8oiiagOYJnSLZb86MqoqgrTAniBzf6m+oPaCmAyVeJbzE4jknyZRSwbhQutLG O9a2S7Nnh4bajmO/iV/Pcfetz4RuNI/GjQeGc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708635412; x=1709240212; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=dRa/LMWJl1135XUSC0QowFriyJxb39ZunEM0rZZ46SQ=; b=S0vNkgZFukRKeJujPCjUy/ndeBUSMikhpPgAfbOlepyurhldF46N+kI8oA2hIRWJ4s a8Tfxa+s/5RSNTqOS1lDmzwmsa2TCvk6yZp7g5dKewPhj/YJ7wopsc+ndJF5JfSqzv/C iMWREX657Y/fBhpa5ex/0rebV/UqVv19jB9PCFm8ZasZSWvrcWgMqte4W3zWZ/GD2+gH //F1Fg7YfEEYNJlvsKqacjQPQ/G96njZB/QfhunX41c89IVyFj3zgTdQ3cYW4eIsQ0+x s1AGu6We9ByKXscx02Z7ud/fsgF1LSq2NWs9GMhH0jU95WcPV8eNgcyHgAVX1XsG1hJZ SQwg== X-Gm-Message-State: AOJu0YwANL5Zbps7ZVLdC5n7OR69fipLZWZR42sdPDmdjaPjZi1tTxdq ifotkM+iboDZUwOJI+NL0S8tRVYombuM7g2tfGlSVBDAusKDN7Tt7cVg72/bH9IWLZ+IgSNtaN+ UNfXH+BN1E9kqaqQAhaHgUvEzTUz/QuhJryTtExUeeJK1soKFxy7oz5HSRL3o+JVPMcmY6Pig1b IWjBWJ79yqEEQWvsPL+Mltq+0Mh/XRVqC190aFMlxUXA== X-Google-Smtp-Source: AGHT+IHWnMHX+9fq3fW8c3nOmkcOoPkm0gTXJs8V+afykGWCxNz+bE3TJtBwqaQEzb7J16AsVTGgcw== X-Received: by 2002:ac8:57d0:0:b0:42e:2b69:e2cd with SMTP id w16-20020ac857d0000000b0042e2b69e2cdmr356834qta.1.1708635412439; Thu, 22 Feb 2024 12:56:52 -0800 (PST) Received: from stbirv-lnx-1.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id jr11-20020a05622a800b00b0042e224098eesm3159370qtb.27.2024.02.22.12.56.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 12:56:51 -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 0/6] Support for ASP 2.2 and optimizations Date: Thu, 22 Feb 2024 12:56:38 -0800 Message-Id: <20240222205644.707326-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(-)