From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (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 F422E5D477 for ; Fri, 22 Nov 2024 16:47:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732294042; cv=none; b=ljCFoHGX1oS20WBdupeZRIiN4ZwYWkKzdMDaHQhb6SZYhXu1SGMoFpdr72EN7GzDZEynvXG41V/JQzmNAUHTaVG5h84+vRyyZEkpYPsqvmUHTespU2iLDajsbMe/vXfLtdaK8/pIFghZs+dqoulyV1aHkffZT8jWP5dvwvsm7xA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732294042; c=relaxed/simple; bh=ItNTKavT00h+piga1HTfcObBvAtBiGxqCrbjRJ1Tavc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=FJP3YA0F0E8sGDRfyBtJXi5oqXfgOEDyF7R984aBEZ72eTA0aWpdm1gHitGoDGvYkZiO8dz8RIayiK5/6tFKBbDFHYXQgkjvR14I6hm4kpEP9fu61ykyQCgdYvKLbdOPkrv1EoQRUuQ8GJLl1mLFluj55/DTf7iV9268tEPrq0o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=N7sxXxm2; arc=none smtp.client-ip=209.85.214.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="N7sxXxm2" Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-212884028a3so14085645ad.0 for ; Fri, 22 Nov 2024 08:47:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1732294040; x=1732898840; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=kzq5xBGhrLm4GuYMaG3vOjkgbW2jTLhEik+B/AfpKr0=; b=N7sxXxm28qpSXdKXM1+JiWGvFRcSNDETzc91Xq/qDHCDzGC+Q7wjdupj7fQnIRqf7z qOd1jUlf2NO/MXy3qRwmHqEjJUVksk9IuTtuNdVwvareJuu41Oot2YKDmqaZb5wMiPJZ d9Cw/Z3hSFZ2KEtSRk4A0H+aNVDgDVzPs5nnGauQD5KeStHBiJNRvDTK+AlaoyyPcL2T g2uskKblMTx4NkQ+KozZqPC/aspdSRiC0Wzr9YMwGvJz1aGM2/sZvffUMukkkx6Trg7u ONTSqxQ9394/HY6LpZzlhR/8uljXKZrtZ0IEOFDZZakqTukL1ZaHU/0Kaze+SjCgPjGg OOQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732294040; x=1732898840; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kzq5xBGhrLm4GuYMaG3vOjkgbW2jTLhEik+B/AfpKr0=; b=qzibBtDXZ9T1NtJbgM92rKw2cQhBKdn0pkhtMhZQVXiXNQw7+AXPwveXQmN/Qz40Ts Bcs3gRa+dVLIprI1d3ri3pjg54a7aXyDGT/51bmpikPAvUbB3Kffjewn39GgPRBLdrZm Ob0w4j9f/Mv7Yk7JzvCKuceMDR1VPmitUY4ByQaJvjv0JZ4+o3hZKcBD7BIYn1gIx0W9 PsiAZFp3V8MfnqRvDmajFqcn19dX3duq4HEYTmYgX0EXC6ituMrdZJcTEfDQdXyBboMK JEaZCd+nLJtDhXGVvGQVeY94vZeuNWunhWxSFwmO1lVB801sg7gnG6NNQxG5gRAMuR4H A2Qw== X-Forwarded-Encrypted: i=1; AJvYcCXYkj8tEbb2jk1CHxX+bD/FWNy5/jxy5oMjbedsjFk8vMC4GGmpkCMA43g9j3VQdZcBPqeR7OfQwCK5@vger.kernel.org X-Gm-Message-State: AOJu0Yy6aFsQJ3FMp5u+7n0d3zo4iFzkLHiMVgsXTkZKXj6Wc5voB846 KWZhakZtC3Ot74rahJ9eelbQkGYFJzKpFi5l6Wg2EtoQjpb2XlSq/bgq3or9VA== X-Gm-Gg: ASbGncsMDeozawbub5vsVyv56RI63g7dXWaD2ma54txamecjEq10R7B+e+pDkTCJ9Nu nsPh6IJBTp0Q+gBnFvuEnDPlru2sdeXdtKH9dbS02nFg0RatikLnA04e3bVRnQnRaZWrrvD3CeU Z/87UK6xqVIC8GuCnGc6O0EaOfKYM8dmhbjXMvOtGon4gQXg3h9qrQ+sF/rzFVnLYaG1pjs5Bxf Hu1Zzs+tJYtsVp6cMXKDyjQT0QaWhqoBJp+5BECtHehU5LSjeYvG9B4tk/q X-Google-Smtp-Source: AGHT+IH2RH2HUiPHMzLk35ACiz5SeB6Uib1iKjXQGa54thdOMDLFrThNUfglBoU0p2O84vxcD04wlg== X-Received: by 2002:a17:902:f70d:b0:212:35f5:b564 with SMTP id d9443c01a7336-2129fe2669emr56816865ad.7.1732294040271; Fri, 22 Nov 2024 08:47:20 -0800 (PST) Received: from thinkpad ([49.207.202.49]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2129dba357bsm18336365ad.88.2024.11.22.08.47.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Nov 2024 08:47:19 -0800 (PST) Date: Fri, 22 Nov 2024 22:17:14 +0530 From: Manivannan Sadhasivam To: Hongxing Zhu Cc: "l.stach@pengutronix.de" , "bhelgaas@google.com" , "lpieralisi@kernel.org" , "kw@linux.com" , "robh@kernel.org" , "krzk+dt@kernel.org" , "conor+dt@kernel.org" , "shawnguo@kernel.org" , Frank Li , "s.hauer@pengutronix.de" , "festevam@gmail.com" , "imx@lists.linux.dev" , "kernel@pengutronix.de" , "linux-pci@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v6 08/10] PCI: imx6: Use dwc common suspend resume method Message-ID: <20241122164714.aj4dzv32zixdj7pq@thinkpad> References: <20241101070610.1267391-1-hongxing.zhu@nxp.com> <20241101070610.1267391-9-hongxing.zhu@nxp.com> <20241115070932.vt4cqshyjtks2hq4@thinkpad> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Mon, Nov 18, 2024 at 03:00:44AM +0000, Hongxing Zhu wrote: [...] > > > -static void imx_pcie_pm_turnoff(struct imx_pcie *imx_pcie) -{ > > > - struct device *dev = imx_pcie->pci->dev; > > > - > > > - /* Some variants have a turnoff reset in DT */ > > > - if (imx_pcie->turnoff_reset) { > > > - reset_control_assert(imx_pcie->turnoff_reset); > > > - reset_control_deassert(imx_pcie->turnoff_reset); > > > > Where these are handled in imx_pcie_pme_turn_off()? If you removed them > > intentionally for a reason, it should be mentioned in commit message. > > > How about add the following descriptions into commit message? > SRC interface is used to do the PME_TURN_OFF operations before. It's not very What is SRC? > suitable. Now DWC common driver can do the PME_TURN_OFF kick off. Switch to > this common methods, and remove the useless turnoff_reset manipulate codes. > Hmm, so 'turnoff_reset' is used to send PME_Turn_Off msg? If so, then you need to say in such a way that the reader should understand 'turnoff_reset' was used to send PME_Turn_Off and since the DWC implementation is used, it is not needed now. - Mani -- மணிவண்ணன் சதாசிவம்