Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1488644rdb; Sat, 10 Feb 2024 04:30:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWhYTcOcReaXqMGsKTKJjEeG+mB5kQH7Pv/z+02eKYrLZ8hwVs7PLxcDD7NRKzF1ywqYmChCRsEua2b1MZgfjpGW3Ab9yyb0tj29CmwbQ== X-Google-Smtp-Source: AGHT+IGhzBbFEn0Ixe+DE6ikpMmrhQ7xj6VKUzRNdeC10LlNHlQvX2G+v523Tubv47Mhs9ug8HuX X-Received: by 2002:ac8:7dc3:0:b0:42c:1e22:9bac with SMTP id c3-20020ac87dc3000000b0042c1e229bacmr3069726qte.32.1707568221204; Sat, 10 Feb 2024 04:30:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707568221; cv=pass; d=google.com; s=arc-20160816; b=iOYT2KuxMIHBVsafURg2vGoNop2+eBxUAFEqBvbNEnn7MQYGxuwRDeOKMS2xW5ZIWG 5qmJDqS4kvDp+nrIKtBfhOO8eAvxEm4WPb4wpAtUmS9Ik15pgUeMTgYcqRhHOGdmfEgI vCHNp/7DV/KdQHaf4ctn8ZdDpqkWGm6kpwkHnOUe39ewkpM1+Ia23uw/NfWPFcjhwxC5 Hzla3VrZV2Deda2QP7yNbZYmd9C/54rPAp8FFEv+QD9guTgZZOrUrGUlzfcs10l8Glnf IJFROnwYNQhgQn2jFfSRB83IrRmMENwFMMsKpzgrY0YNET3ZnpIMOZPMhUOC2y0VwxQb XvQA== 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=vr7W7Vbk1JHnh/Amjbi1K2t4Yc2oCSHciSTOdbwzBpk=; fh=kFgoTnh4fbG5Y4es3JaFTSCMbm3CWmt20C6MX7wx690=; b=jam/bqYD1t1bnM76em/SIl6BAIBEUSICI1B0HfiXWvkErYmy9FVJbmPGRcMHByY4FT wbl7A4Cs3O76536RHQQluiZCitf/VRT7GnoXEn7OA2VjDsDHkclf5nzsBEwlm8jo3IwW 1gA5KUcEE6TmugjbQ2sUfywBbX8zPS5xNloHr35vKwH7Ulzx7sHxddMihSD2msaDvofv 2V8wfZ9MKOM5PakwrJJYWZLotiW1d2NSP4V+CemSBirbdkbvKBK7y/K/JzbYare3DbKy 6wVO8EP3POQbtqM5J73SWQQJ78DAW1g9uKPsc2QzSbJxOMDnlklB3X775K2ceAkCBUc4 LAnA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=HxXB6Jlf; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-59695-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59695-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCXHkYqs5XZ4dEX+hZ9venMkFad0ss9ykNs27SqeW05WZWk3KjX4hnetZI11Z/dt2bpcZ0tq4Jee2pWuD9Ilfb89ALwNV3VfC5klfr2n/g== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id m19-20020a05622a055300b0042c06c5c1dbsi3928961qtx.596.2024.02.10.04.30.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 04:30:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59695-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=HxXB6Jlf; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-59695-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59695-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C1F2F1C255BE for ; Fri, 9 Feb 2024 17:05:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B9A827BAE4; Fri, 9 Feb 2024 17:05:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="HxXB6Jlf" Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 8FAB67BB02 for ; Fri, 9 Feb 2024 17:05:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707498311; cv=none; b=HQz3tvBRuR72n6D4ouCoGQ189VIYmNY1/a44XB5urlnNJmMoVlxTERXgZEsaU+fxKThzWHUGXeYJPwknRVJYB/kZSgzJj+Y15KVf1C5OrhRpJ3cSzRAA8cve6m/Znn1p93sNSkEw3Np57q294MeHlDDxr1KTa73lbiZEa6tsL+I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707498311; c=relaxed/simple; bh=FzJWFoU7zdZZZkzvlOH3kBhfsl0b/pYObCN5y6EvCbA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=FkWxO8x7/gBZxq/YTxGHWbrZgVhMPhqo4Jyps9FtpgYLAY5muhfWs78afsl/b6B7VWqLeJA+ZVWLHSD8+Yr7jKmO1bfohN3qpKnFk/wHMFLDGm8x0WUB1NtgzbC6MzpH8p5zoeOVCLgXk0mzldwDeRl6nSEgVSwSQ6/Qkm6kM+U= 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=HxXB6Jlf; arc=none smtp.client-ip=209.85.128.42 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-wm1-f42.google.com with SMTP id 5b1f17b1804b1-41059577f26so11113675e9.0 for ; Fri, 09 Feb 2024 09:05:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1707498307; x=1708103107; 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=vr7W7Vbk1JHnh/Amjbi1K2t4Yc2oCSHciSTOdbwzBpk=; b=HxXB6JlfDFSU+QoLmW6TEbgOl2IZHGgR7jkuein0gZCS8fIc634JtXSL6W1FUMHfOf oX2aMTZTTwVJgwu9TrBdIkJYBQeJL2bfeTtt7BQ6Z9FTPe8hQ4cdbaXKolcZpfCmNchi W/khXOOcPammAPAJbgZeWeCwEsithBTOHP6zwTAfcQYMi0KgY1QXLWecUw7Iozn1SsVz Ql1ITwAT9fUWKeKwWi3Gq4wKV9U4QjMUHAQmiFOp3gTujj1tuXcJEWTOLglJTk4XV3BD ka6vo3sgvBcugfyTAFjMTyPJgUcuWlQWeoIwFbctDDZgpj2NVpAGxnJV2M4dcbQErg5Y x4Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707498307; x=1708103107; 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=vr7W7Vbk1JHnh/Amjbi1K2t4Yc2oCSHciSTOdbwzBpk=; b=MGutwJ+JxcUT5rH0Tpwl3Kjv6u+I33rhEXVP8c/KBTLuuZozBdcBdMvFDryqHW9R6h DDtID/LKYW2zITCItOzMSAE421ZLDJnWpd6va3B4t7AysGpFtvEj6CTg+Eqjz31/C8HN 85lQ6civlPhMtBOJSUvzKQkVp2VqSd3kjYMbkytKiZDLB7IxGeZpXeCoTJgmOk10nCVH 9Vm1D5JvaffOWv5fEobSOaASKdxAjav0d/uy6a3rdUd1h+e0EhmLQMOAsmCdCFHAEryR 08ag4nlf/pDHcB/uAhI5j+ZShjdzVEqUyszNTySylS5CGPfZtB9Pc8uz4Ig8C3d6TS6g SJtg== X-Forwarded-Encrypted: i=1; AJvYcCVX0I3Iq+FGJZwxvYWlv8eP5JTq2knn+x+FKdDEqGhLmksmanPMZUbBsj/gqzajiIRet3J6A1tURV3Hr5OdHuOmIl5ns8BAQIj6F2rX X-Gm-Message-State: AOJu0YyKPXB126ljmMkqHD/g/L9kf0+hjlKqu9JKu/QRsWVhzZLV5YdE N99sHIKwlch43c696I5K6MFzhacvbN3qb3ird1ZxNkVy8wdfvXBIArVCZSQTUgI= X-Received: by 2002:adf:f3c8:0:b0:33b:2633:b527 with SMTP id g8-20020adff3c8000000b0033b2633b527mr1760721wrp.20.1707498306679; Fri, 09 Feb 2024 09:05:06 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVd2/rt5Ozv2csLhdMVfneFPmbti00GZZaBnvyagESkdrWMK03Vz/7l9U1RQqMmdPo/2YlxezeIU/+UgqkA/Gi0shkDrDq3FDdK1oJeF3vuhUQa7u188/yufwfftrBb2MnbhCTO8NceCYDWVOuM/ZrqGS5GjiV/CypH7O/egTU2FWnEAL99PgyGMRdvwrhdI7iGu01dHu5mwERSz5W37LvkRYprLRrOvAZl2IBSX/hW/AQcXJSk+fciL5vxEdy92TbhVi/tEgUWwxrsEFIlLd4OOj8cFuqdKjyXnb9zA2WF6Knoc4+9pilc4N1FuDTTkwVeYUmX6Z/GXY4= Received: from claudiu-X670E-Pro-RS.. ([82.78.167.20]) by smtp.gmail.com with ESMTPSA id j18-20020a056000125200b0033afe816977sm2254998wrx.66.2024.02.09.09.05.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 09:05:06 -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 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 v2 0/5] net: ravb: Add runtime PM support (part 2) Date: Fri, 9 Feb 2024 19:04:54 +0200 Message-Id: <20240209170459.4143861-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 4 more preparation patches (patches 1-4) and patch 5 adds runtime PM support. Patches in this series were part of [2]. Change 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 (5): 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: Do not apply RX checksum settings to hardware if the interface is down net: ravb: Add runtime PM support drivers/net/ethernet/renesas/ravb_main.c | 131 ++++++++++++++++++----- 1 file changed, 105 insertions(+), 26 deletions(-) -- 2.39.2