From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.9 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796111098; b=0/qnLGlhPro0c3jjClpC0+rbuRbA6nkn+nVnun406k1wSIUtXeqsBpsKXmxNEz4OI5Jl HHZtnn1DluPwA6E0ATOycV+YrUVA0unUSes1xCMd6a3S4zUjtfAoOlhsKxB95zzJB/+nw ZljqGI+TOXg+kNAksjFAQPe0bmCunlIBNkspSZ86/AyxzfvIrVhcNKvuZq3VzhFJQJQHP j3tDZ5O/1CFemZrFidHrd05TN4X7gIGmq/fAiQAN3w9gvI8HgXy28dhyBsTUDtVkAKLu3 V1gQFstvWgKfY4WpvhpLkDJ2L7P/Q2GGLosBPrjdzQiFzxNooWZXfdmSAhxG5u2UGzw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796111098; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Date:From:To: Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=YLI6d+NWq7NfXylzl23Nph9QRomyig9OufGOy45uX2M=; b=XtJLsLYemtaOofg1+guTCeiB68WYBfbryNDJ0gHwJ1p0Hi3X6jGOfWsXp7Cr699p1Lfg IkJYiPkknkD7jDEoojwcz1X82Wx62DolaU92DeQevbPFmyy0FFovOvnF0XFEoKwPkeiXz o+Rn1DearskGuyh+hhMsq1wLGwWMpsthHypQk8rWfqZnvHr/W+xBJqC+CavG137n9zmrL 6/h6k864tgpgAePX68Aj41DQunnf26htpGrth9eoWHIkkYQ8wF7uDxsjC7QXTjyXHvGqP B1R5mLgRRQZbm8uHBXft6vseTI2Y0kvhBHXJI+4qNJvOqs9Cbt+RBgpWluoSZ3HMj1A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=gp0QnyMR; arc=none smtp.remote-ip=198.175.65.9 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 82E1B606A333; Tue, 1 Dec 2026 07:44:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 82E1B606A333 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=gp0QnyMR DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796111098; x=1827647098; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=YLI6d+NWq7NfXylzl23Nph9QRomyig9OufGOy45uX2M=; b=gp0QnyMRsrLJ6O+RnL8+svY5nr3XC4QtjLysuU0/xfoMO4q2JlsdUAx+ bmxUO3RBOCuXA90owMgwAUlGIQhJblYtlSa70Mxaq8xdk8DOnej5feXXq e9gHnW68xusfG4loEMJWzMY94c/RLU+aHv7Shqw70pIrn9dJPMl2rQjpb X1yirShZGyhAsm1Fk5rFxLrY3OfC/Pa5vwRFB2W6SV/BHkcaXRLDlnX+p C1YWPUmrvOPcxDHtPEjzoQZaMD0xpNQeQxUEnDXZ/WkqOs884EcO/sEsf kql7I0C/9fpCtBOaMb882+MYRPMYMsmwk0JOupfq97ohMIev9Ku/rpJbF Q==; X-CSE-ConnectionGUID: MFTb5/4WTvO6z7FTJ+8itQ== X-CSE-MsgGUID: n+7EidWJQdaZHtibQYB5lw== X-IronPort-AV: E=McAfee;i="6800,10657,11982"; a="4878931" X-IronPort-AV: E=Sophos;i="6.27,244,1787036400"; d="scan'208";a="4878931" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2026 23:44:57 -0800 X-CSE-ConnectionGUID: uQ2o4OXrS5KpsX1IF7Lk/Q== X-CSE-MsgGUID: wCitiaM2Td++yOINfoNXZg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,244,1787036400"; d="scan'208";a="13466161" Received: from black.igk.intel.com ([10.91.253.5]) by fmviesa006.fm.intel.com with ESMTP; 30 Nov 2026 23:44:52 -0800 Received: by black.igk.intel.com (Postfix, from userid 1001) id 5B11898; Tue, 01 Dec 2026 08:44:51 +0100 (CET) Date: Tue, 1 Dec 2026 08:44:51 +0100 From: Mika Westerberg To: Konrad Dybcio Cc: Vinod Koul , Neil Armstrong , Manivannan Sadhasivam , Bjorn Andersson , Konrad Dybcio , Abel Vesa , Stephen Boyd , Brian Masney , Jerome Brunet , Andreas Noever , Mika Westerberg , Yehezkel Bernat , Mario Limonciello , Philipp Zabel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, linux-clk@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, usb4-upstream@oss.qualcomm.com Subject: Re: [PATCH RFC DNM 09/15] thunderbolt: nhi: Resume the domain if the NHI suspend op fails Message-ID: <20261201074451.GT953667@black.igk.intel.com> References: <20261124-topic-next-20261116-fsm-mvp-v1-0-a9b45c69cd38@oss.qualcomm.com> <20261124-topic-next-20261116-fsm-mvp-v1-9-a9b45c69cd38@oss.qualcomm.com> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20261124-topic-next-20261116-fsm-mvp-v1-9-a9b45c69cd38@oss.qualcomm.com> Hi, On Tue, Nov 24, 2026 at 09:01:38PM +0100, Konrad Dybcio wrote: > nhi_suspend_noirq() and nhi_runtime_suspend() suspend the domain first > and then call the NHI specific suspend op. If that op fails, the error > is returned with the domain still suspended. The control channel is > stopped and the switches are marked as suspended, but the PM core routers Note once the domain sleep is started, there is no way going back until it enters sleep. > treats the device as active: it does not call resume_noirq for a device > whose suspend_noirq failed, nor runtime_resume after a failed > runtime_suspend. Nothing ever resumes the domain. Hotplug and config > space accesses stop working, and the next runtime suspend attempt > suspends an already suspended domain. > > This happens on Qualcomm USB4 routers whenever the router firmware does > not acknowledge the sleep request in time. The op then returns -EBUSY > with the router still up. Is there a reason why the firmware does not ack it in time?