Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2941612rdb; Tue, 13 Feb 2024 01:47:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXp/WMrfOrzWRXmpU4BCfPGlnrRrElJ3u7hflrM2oDVR0Cfq6UrLchqUZggQI5jFw5PUwPBxAkMh5mR1THT7LPNGcMM0eQlrNME25I5Xg== X-Google-Smtp-Source: AGHT+IFnyUbFLmp0nE39zm12OfVPM2OTQayzDPg/Jl7Tj2P172qTL2o4+ZTS+lxWojjuZZzyZrS5 X-Received: by 2002:aa7:d3d9:0:b0:560:4e6:803c with SMTP id o25-20020aa7d3d9000000b0056004e6803cmr6969856edr.27.1707817665372; Tue, 13 Feb 2024 01:47:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707817665; cv=pass; d=google.com; s=arc-20160816; b=JL676tkyrRmHLDfDiFB8ltubQaOSn0zH83mNDOpOLAYu9+PkiG86rCAzStZlwgTVFS p86ljtLMZqxLpCE3a0hzEwk7L9ErGO4x5KqLFj0YZTijHBTyaCdYS3/Rlzr8srb+Y5C3 Rtbm9DyOUxQStEylmLVSQl7eR4COSEOllOKGY2QK7qpCIaPTaMqRNLJXV6k67GkQs4F+ uqB/3i3y2FXSWjCjq7PVoKsqfuhjqwfOy86WNNszhyqTsngMdUbJy3be/NKonUMffZdm ndwsStS4jIRkWF6YqZD87lgb6roiiayE2kIR5oOsvivJjCZB6BD6rjzy/ZRFp9IIdaGc Agpw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=76ifjGL6b6XqCMtg1uu81osGatDMANposy+h2xVPYsg=; fh=jKM1OibR3bV8uw2lr8qwuQfRcCAfYIMi0r3aCIX+HK0=; b=mlnvX3p0mVT3FK1mEwd3gclJWXb+LbwpRpC0wIQft4AxAYAzr2tAncUatOpjL0rCn7 C3O3myST1l3YTu+ovXA1JwG4kixuZ4+qxOEcg5eZ7WMWINHSRtlsTKVAF6EdDw0seFvD rXw0/vgH60sd3Z2465qCtddlTgwxyyMRA4H6pR0WebgkrbU36861pdQqtCMgJ3EOOoeb ktXvtyTq5FvZRWfw5zryWXSlkCVlEM15CbnDwNhxZhsKDYxYEIFgLbNal4hDgzE8B7dN HMkMjZ4JOJJuivsv2G+nhlxOdlhlXNl7rlOsFtZ1pdz6x8/6r4T6WwCtifjzfO1xkXb2 M+lw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=bca2RsRB; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-63246-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63246-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCWNRt3sZcsycFS+t9MPWWQnrPVZNGQubNy9VYC1Ek3djt1BI1IorRQZ/auoOrn2KiJ+jTyw6jAMgDWE4WuBxt9+W8aRkIO0hjZsotYd1w== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z11-20020a05640240cb00b005616f8621dasi3437326edb.447.2024.02.13.01.47.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 01:47:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63246-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=bca2RsRB; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-63246-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63246-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 505231F2833D for ; Tue, 13 Feb 2024 09:46:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3E99A383BC; Tue, 13 Feb 2024 09:41:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="bca2RsRB" Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.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 22DEB38DCD for ; Tue, 13 Feb 2024 09:41:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707817306; cv=none; b=uzqdn7NDG2UYTvNCU1cF+neLflPJvalvdDMiH29n492LUz0f80qAS6APz2J4Z8kaVtQ9bLufUQ3M26Q5pg5prQ/4VK2qVgYog443gZZhJ1FrI5AlJdSbiT1DFTxmfJTEg7G0IA+A+Sy1H3eS4o9h5RQ0Oaksc5lDIdEM+MHjt1s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707817306; c=relaxed/simple; bh=gmGM8eW45sg8d5Ilw8QNcbDabj3qEg/cJxPSWRi2kdk=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=LWERorCvkBm9neZGwAsHpPLeIl8DsXgzZHr+e/3dUxPZFioeskW+dqZAQP3/TdFHBsCvWflqm77ZfW14LyC+cI2txqw7Qv1YuJYRhQPnAgUNKYUJTveqZOTSHnUnytIEPnBJbtg0ng78yxnIM8fw6VlHETPYrV/+V7Dms1fS5GI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev; spf=pass smtp.mailfrom=tuxon.dev; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b=bca2RsRB; arc=none smtp.client-ip=209.85.208.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tuxon.dev Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-2d0aabed735so53926121fa.0 for ; Tue, 13 Feb 2024 01:41:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1707817301; x=1708422101; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=76ifjGL6b6XqCMtg1uu81osGatDMANposy+h2xVPYsg=; b=bca2RsRB01dg8vcclUQAiH+eaoko6ENeLfYMs+aA+uGyajGrpWPixOb/pFajFqcMsE MksaM30X3d5z9Y630aOa43tvcNMbjeQkJmWyLK+2sE0oajWWg8H90Twn/OoXVKPX8Nq5 i0lMXfgTtAWXeMiEkgP4C8kdWW7BOSWRCbWJpO/4wOIV4niOfK5twp4gu1WuAdktMXLL rIQI1pmdC4/A0Najo9fg15OKDwMH8PYlMK5ulicZT/WCHlg8c3TWQyGbmfUMZwjrD+6/ GAl1hM7MfLmnu0sCgjNBrE99TkKg/+qwYUh805vAMeyFtlf5K2T8MHivGIhkyHLXX+PM qYBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707817301; x=1708422101; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=76ifjGL6b6XqCMtg1uu81osGatDMANposy+h2xVPYsg=; b=No9qY/cpFG9xlvNkhMifvYj5ZtCC+Rk5o7wDo1yiiLUj3zbdpc2bAODTMtjcsTbYm7 wmT/xRrQWOD4FbueDfpxlpzpxLYWHk3Bnq6hTbX/qgT4FF5ZDD+4VWwf+8E1Zn3tSOSo 0kbq32J2XQhUKIbkjzhl2HX6ABYaFPAv91kJNXciOTGGfXMmeEFNlFAi+5HVzOYrE5QZ OXWiLoVMFrMNb4BvCJuI7LakkOPXox3KlHm+gYRmj+B6VU/lB2cpp+ErqWvn6+m4AXBK A4FlUCb0M/ywunweqrgsKfC14HmA28uWK6ojNBbEv1rkUPRUnO2UTxFTDBPJJU/6Cb+z WLcw== X-Forwarded-Encrypted: i=1; AJvYcCUD548iuWkaV7/V1OJkLwcaAyMMGLBdY8JYEWtOdt+sOV2TrrTr1tU1w0160VFPOqlNNg/TpSGnFD1ZNSeKxH0Fm5kXGaYaYaCSmJNe X-Gm-Message-State: AOJu0YzyZCfltnlU2Tgmgwr4L+h9wqgCaM707HQoy15vb+uSogUeuCGA 0v7ZPn27WnDCU/ok+72938xRpmA9RsN/u/iH17cfAJxNHo6/ySPgKXaY0eiwdL0= X-Received: by 2002:a2e:8682:0:b0:2d1:ca1:760b with SMTP id l2-20020a2e8682000000b002d10ca1760bmr641871lji.30.1707817300836; Tue, 13 Feb 2024 01:41:40 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWiK3W3MUpsnpX2f0LS0ydRSEhS/0hHYb7tUBAdaxnsW5ZzLBiZO+dAW8enoQ4bHRyK8KlwxMyjiFFrCssAJzJ9cp+ko7ClMbz5GweNIBNAhVfPmcDdZqX9zm+7zu5FmsSukX0qv4VA/9QXqcJyCYtmbpry9MiJee+MZB7cPFToJUKOxDxdR3lyhXqwIabkQrtp1KD41sT0vvE4qkNjtKvukkUifCdnMsgV5DGPbntLTpb2JX2Q8X4l9f8++8JPm6OPzSup1V4Zq+CtPDwS+qf7jMOnfjUFsBLHW+u1MHNV32MXt4spS6Yee3yM5nGLBbxypZsWg4cfKmCU/XxoVDDlX3+I58Q2dB3+pxuK9PQxL0hZwePn Received: from claudiu-X670E-Pro-RS.. ([82.78.167.20]) by smtp.gmail.com with ESMTPSA id fs20-20020a05600c3f9400b00410232ffb2csm11207446wmb.25.2024.02.13.01.41.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 01:41:40 -0800 (PST) From: Claudiu X-Google-Original-From: Claudiu To: s.shtylyov@omp.ru, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, biju.das.jz@bp.renesas.com Cc: netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, claudiu.beznea@tuxon.dev, Claudiu Beznea Subject: [PATCH net-next v3 0/6] net: ravb: Add runtime PM support (part 2) Date: Tue, 13 Feb 2024 11:41:04 +0200 Message-Id: <20240213094110.853155-1-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Claudiu Beznea Hi, Series adds runtime PM support for the ravb driver. This is a continuation of [1]. There are 5 more preparation patches (patches 1-5) and patch 6 adds runtime PM support. Patches in this series were part of [2]. Changes in v3: - fixed typos - added patch "net: ravb: Move the update of ndev->features to ravb_set_features()" - changes title of patch "net: ravb: Do not apply RX checksum settings to hardware if the interface is down" from v2 into "net: ravb: Do not apply features to hardware if the interface is down", changed patch description and updated the patch - collected tags Changes in v2: - address review comments - in patch 4/5 take into account the latest changes introduced in ravb_set_features_gbeth() Changes since [2]: - patch 1/5 is new - use pm_runtime_get_noresume() and pm_runtime_active() in patches 3/5, 4/5 - fixed higlighted typos in patch 4/5 [1] https://lore.kernel.org/all/20240202084136.3426492-1-claudiu.beznea.uj@bp.renesas.com/ [2] https://lore.kernel.org/all/20240105082339.1468817-1-claudiu.beznea.uj@bp.renesas.com/ Claudiu Beznea (6): net: ravb: Get rid of the temporary variable irq net: ravb: Keep the reverse order of operations in ravb_close() net: ravb: Return cached statistics if the interface is down net: ravb: Move the update of ndev->features to ravb_set_features() net: ravb: Do not apply features to hardware if the interface is down net: ravb: Add runtime PM support drivers/net/ethernet/renesas/ravb_main.c | 135 ++++++++++++++++++----- 1 file changed, 105 insertions(+), 30 deletions(-) -- 2.39.2