From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (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 34F22336EDA for ; Mon, 13 Apr 2026 11:42:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776080557; cv=none; b=enqTAhFQSznboamt93Pu9IQ49YisGXwKAkRCbuDeR1cgh2eGrTIfSh2Kz80DA8CXqATeHZ7Il1a1rY/vp29APX7Og+VCfzR81AQVwSU7NYmKBd8l/ymYwEdGBzuJDcPwuiXDKjlKNIKc1uahtxK9hW+MeHtnWvcIclKiXXHXcCk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776080557; c=relaxed/simple; bh=NLXHhPcIGMdge6o1caxWBwb7uAty/542sLjb35QkF88=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LBUHxYBKapwNzm/ZuE/m+GKlLC8uP/kXBq+c3KpDr2VstunJFunmmdU4oZU8cdv640R1Qi9a89W1ugS/lab7LegdL2hVqUysvu+X+tI8Sn+7NeS9XQVEVnRmVspwxCa9H2U6rwF3pAYsAFfAGDKWR41+NZ0dh35Qx1DE4J1Niys= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=starlabs.systems; spf=pass smtp.mailfrom=starlabs.systems; dkim=pass (2048-bit key) header.d=starlabs-systems.20251104.gappssmtp.com header.i=@starlabs-systems.20251104.gappssmtp.com header.b=kGfM2OQm; arc=none smtp.client-ip=209.85.128.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=starlabs.systems Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=starlabs.systems Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=starlabs-systems.20251104.gappssmtp.com header.i=@starlabs-systems.20251104.gappssmtp.com header.b="kGfM2OQm" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-488b0e1b870so69051435e9.2 for ; Mon, 13 Apr 2026 04:42:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=starlabs-systems.20251104.gappssmtp.com; s=20251104; t=1776080554; x=1776685354; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=IeQMeY8LdNwnUo62ZTj/KNq/NGfRGEOBpJ7zKrUgHkw=; b=kGfM2OQmC8kce2e8/yUmlj4txrzQbwFGnU4dMo2N8LqsGf14SK1Y/XYe0sVJScSNIj 0ANBXPS2vyS3YW37wAjTRF81UxSApIuPMtlvIpHbUBebrbLuZuoyzownp44xLLJqWRg/ 2TLKqtOeDscG1FRPxIdpKXhpd72nKNuFzkomCfM5GrzE0bK2S1Qwr+6XmZE3MpyTuBXw cnL1WNCzfLGO7QZm5w77+6w8K3Md2s7RWS6VHatkMD+yw5rZA2qwczY6hvgOGiEwj/hR NDcEalm9lY/Bnxcw3IKwlAazQhRQARO6IqNY4NlSqt6rthdQgWM0KPjlbZyJT03Nd8Ai nbZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776080554; x=1776685354; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=IeQMeY8LdNwnUo62ZTj/KNq/NGfRGEOBpJ7zKrUgHkw=; b=Bh0Jo7TYeKAnae5TNb8mwqMRPGr5ZAvqPPvZ+W2YQq611ieSA1RKOWmj+YlBiEQ5cz nfJu8xcHSXHgStjRmC1h8MpnIynsyY2GkzhOAPrtnF4fKgiqN/I1IOsyZ0usrJiPGxE6 9wjtxzmux6hQBy0HEnEWdR0ErcY5XvUqWkJ5o0UR7VaMbHJ3aMS+9v/H3WOmo2eKmN+n Jt++LKbrWUewWfC+0eWxD2AFcqGyQKr3ptfHzjLUPgaKBNwOWm5DNjJ5FW68ax1JEKjB 2as2VhmnB/B/Tg7MkLvYiPc/ES/Hp2r72vEhZkgGp5n50CDIl562MANynIjI7RuZJJ58 Bw8A== X-Gm-Message-State: AOJu0YyFgFSWrNhXeKb5QHOnVOwF38RaY/JqyNS87IWdqdlBtBu0VPZm Rj+mz6QzVCmxyt043V7WEnIdBvaTuS0XGp6vu6WWSBROt1jBIAq4MOdev6drG7+1wvf9ANDZzxq MQ+v1gQ== X-Gm-Gg: AeBDies3p5k6bwfNts5yLQFRz7V9Rgz8q79c+a8sR5FOKHWwZ+h/Jqt2Iv24n1Mzd0l HBBzDGgrLVUDXJ/ysdcUd8B8yplZ3WN5YtnT55VENS9CYlM/e/cK+bLwD9LiS1p7iG/3czTDvOI T3UNxWoqNKFaty6fD16dWHIPj0irqmm+3kf38RHZ3oTzjgsXPNbgd59yrmmOyOzdUST1Si+Yaur wMfyd+pPI6nNWuWRDwGqBQo/uJGRma2SuaLTAORP3HN4Mf2rIpHHq1Xcpa1QlF7J3ZY4obI2xb/ C4SW0Gqu2OB3JdYWUPwT0aM+qBghDmWAy0jefqgxqrMNwzoKFDzdSboqKiOqOKXIWa9TFadklv6 GjT86zt8ShX5vXylR5bwbM+b1dddmZRqKoWMMgjEjLMqmknht9GgTZ/LP/J7BeGxJJTaEXdOS4t 058+zWShPjESATcGmQAZtHIgXi4iRFOYGzF6JYTyYPh6dkcGAPXTrV0WXGZtrYn3/L2WkkWsOGI 9pH7LA= X-Received: by 2002:a05:600c:4f95:b0:488:be58:bb5b with SMTP id 5b1f17b1804b1-488d686c443mr182009275e9.24.1776080553975; Mon, 13 Apr 2026 04:42:33 -0700 (PDT) Received: from horizon.localdomain ([212.105.128.254]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-488d67b46ffsm126301165e9.6.2026.04.13.04.42.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Apr 2026 04:42:33 -0700 (PDT) From: Sean Rhodes To: linux-kernel@vger.kernel.org Cc: Arnd Bergmann , Greg Kroah-Hartman , Sean Rhodes , Ulf Hansson , Ricky Wu , Ingo Molnar , Thomas Gleixner , linux-usb@vger.kernel.org, linux-mmc@vger.kernel.org Subject: [RFC PATCH 0/2] rtsx_usb: runtime PM fixes before tray-reader detect rework Date: Mon, 13 Apr 2026 12:42:29 +0100 Message-ID: X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This is an RFC for the USB/cardreader side of the rtsx tray-reader issue. Assuming the separate resume-reset fix has landed, this is the next step: clean up runtime PM handling in the USB/cardreader layer before attempting any further MMC-side detect changes. Patch 1 holds a runtime PM reference across transfers and marks the device busy afterwards. Patch 2 avoids issuing USB register I/O from the runtime autosuspend path, which can deadlock runtime PM and leave the device stuck in a suspending state. The remaining tray-reader false-detect problem likely needs event qualification on the USB/cardreader side rather than MMC command probing from ->get_cd(). Guidance on the right place for that logic would be useful. Sean Rhodes (2): rtsx_usb: hold runtime PM during transfers rtsx_usb: avoid USB I/O in runtime autosuspend drivers/misc/cardreader/rtsx_usb.c | 49 +++++++++++++++++++++++------- include/linux/rtsx_usb.h | 3 ++ 2 files changed, 41 insertions(+), 11 deletions(-)