Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6262387rdb; Thu, 14 Dec 2023 12:58:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IGbi3TNTaUz4SmhOzrDU1ASmSUv62VXbVbgcZxBDvF91kvB6GrnEAOm2B+bfaq+mutB8JFl X-Received: by 2002:a05:6a21:47c6:b0:191:e72c:24d7 with SMTP id as6-20020a056a2147c600b00191e72c24d7mr2045884pzc.24.1702587533070; Thu, 14 Dec 2023 12:58:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702587533; cv=none; d=google.com; s=arc-20160816; b=enSzOnaeIEbHkuMjlt5ZgyFB1SMEq4pzDEn9rqUaOnxfktfjVCva8sXzNd7byaLO9j UDtxwxZPISf+U9iCgl6X48eV31TJCoPQxqDjH5qVpfPjZPD1V4EhKUdLJCU4gsF5uGJE cFfmfKo2HNPwxivrcLIYDmWa+gLwRWbfdq59fZG7J5/k6M26AQAZkc++br8x3ST68hUf A68X+jBhFDkbcm4gvZQ0N9vV9UgdRoDwzrSvSOJVdbWWqZqwEVVbYdFSGDSedGCUZk98 3K0ypb7dnZKG8E6MrRsidqDuH1MBK6i008lIFJYS8L7vCMgOj/Jg1U3jSodAa48DvICa 7IkA== ARC-Message-Signature: i=1; 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=wCz4T2IoU5yEqvL7KwU1IVCDNbdVkLRbpZWIemuYQUY=; fh=2RsYFHEIGT6SdwVMn2Fr/vWWtVyxDK3oO9pDiUb5rTA=; b=apTXhhK7RGiX0cTbDuG55JZbigUhprf06d+iyTkHKPlbWWRT5P2rjJk1vMvmmvcks+ OlG24/I/V+SfuYR6y2I7Z4x2Vpab79/VmMZ5nPVBlTqZUuxDhaeZs48QFmTpIu164ADT aJHQyybyV6nixFqjH/cPM92E5IQcbskW11JRzW5y4PryV9iECUi7lDxnFj8YYyUkmr3g OYiEpt41nPFgeJxvDvTBRWwz1cLgjgLNoPECFiFttKUyrZ1e6xQ9mm0qAGuIkTpNbzol Sy4rKvBkEvltHSNA6BKBFFDq8G88t2+fOkNYAHZT2B8pCt+NTjV5ikEUCaOOb4UUCsl6 u6Rw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-100-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id c11-20020a62e80b000000b006be1d2ee8f9si11776995pfi.224.2023.12.14.12.58.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 12:58:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-100-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-100-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100-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 C1CFBB21C61 for ; Thu, 14 Dec 2023 20:58:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B582A3BB21; Thu, 14 Dec 2023 20:58:38 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org 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 688146A001; Thu, 14 Dec 2023 20:58:14 +0000 (UTC) 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.104] (178.176.74.138) 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; Thu, 14 Dec 2023 23:58:06 +0300 Subject: Re: [PATCH net-next v2 06/21] net: ravb: Assert/de-assert reset on suspend/resume To: Claudiu , , , , , , , , , CC: , , , Claudiu Beznea References: <20231214114600.2451162-1-claudiu.beznea.uj@bp.renesas.com> <20231214114600.2451162-7-claudiu.beznea.uj@bp.renesas.com> From: Sergey Shtylyov Organization: Open Mobile Platform Message-ID: <223486bc-a03c-8d86-780c-38c3e14e055e@omp.ru> Date: Thu, 14 Dec 2023 23:58:05 +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: <20231214114600.2451162-7-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: 12/14/2023 20:40:34 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 59 X-KSE-AntiSpam-Info: Lua profiles 182128 [Dec 14 2023] 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.74.138 in (user) b.barracudacentral.org} X-KSE-AntiSpam-Info: {Found in DNSBL: 178.176.74.138 in (user) dbl.spamhaus.org} X-KSE-AntiSpam-Info: 127.0.0.199:7.1.2;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;omp.ru:7.1.1 X-KSE-AntiSpam-Info: ApMailHostAddress: 178.176.74.138 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: 12/14/2023 20:46:00 X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 12/14/2023 7:08:00 PM X-KSE-Attachment-Filter-Triggered-Rules: Clean X-KSE-Attachment-Filter-Triggered-Filters: Clean X-KSE-BulkMessagesFiltering-Scan-Result: InTheLimit On 12/14/23 2:45 PM, Claudiu wrote: > From: Claudiu Beznea > > RZ/G3S can go to deep sleep states where power to most of the SoC parts is > off. When resuming from such a state, the Ethernet controller needs to be > reinitialized. De-asserting the reset signal for it should also be done. > Thus, add reset assert/de-assert on suspend/resume functions. > > On the resume function, the de-assert was not reverted in case of failures > to give the user a chance to restore the interface (e.g., bringing down/up > the interface) in case suspend/resume failed. > > Signed-off-by: Claudiu Beznea Reviewed-by: Sergey Shtylyov [...] MBR, Sergey