Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp547005rdh; Wed, 7 Feb 2024 12:18:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IFXCCZfdOaQ+DYmsrmUhPM20DgTaJ1nUfRd4mjc6S6PIEAqq9SeTUCe27KbBpmMsGwW/EWW X-Received: by 2002:a05:620a:1d91:b0:783:6e7a:c815 with SMTP id pj17-20020a05620a1d9100b007836e7ac815mr817032qkn.32.1707337117345; Wed, 07 Feb 2024 12:18:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707337117; cv=pass; d=google.com; s=arc-20160816; b=CA1XKSzsATATJmdy87CP75pRzOk1WuWuBYS5+BfxH4zkIbZbmpaZJyq36hdPm6qlBY c0JYv7fbIYy9q7Pu7nfuLS2pjCjq1I6PtmUb91D0GfZeTeV6Bqhb9HotWsQ0RfztxAXM DQSFq0eS7FLFKJepmpECSCN1pxtp/PZtnxTgTEDbwWnsf7UZmDReMwdnpXBd1TE/s2Mk THLGorx6gp3VHWOQNzgjBxVXcLsHHp7Dvs/kSMF8uCM1HKIv0tWVO/MXOikG9WYd21F/ YMjneLLiitXNYSBd5suuZAh9TuoUfBEhvxhqeC7mM4+jXXZ/O1SaEAbTGkFVCr9Uvfca 1GDw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=jBh/21T2fwQpmBTFWc6jgPj01d3HuMx36hjhV4tQrTs=; fh=6tndfXpIysxGAI5wRCYT7cTjGZxi/gT4b00hV0ujMXI=; b=ICg0oUVNM1RvIDHNUnnMBxllCb1/Y+DBalv/AElizOPyfIN5wmpkmfRHDghy3re9M9 J+rM5AHV1yYz2GhAq0dwnT+e8YXeKmw5fWgal//4BplIr2pERTpzCwlfrIaMcSZpQNfe 8MFE4ertpJOqYxiARxsTWR5MIJ3aJf0rzlkg18oErQm3SiBv8OKrTrHBh0bE28g5Hnzw BsfAdC3q6CClRNWkG2WcL/plmh8+nHNBwEoebckVLT4mvySR2DO0gFEGxQwYOlKykzs5 zpdJTuOZJgL30TS+a2WbJdJYkvHaCZfRYfwohnrLLmBG0XmtoAiRgu0Ux6+PeDfaMWdq Xd8A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=omp.ru); spf=pass (google.com: domain of linux-kernel+bounces-57005-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57005-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCWNGZj4+uRWf1/ulUSbcr9qdC7PYaTp6Ut2DWbf7/0R4m+aHa6VxUQqnDsq7d5rqyKyE2gXBT4tJGrSG8Vct5wI1pJ+zPYwcpqL2Ixw6w== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h17-20020ac85851000000b0042c2fd1f51esi1880149qth.235.2024.02.07.12.18.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 12:18:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57005-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=omp.ru); spf=pass (google.com: domain of linux-kernel+bounces-57005-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57005-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 1E8001C2331E for ; Wed, 7 Feb 2024 20:18:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 138261272B8; Wed, 7 Feb 2024 20:18:27 +0000 (UTC) Received: from mx01.omp.ru (mx01.omp.ru [90.154.21.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8B8C88564B; Wed, 7 Feb 2024 20:18:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.154.21.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707337106; cv=none; b=soXDOPHWzuDJ0idxpaop5nkvFm5uyKsKBwVWMfIFCzPvfalTSEZy9KBqa7XsZ+IcaPdTOZfD5A6vbCQ3/vI9uMJxuEvuQZPu8Lotm7EhAmytVNMc+kVYzdheY6WATJHFnIeDnQmISDeLeGkYYoYU76XVbtOs6SIetCLbEydfDD0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707337106; c=relaxed/simple; bh=oXnzbKg4KvM93XCckutIQEd0OfwflYIEUd6BPYR2n0I=; h=Subject:To:CC:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=KfjUTMgoLg62wk1GOtgEblTe9BNY+vrfeqCtVHH9aCFl9/SznEKKgLsrzpFY19B50rioVKTi2lt33SrhzkN49M1A1Q3+7ocigiS2c9ShBIzkTe5UQJ2jgDGOlXtcKrYJNfVC0u886UR3e5H9cdxR+MWuQ2H7U2AegTc7EDrxWHA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=omp.ru; spf=pass smtp.mailfrom=omp.ru; arc=none smtp.client-ip=90.154.21.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=omp.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=omp.ru Received: from [192.168.1.105] (178.176.76.58) by msexch01.omp.ru (10.188.4.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.1258.12; Wed, 7 Feb 2024 23:18:14 +0300 Subject: Re: [PATCH net-next 3/5] net: ravb: Return cached statistics if the interface is down To: Claudiu , , , , CC: , , , Claudiu Beznea References: <20240207120733.1746920-1-claudiu.beznea.uj@bp.renesas.com> <20240207120733.1746920-4-claudiu.beznea.uj@bp.renesas.com> From: Sergey Shtylyov Organization: Open Mobile Platform Message-ID: Date: Wed, 7 Feb 2024 23:18:14 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <20240207120733.1746920-4-claudiu.beznea.uj@bp.renesas.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: msexch01.omp.ru (10.188.4.12) To msexch01.omp.ru (10.188.4.12) X-KSE-ServerInfo: msexch01.omp.ru, 9 X-KSE-AntiSpam-Interceptor-Info: scan successful X-KSE-AntiSpam-Version: 6.1.0, Database issued on: 02/07/2024 19:57:12 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 59 X-KSE-AntiSpam-Info: Lua profiles 183286 [Feb 07 2024] X-KSE-AntiSpam-Info: Version: 6.1.0.3 X-KSE-AntiSpam-Info: Envelope from: s.shtylyov@omp.ru X-KSE-AntiSpam-Info: LuaCore: 7 0.3.7 6d6bf5bd8eea7373134f756a2fd73e9456bb7d1a X-KSE-AntiSpam-Info: {rep_avail} X-KSE-AntiSpam-Info: {Tracking_from_domain_doesnt_match_to} X-KSE-AntiSpam-Info: {relay has no DNS name} X-KSE-AntiSpam-Info: {SMTP from is not routable} X-KSE-AntiSpam-Info: {Found in DNSBL: 178.176.76.58 in (user) b.barracudacentral.org} X-KSE-AntiSpam-Info: {Found in DNSBL: 178.176.76.58 in (user) dbl.spamhaus.org} X-KSE-AntiSpam-Info: omp.ru:7.1.1;127.0.0.199:7.1.2;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1 X-KSE-AntiSpam-Info: ApMailHostAddress: 178.176.76.58 X-KSE-AntiSpam-Info: {DNS response errors} X-KSE-AntiSpam-Info: Rate: 59 X-KSE-AntiSpam-Info: Status: not_detected X-KSE-AntiSpam-Info: Method: none X-KSE-AntiSpam-Info: Auth:dmarc=temperror header.from=omp.ru;spf=temperror smtp.mailfrom=omp.ru;dkim=none X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Heuristic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 02/07/2024 20:07:00 X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 2/7/2024 5:40:00 PM X-KSE-Attachment-Filter-Triggered-Rules: Clean X-KSE-Attachment-Filter-Triggered-Filters: Clean X-KSE-BulkMessagesFiltering-Scan-Result: InTheLimit On 2/7/24 3:07 PM, Claudiu wrote: > From: Claudiu Beznea > > Return the cached statistics in case the interface is down. There should be > no drawback to this, as cached statistics are updated in ravb_close(). > > In order to avoid accessing the IP registers while the IP is runtime > suspended pm_runtime_active() check was introduced. The device runtime > PM usage counter has been incremented to avoid disabling the device clocks > while the check is in progress (if any). > > The commit prepares the code for the addition of runtime PM support. > > Suggested-by: Sergey Shtylyov > Signed-off-by: Claudiu Beznea Reviewed-by: Sergey Shtylyov [...] MBR, Sergey