From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 7C9064ACC95 for ; Mon, 5 Oct 2026 14:50:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791211804; cv=none; b=tGSBaVjzl4FA8pmvCdMW2iIG2YYPf2HE2yyu5HoddtUEgx2XzW4sb+gl7vXlSEVMkJ7KsKxMfchZwNhXwrprV2wOxVxM67vsvPug5MvTwDE8A2BnTAf3DzWXB68luzX+k8vJAkd45ThZkrVEBrVujgTM+wddqpJYFM48Rsdo0/c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791211804; c=relaxed/simple; bh=5ttNpD9vcXowxHc4V3ptpisb/kJaGu0xPA2Q/8ciHxE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QvGHIh1X226uPLLOCteK7iH2z4qiSB4HWdVIK8wyKgpj8CnGp0Ps2LwMR7VHBiN97AJwNfLg1YHaEAn/o8Py/mFndI9Ilu/cq4IctMcNDRbLzwBjtZVA8C/DO8+VVGf361K5eN8nGVFZ3CD+g4Xx3hnxDkttzo+MzM7R7S1NYWM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jcQiQqo1; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jcQiQqo1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED8E21F00899; Mon, 5 Oct 2026 14:49:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1791211798; bh=W/xzKfsIJntIxrOi0QBw6qLddQ0SJREOpqUSFyrQ7UU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=jcQiQqo1JV4a5KJrXKxTdAGYu18lj+JTlRjRWmNTgYBQTvZo9aESTY4NV6bs4ZO2m R/nxPHA+w4Ahl3TzhbFepJDzz2aIzn76imnOz4klddpy7a9tmCyEbPhUMXuRt+Dman qhowRXuNsQcqyCgDMpuJE0aqRU5PeD2E65lkdfbGMwMzAQl98aC2vj2HCBib1T8D2t +inuXqnLFijqHN/qMjDujItlSMDkSZdxouU1RnahvYoDzlOksPF+uqdGQ5aLQbS/Dq EPdOJdj6iH2uLv4s/0J4u/oRiFn8UkHkKNu9QmikYVb9qYvfJrFUNp3qbbZkOFryiE kfjAH4fzwcIcQ== From: Sasha Levin To: stable@vger.kernel.org Cc: Myeonghun Pak , stable , Ijae Kim , Alan Stern , Greg Kroah-Hartman , Sasha Levin Subject: [PATCH 6.6.y 2/2] usb: ohci-spear: disable controller wakeup on removal Date: Mon, 5 Oct 2026 10:49:53 -0400 Message-ID: <20261005144913.3022101-2-sashal@kernel.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261005144913.3022101-1-sashal@kernel.org> References: <2026100501-compare-xerox-0894@gregkh> <20261005144913.3022101-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Myeonghun Pak [ Upstream commit b1b0f8bdbbc891a4ee7f3b1a878c633e02b7bbeb ] Probe enables controller wakeup after the OHCI core marks controllers with RemoteWakeupConnected as wakeup-capable. Removal does not undo this, so the wakeup source can remain attached after driver unbind. Disable controller wakeup after removing the HCD. This issue was identified during our ongoing static-analysis research while reviewing kernel code. Fixes: a6eeeb9f45b5 ("USB: Update USB default wakeup settings") Cc: stable Assisted-by: LLM Co-developed-by: Ijae Kim Signed-off-by: Ijae Kim Signed-off-by: Myeonghun Pak Acked-by: Alan Stern Link: https://patch.msgid.link/20260915012011.61874-4-mhun512@gmail.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/usb/host/ohci-spear.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/ohci-spear.c b/drivers/usb/host/ohci-spear.c index 3192d7ce04fec..f9414b2de65b8 100644 --- a/drivers/usb/host/ohci-spear.c +++ b/drivers/usb/host/ohci-spear.c @@ -103,6 +103,7 @@ static void spear_ohci_hcd_drv_remove(struct platform_device *pdev) struct spear_ohci *sohci_p = to_spear_ohci(hcd); usb_remove_hcd(hcd); + device_wakeup_disable(hcd->self.controller); clk_disable_unprepare(sohci_p->clk); usb_put_hcd(hcd); -- 2.53.0