From patchwork Fri Feb 9 17:04:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 13551627 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 8C4C07BAFF for ; Fri, 9 Feb 2024 17:05:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707498310; cv=none; b=XUJPTgEAPAxRsCwdrz9WvQ3cEEzya0hGsUZ/IPoh96BKQM6QqIZO9DjjT0AjyKsNNJMcaT+gUo18xWbavHs78Qyop71Ebk+41gEksYR9KUEpGnFewNXP/6irLGDys2NBFNCCbU/FLp9I0J9U00dSDR/qcPBxvEguIo3uYY10Aak= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707498310; c=relaxed/simple; bh=FzJWFoU7zdZZZkzvlOH3kBhfsl0b/pYObCN5y6EvCbA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=QrSnlWhVOAEJia3xf/uB/EEcNc82sX5UfCCMN/7Pz+/bd6DAcJJDCuXrtYJcI4DCQNxVJn1yUgbdlgUJzYQbVdTWoZBS4Iy8jygshPYtlElMDYHPJVja0IN48DqoZDJQrrQCpmhG96qtScljOoyoIuWyqtEG/sBmbM65VQxouC4= 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.44 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="HxXB6Jlf" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-4106cf2e9e2so6933755e9.3 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=f/GySPWFL1dvAVixSc7rwyIpzs3LdrLKhs5Fv7ckGdHJ+v3ZCpA2l/3OHz9YoniY68 AfDHbuYrRDTTlntOvb+z3SCD6rN1EmCoPykGh54Up7/sAslrwIK21WPxDOounVaclVsH j7krBVaCW4OwXTUUOmJ6L2UDQ4b9fFckxNbRQcWRXd+j7rZbgVfsOkxDO4YIXT2+n1Ue +8kvB78pCCHS8JYMd/1HJBIyK02Z1/ObrhDhPMVNYf/ckoiOBJ+8VraBcPwEFZDS5UHG vNzGUI7nxUSeYDBXH1BnxoN0fGcePUz82HG4fU37SG80y3cn22IPBi/RS0U7Uu3e6Qjs +jGQ== X-Forwarded-Encrypted: i=1; AJvYcCUWqszsVmg7JH65H23c9UYS3mMOtHJWWJrMzgOky/CAhxNmQsFFH3r9RhygIRtrizJxw8BMJFL9ruapOVFVtwIqclt6WtWAmOLT2qZ+cXhXyDs= X-Gm-Message-State: AOJu0YxTkRElLiaLI8NYwFOHC9hmzLvtGR/ozSyF4mvYkWjk+4fKD6TO 3veQn/v9MrlOfbmqh14al1Sz/c0YB1dzjqCu/NEPOXlyRRGDoiUXFgdtPtzVpqSKQ+ElMj6tbo4 h X-Google-Smtp-Source: AGHT+IFs7ynCqsfokHQAYan78I5+JGfROe4sGXWOaKqkcfTgS1zKMZXR1Q+gaeGAhVV+J9NdW64tWQ== 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-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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(-)