Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp590190rdh; Wed, 14 Feb 2024 06:09:26 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVVPfWVbE6ZJaFpEmnetfY4DUMnYk0hDM0ApagjZykpEr0vh48fo6x0/Twc4XvH9ze+3UYfMwfcpnePXTNrJ+GwqZ5mKPPQNQcCmNPqPQ== X-Google-Smtp-Source: AGHT+IELPruGW27IyhvrTxR4VGgBtZRQoJtdGjDgZAYM3jUPgBIrbymppHlvtJIHXcdqoG9wUeTd X-Received: by 2002:a17:903:4297:b0:1d9:9a90:cbe3 with SMTP id ju23-20020a170903429700b001d99a90cbe3mr2832036plb.43.1707919765809; Wed, 14 Feb 2024 06:09:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707919765; cv=pass; d=google.com; s=arc-20160816; b=RZd8InKqQfrjZSOU8CLV4If/HfOWGfddRvGL8Xb7bM5lYCQlY3CrCsVCE0f4n3Q+Z+ 1JXrBeX9h0Fbtr40bx+/WGohOHvpKTEuvPRKGaXjwqVzrEtj7FcIOSMMyOqXOEFtkJsP 3UDtfGHmWN8Rej/WBPOWcfOZDfL3Mi5XZa4NWKaIz0T88gYQXeUoAxMeVI4pvPXWdFEp nUuFeXqYZfYqZMTqfHEGONywkqI+pez2nAL431tYAGs6qSi7J6m8xyU4I4v5luV/XWs2 F2czFTer1VBFQnL8yVjN4Udn+63m+VcWgFsyqBI8teBpUcCjKdIQmfWHceJLuW52uC2S 8p5Q== 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=v2Q2Z0kn1NfJ1eM/+pIgOtt+zWhQbGntnuOFYjaTGg4=; fh=zRS3VK/Pha/UIy5xh4UHu7lJfpRMOM972z0pTtyNwPs=; b=PTBXhQGVkU0sveNL2GzTkv8hJ93teGO0VKY2rmXW5XmjTL3EHrrDn51KRPOj8C4Hmr ZrdcF/LkFNC1pB8yU156Q5XmxUeQrz5XbopiVoKkAbnk2DeWpIGY/zqOa3oNSdThoQfC m8i0g8qvtaOz0B1uLJNizHy5ZX4myUN2+BegcsVv6Kw4SfkPdJNcDix2/tjSPXPrS/ji NNLnUdj320hyLaNoCjO57rE5mDHkeXCgNkYa5UJTtm6cwCyk7b7gjeNjJdq+q4SHB1yF gqZvXUOMYtb6DUaQxLdqySzHk4jNLXCq+1LFMvTxTmIoUGjJXboEEZ5VwVFXEfgDu/XV AOug==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=AsssQ2ej; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-65304-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65304-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCWL59kBWohYKJdNOhjZrow8FLW+K99hryqcVwq9H8DtWC+iEshWu/luxWYkOj0k68PGqdoNKSfbmtwQRDwUpyWLK4tlsQ3CK9ypBQoQQw== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id e15-20020a170902784f00b001d7195d8a0fsi3762421pln.117.2024.02.14.06.09.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 06:09:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65304-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=AsssQ2ej; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-65304-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65304-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 640C9B231D5 for ; Wed, 14 Feb 2024 13:59:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F18F355E56; Wed, 14 Feb 2024 13:58:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="AsssQ2ej" Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (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 1BD7F54F83 for ; Wed, 14 Feb 2024 13:58:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707919128; cv=none; b=alxryKP8uMC5hfwKd+0sOBVVzZNId7bMId7f73RF6yRYHKi/uaNBjDKls6AkzvjQL0jPGZlYjPD4/pzExcXdfqyOgrP2i0SQzfoVrhNP7YU06h/5kzELF2HGrFvgNZarVXRNDXddD2sC8nJc8/To5eP/inYmlhdOnAwKlionmIo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707919128; c=relaxed/simple; bh=QTo2vaKjibWxTlfxwFldo69+DAlArXcmbGu8z0hzYRM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=KL/nhI8sCSEhjupfVjutJHnbAw33Sod+6X0NntauhRL/TN2EpBAfnrQdY4cePVASvqIVPIgwp3PDGV+rV+7EhMu6zkEhXfi4Y3qYcBeGSuYVFNQ7VDF2Ed+qziKI+LslQld6xSTcIRJNG0BkwYENTULUrUF06ed62Nn26h/e/OM= 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=AsssQ2ej; arc=none smtp.client-ip=209.85.221.52 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-wr1-f52.google.com with SMTP id ffacd0b85a97d-33cdedb40c4so987057f8f.2 for ; Wed, 14 Feb 2024 05:58:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1707919124; x=1708523924; 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=v2Q2Z0kn1NfJ1eM/+pIgOtt+zWhQbGntnuOFYjaTGg4=; b=AsssQ2ej7zhSw+J/gtV6ynao+YDWXqOlEZHxHeSJsV6t3g5vbegZZGthpJ+v/Oz1NC XQtDjMkOToolIUWNfvfhZ/XfkUcCh1On24v5hLbc5c9F+sUqFPbbq6kVYnSJBGSku5E7 Wh5ddpQaSYh+G2gtipZWdQY1Fx+Mg5hPnCXkROvcqQ4F8lRc+XxgxUkcdkGwmbHQZ2kr BZUEtZ+4pP3H+S7ymU/0XyXyeeiD0eGUHoT9hc91q6zDyRb2x9gScA5jcTGMepDXL2V3 C1EKJumpdYxAS+BJUAFYwI8BdZsTsmxjkwJXx7iTkcj4LPUaK6Ru3caAuai/h+7dtIEn rS2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707919124; x=1708523924; 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=v2Q2Z0kn1NfJ1eM/+pIgOtt+zWhQbGntnuOFYjaTGg4=; b=pGLP4mi5Ka3i5Ro7/iY4lzBKkPA93K3wEF3j7b0AkTjjAvhnDXMfao8X6/dLWJS6qv gLcYoJ/TU3ziq+n0O0vY1BstpYKZAnLV2iPvW+aqt7z1qYwWY9rG/I3yF4VwyA/exQi/ 1FFeNhKyyxo9ACaE+tawBB7l+aHvkgEeIsHBwJtiapjaWwW0dhZFTdCO5eA5HCJnpddN cg/ouWKLlXHDHKZCRf6OboLDX4I9S34eHvrBvniwAbdoVcvhHmG6Cz3IirpArIxLbVKa 0q1iL8Bx8ijvKzNEhviJggVmrx4lQQuCKV7Sd2r8YamFqvsgMzghpN1cThEpBZtu4pe4 Jjkw== X-Forwarded-Encrypted: i=1; AJvYcCWIpH3+VloIZ4fU2xtjdSRoEUTtki0d8XvFOkYZlKH7UDorteYf1Ao9ko9LwojF1GwaZEh+997MpM6rPxzNIKZY+Itj2ACfNxZ5xfwO X-Gm-Message-State: AOJu0YzRtiKGTN/C+HEnQ2d5eFbW5HeSZ7SbTmNZr3ueXAmaI6yNLURc rQs0uuJoJ1PEBp7lrLPiIXRlbvyrGBCT56K2AN+yDWE67Whoq0dh/T2/x4NA4OA= X-Received: by 2002:a5d:6a8a:0:b0:33b:5590:c0d8 with SMTP id s10-20020a5d6a8a000000b0033b5590c0d8mr2032758wru.8.1707919123924; Wed, 14 Feb 2024 05:58:43 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCW0KIs0Wvg3WpjPl1XhfNrCXJ3W1SDOeAr5Cgfi0e4/ooyOaf6/goMabQ+NX/EXdTcgZuv2E7d9jxAN/aYO5mG/8plYFjQQWp18idSRI/rR2DnpuQhbyP3V3OJMqvMTSRAaMdirXYE2GLPQCNAibc6o2KUt75RsooJZXPFH+BN5WGnQrnJXPxmweTRPz9oKzsN8ln1ql4CeqYlmBCVd0BjH0vhs91vHDZKKcr41QmrJPThvAQ7dPLt1vpt919a5Enx6jQSE9gwzfC73ZLAhDnphiideF9Muz/GFke4sqBqW4oxWX40I/wPmkeET86Fi+giydpG5pxvpjktH4A5zOiSSEcVqbBjLxsb24PueU2YKkVYU2vU9 Received: from claudiu-X670E-Pro-RS.. ([82.78.167.20]) by smtp.gmail.com with ESMTPSA id f15-20020adff58f000000b0033cdbebfda7sm4282140wro.14.2024.02.14.05.58.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 05:58:43 -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 v4 0/6] net: ravb: Add runtime PM support (part 2) Date: Wed, 14 Feb 2024 15:57:54 +0200 Message-Id: <20240214135800.2674435-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 v4: - remove unnecessary code from patch 4/6 - improve the code in patch 5/6 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 | 132 ++++++++++++++++++----- 1 file changed, 103 insertions(+), 29 deletions(-) -- 2.39.2