From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 372182FC03C for ; Sat, 8 Nov 2025 10:24:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762597461; cv=none; b=QwWgz4Hvl7LknTyy2LwMEWqMwKVM7VvOJ/uFimWgSVnWTnUwzx5zRQQ2EUhef2NYaE0Q/oSyow5KYJcjymmlt9m3yvf0qA8ldc84CVqH6TpwWda+IELI0vkH1q5MQDRu/2LfoPhuQEy2pb/yL7ygjN+nGgWqdDmQKk9rcSuewBE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762597461; c=relaxed/simple; bh=OBXQyyiRnV5P6T4/0rso05iYgsLlgGJkTVAJYjw8Auc=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=nJVxkHYUeCaenSDEL6zoNuwqty9wmjel3hBPA95Cpq48MOjsSdVIAyoOxzxcZnJ/or+rXY8K8KOdQG0l66S73qpESubHRsLaDbE8tTlerxYYiCoEuVeZL0k5oob3Eq+TfaNoJuIPWkLt413Bl9BW0m1YFmT32VSepjJv1HDNv0s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=blnBVAm/; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=O3HRuwDd; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="blnBVAm/"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="O3HRuwDd" Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 5A88PNoc1303525 for ; Sat, 8 Nov 2025 10:24:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 9xFvCakMilUVUKVSlDxB2TZgTXXCUk5m7R9Z4TRMH/Q=; b=blnBVAm/LMjW79N2 BjyZEYO5lnYHyBZOYYfeRUecEoCfb1NcngKXvAd3n4fFoYCo4va5TspyBdH5kv97 XQiQ9np8mTURoM/LkiLi/xxeiZ17EYPJrXOY6z4wq1L+4b8zL2ZJeV3AActd1Si0 Bgp7ldB7pguhayrvJi3LA5Dda2Qwy0VghfHzrGOO2DGRorC3/Q+yiKJtnILb2sCA VMYuci7yb4KAu6n1tw7nkdUEf6uK1VEvNUw5rg9NzTI7UnHAe+OeH9EQPiVYKiMy eCw50/Q9g34txXNhuR2WwDvdy5wpUlWH5zWKZAFlM8Xz17sSj+bVFKj9T47EOlGh KGEcFA== Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4a9xu9rd8k-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sat, 08 Nov 2025 10:24:18 +0000 (GMT) Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-297d50cd8c4so23351915ad.0 for ; Sat, 08 Nov 2025 02:24:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1762597457; x=1763202257; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:date:message-id:subject :references:in-reply-to:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=9xFvCakMilUVUKVSlDxB2TZgTXXCUk5m7R9Z4TRMH/Q=; b=O3HRuwDdvisT7hLjVLoBWbaKZkqF7r6uSetaDDM3Nwlm+Tgfwv++hqo6zSv9kRP4sS uyYE2U8shCFvsna2TfVHKpHeMJWIM6etYuxUv9IF02kgCATUwUkScI8oHCDftiOtrrh3 vNMO4iryxbHgQpon+bsAdkACbG8Ia0CZvELNSbNZsUHSpLoMGBodwsUXnpD+4Y1NN/EE 1Fk4jeFhsE+kWeal1b3OjO7W9e2qJnuYuuBPLhaFY3HsWJQIzYSlD8QqUGTjpMCIAanW 91FHFZwFPDe6aaJWEi6L4X4T13dmkT2JKYvlqEQnhN79te47ACSoEgikNMO8lnM/F+DL 5Vkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762597457; x=1763202257; h=content-transfer-encoding:mime-version:date:message-id:subject :references:in-reply-to:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=9xFvCakMilUVUKVSlDxB2TZgTXXCUk5m7R9Z4TRMH/Q=; b=pL1E3AAhYAiMq1qAN1y8F1PJOx9jO4Jcex9t+5j0rnmu0EzTpMOE8vaAdUbjXVL2qo hOzOsGBvWVgACR3qBPvTOLT+seij8Gwv3LwjW6S1wP7SjtAGdjn7cxe9AS0t9CxhfKrU f1ECKACDyL4B9couzMcowNpF6yfAlFYag8S0/z7LfvXbfhjwxEbdTKdXOgOg0/Bo5gDQ TcwuXkrSOV1O7hLbIHWVUzKGj6N+H2L1Y+rsEbs5Bhg89NoERx5FmEhNzho3h62QClVt RinkKiUmpD3Nt80E/cOvl6QjfqeSSsPrxoCnn/plPumGE2F/rWCVMdJjdYJ6yypwjaN2 wJVQ== X-Forwarded-Encrypted: i=1; AJvYcCWFarkwVrOQxkO8d3jiTVHWB+qIAkAd60BHB1DTSrg+FCzGKmZrLFVrMqRcN9DlB6NQCiweh0mYbf8=@vger.kernel.org X-Gm-Message-State: AOJu0Yw7wM4a/17fDde0OO8L2tqNi82pFpCeSbOJbgJUwd3wN5PmjMcI T8E1uDtgWM6xvY01F/NTTsZXbYpOxTbuskvSsjT2f8pYskecEmU21LncZMFiWPJkSI3Yz5d7u6W f0Bn7zhoC3dFbuSOiTnWAys8Jbj/AM6mojOxfc95XIqhigfL04NA3kjUehuRNjuOxOeTKRkc= X-Gm-Gg: ASbGncs/UDuZZod0wSry2QFdqcbUgEP6xhfK+l7yPFgERxnFcjUZve4I0g6xKAkobNp bzRJ0xlqtTIGuZHZp873oFt41vCKVrtpYfxDRtjvsyce+a3OUR0WpeSsuvHyARSJ5TSB0IUF6d4 naNCg/VyfLKrNymTjPdGeTGO8fxkt/QWuFG3PDaYG/oDcu2kq3BuVktTk3x2Y75V443UZrmPazM j84vlNj73rLt/+MoxPK9HSL+LOHfXD1PJ8dgo/qdwTvvA0oAGP5n2id03JgZxyRmUYgu4g2xbCW fVeSt8O/FisIj9Ri5hVNl6o4RXKLa8BgOnCwpgd3dPM+g+pyEscm8RNfDDeA+FwSN1q7Rm/cZqr F X-Received: by 2002:a17:903:244a:b0:295:592f:94a3 with SMTP id d9443c01a7336-297e57101bamr23225705ad.48.1762597457429; Sat, 08 Nov 2025 02:24:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IHVmobcobGX2Zse5Wk8W+YonOcSi27oxPV5RU9wiYnBEochW9/Kr14E5FAmAOovcotaJUKmag== X-Received: by 2002:a17:903:244a:b0:295:592f:94a3 with SMTP id d9443c01a7336-297e57101bamr23225465ad.48.1762597456935; Sat, 08 Nov 2025 02:24:16 -0800 (PST) Received: from [192.168.0.104] ([106.219.179.230]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-ba8ffe3616fsm7641324a12.19.2025.11.08.02.24.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Nov 2025 02:24:16 -0800 (PST) From: Manivannan Sadhasivam X-Google-Original-From: Manivannan Sadhasivam To: lpieralisi@kernel.org, kwilczynski@kernel.org, bhelgaas@google.com, Manivannan Sadhasivam Cc: will@kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, robh@kernel.org, linux-arm-msm@vger.kernel.org, zhangsenchuan@eswincomputing.com, vincent.guittot@linaro.org In-Reply-To: <20251107044319.8356-1-manivannan.sadhasivam@oss.qualcomm.com> References: <20251107044319.8356-1-manivannan.sadhasivam@oss.qualcomm.com> Subject: Re: [PATCH v2 0/3] PCI: dwc: Check for device presence in suspend and resume Message-Id: <176259745262.10508.495485306102349892.b4-ty@kernel.org> Date: Sat, 08 Nov 2025 15:54:12 +0530 Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.14.2 X-Proofpoint-ORIG-GUID: PhRkyFRKpK8qR5f7L32umK7oeOYm7eF9 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMTA4MDA4MyBTYWx0ZWRfXzKjZsMeMfkHs H8jGi/9qTVt1t7X2gOgRzi1Clx1kiFzhiMnLqwmkxQF0Q+fCloVMsctQewCPXftqc+naGbSG6WT hSyhTY4y0/B9vNW24EtwnuphUWe9POjW0v5aof6SBciHgUWUhfjT2+5HkUS9WNoffzWwKxPbEd3 zuAVSZBzCNjhsbAHr7j3i5qXka6p58sHk9Tj0PCQ26cD1GIylMJ926sD9qGZrE0Gn+Oqvnm7FfS 2ToRM9Ia8L7liU8vLtpVKH9yP0f7XjAFL4lM48rGiOnW0owFcG29EIHCe8HmYJrT3ueUleHcgJI onAvIWSTDUxTSO9b13dGkGaI1KMV6sfrcf3LlrESoKQ2DaIV93EVREuy4PtPn5jYYW/fAqd+/72 ksNDSzUFD32gHKd+kiaBzRwFUpi+Wg== X-Authority-Analysis: v=2.4 cv=ZPXaWH7b c=1 sm=1 tr=0 ts=690f1a52 cx=c_pps a=JL+w9abYAAE89/QcEU+0QA==:117 a=qronr9GGDLuyXDLutoyxMA==:17 a=IkcTkHD0fZMA:10 a=6UeiqGixMTsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=VwQbUJbxAAAA:8 a=5zNQnkP-R6VSWKDTgaQA:9 a=QEXdDO2ut3YA:10 a=324X-CrmTo6CU4MGRt3R:22 X-Proofpoint-GUID: PhRkyFRKpK8qR5f7L32umK7oeOYm7eF9 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2025-11-08_03,2025-11-06_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 lowpriorityscore=0 bulkscore=0 suspectscore=0 clxscore=1015 priorityscore=1501 phishscore=0 spamscore=0 adultscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2510240001 definitions=main-2511080083 On Fri, 07 Nov 2025 10:13:16 +0530, Manivannan Sadhasivam wrote: > This series aims to fix the usage of dw_pcie_link_up() API to check for Link up > during system suspend. The motivation for this series comes from recent > discussions [1] [2], where developers wanted to skip PME_Turn_Off broadcast in > dw_pcie_suspend_noirq() API when devices are not attached to the bus. They ended > up using dw_pcie_link_up() to check for the device presence due to the bad > example in the pcie-qcom driver which does the same. The usage of > dw_pcie_link_up() API here would be racy as the link can go down at any time > after the check. > > [...] Applied, thanks! [1/3] PCI: host-common: Add an API to check for any device under the Root Ports commit: 64a4b36d229120a71ede91aed16519164a181c13 [2/3] PCI: qcom: Check for the presence of a device instead of Link up during suspend commit: b6811cd64ac54fb2426b6ce35ba7c63588402687 [3/3] PCI: dwc: Check for the device presence during suspend and resume commit: e8fe6b3413a1b92b4bc0f0182ea4b49ee369541b Best regards, -- Manivannan Sadhasivam