From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yw1-f170.google.com (mail-yw1-f170.google.com [209.85.128.170]) (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 B4A0D36075D for ; Mon, 16 Mar 2026 21:23:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773696209; cv=none; b=r99NyfhUEngh5ionzGpfyRwUTej+3I7mGNI0o1Z5rEl/BzzebIwz7yRyigmxo0D3ef+5aop5B9wo5JCSG7clWBKnjjqzGSuH1mNe3WIKQikLFGGNgBMcd9l/UiNSWtG6h0FnsHTbSgeNU9EPlnx3DgWFspoYnf7rkPL/4WE6s+E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773696209; c=relaxed/simple; bh=BubXRIrH9jXWU7pnIeIHWLpVgty8H56G7a4Ji70u71I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BVKCJNWWN8sjoRIVXIcWMKnxpT9sSmeNVhm74tx8mXSon/2Xb6LQyTpgpHxb4OyIvIVGyYar+dJPGsn8m3eWiV/Vz+JkT6cMLfXVs+EPMA9dvH13/77BbUlkWUbtWtsW9oPR4kAnK9bi0XWKQQp6T5Sc5t1eET1yVaqpPCYv1Js= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=h4sGYr2w; arc=none smtp.client-ip=209.85.128.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="h4sGYr2w" Received: by mail-yw1-f170.google.com with SMTP id 00721157ae682-78fc4425b6bso48843467b3.1 for ; Mon, 16 Mar 2026 14:23:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773696207; x=1774301007; 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=sjvzmQgy/8Ckk75vbFaJNAzoVMYK5jct8StBarmT1mw=; b=h4sGYr2wcVNvbH973CTgrvbt/x23GHY8qrDHjndjpF3kSrf2Z5Avgqh8CPSmhhfXK4 tMnJEDmsgDQyCpoxZHHSuy/nGj+F8Hrpvy7fd4/6S+daHJUh5o+Ehukl5wBSCDMCy8dw Zmt+iiKKv+rpbIaBxfCxAb6wTycUZlpp/xFAZhsoWcQR5yqi+5bevk5urO2acqGi2z+Q bU8pJWJYTp8Q6iUjjH2+Fpt40GnqkbNnMaO+EGbCQaADfjyLERJX78a+Sloy1O5TfSYG aFSrOt4wSNUV16mPxFfN0FCF7TfAp+Z7lYjPISBA2EWSBcq5qrU8B+4mC+kVba9bf/2Q r3Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773696207; x=1774301007; 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=sjvzmQgy/8Ckk75vbFaJNAzoVMYK5jct8StBarmT1mw=; b=HlpJyrUQhxa04rvuWV95pDAvhTjdZmaRHIHKzkIvfBUxks8te6u8fs9H5oGhEjN4kJ Vn/SNt8BiqloJkczNMnNn98iJsdPQImxujVxE7/Z8gTmocgHXsW2DXKTTxkkJGMUvaNv PP/F4a9EYtUCa+i2lgj3FTS5rDreeZ1+iswtFOyePXu8E+OCIK2CFlK+q5i3tXm+IYb0 KWpB3fNZ4dj5P6f/7cFT9/Ab6koL4LETyQjD5OhvZkt09MhIPrLZ2Khg+LgZDVzkRqkN Mtos1IrAkKY8Ywly6R1QhAXCLR79EK2I1oI/VvRcx2tUjQXvqTBmnCF7SuqN+GWRNJkg 9jVQ== X-Forwarded-Encrypted: i=1; AJvYcCUtq0WAF5nA8JpX2qh7zkntszhYnd7H/Gkh8lyQ8wClfGgp4mRmLVXnLbqR1ZqVeGsl+t19wiIyj2oD73c=@vger.kernel.org X-Gm-Message-State: AOJu0Yxrf7tgvF2HX8osTS3cm2T4K8BNaQPBUXFgCIHPnm7iFke8QUln /mRoPXjdrdcKAmwPIFM6EY5zd+LEhxe0F+uIG7JTrJ5nPGXO7/nXu4Tw X-Gm-Gg: ATEYQzwNvC9lDAAUlmxn2vEpg/3g6qCd8DNUxmaUpAvNdxMYkgCCZ9rf73AqrCNgyyz g08c8OD3w3SvprTmbYOKMZSrDireKgBJtyiZaaiUn3ByfHz9LcQD/+GIgwrXLmLKiNgml2rD/k9 wQcqu/EFl8ERISyeX+02gOsCfHsqid4D+gp2MAxKVLFwc96uWVfrr13m3lg12Btkqv1AnkFC6QN 33PuZ5d9FE35mSL490QbZXAvza5ZajlxCYL4Mg2Nh1Iort3ISJsYwxn+sMiPJdF3gGlpjY21JMO Dc111OzZ5IStVfkEdX2crpFQ9KnbH7CxGzz2GCYiXGG+7DZs2+WMnkkoCU7KOC1K5OaefKFQBjo VwEL/hmxzJ+6O0X2Cc4zVO4AGsWL1XMRwU++4rygCIT9kjyXDIJ34GxSqZ/k9pKLFP4Vf/EOsEc mpjZQeECHy+vxQFqiLlOOUvQsyOwVB5DVEwoEmroc= X-Received: by 2002:a05:690c:3:b0:799:266:83a6 with SMTP id 00721157ae682-79a1c1bfb0dmr142394277b3.46.1773696206775; Mon, 16 Mar 2026 14:23:26 -0700 (PDT) Received: from Starblazer007.localdomain ([12.206.154.114]) by smtp.gmail.com with ESMTPSA id 00721157ae682-79a5e1ae50asm8180437b3.2.2026.03.16.14.23.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Mar 2026 14:23:26 -0700 (PDT) From: Nelson Johnson To: linux-mmc@vger.kernel.org Cc: adrian.hunter@intel.com, ulf.hansson@linaro.org, linux-kernel@vger.kernel.org, Nelson Johnson Subject: [PATCH 0/3] mmc: Lenovo N22 Braswell SD slot fixes Date: Mon, 16 Mar 2026 16:23:22 -0500 Message-ID: <20260316212325.4207-1-nzjfr547@gmail.com> X-Mailer: git-send-email 2.47.3 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 series fixes the long-broken SD slot on the Lenovo N22 (Model 80S6 / MTM 80S60001US) with Intel Celeron N3050 Braswell hardware running Debian 13 and Linux 6.19.6. The regression goes back to kernel 4.14. The Braswell SD controller (PCI ID 8086:2296) is exposed by firmware through both PCI 0000:00:12.0 and ACPI INT33BB:00 at \_SB_.PCI0.SDHB. On this machine the newer runtime PM and card-detect handling no longer works reliably, and the ACPI path permanently defers because its dependency never becomes available. That leaves the slot unusable unless the controller is forced back onto the working PCI path with machine-specific quirks. This series does three things, all scoped to the Lenovo N22 DMI match: 1. Disable the aggressive runtime PM/card-detect wake path for the Braswell PCI SD controller. 2. Bypass the broken firmware card-detect GPIO path and use polling for card insertion detection. 3. Prevent the competing ACPI INT33BB:00 node from binding on this machine so the PCI SDHCI driver can own the controller. With these changes applied, the SD slot binds through sdhci-pci and detects and mounts SD cards again on the Lenovo N22. Tested on: Lenovo N22 Model 80S6 / MTM 80S60001US Intel Celeron N3050 (Braswell) Debian 13 Linux 6.19.6 Nelson Johnson (3): mmc: sdhci-pci: disable aggressive runtime PM for Braswell SD on Lenovo N22 mmc: sdhci-pci: force polling card detect for Braswell SD on Lenovo N22 mmc: sdhci-acpi: exclude INT33BB:00 from ACPI binding on Lenovo N22 drivers/mmc/host/sdhci-acpi.c | 10 ++++++++++ drivers/mmc/host/sdhci-pci-core.c | 33 ++++++++++++++++++++++++++----- 2 files changed, 38 insertions(+), 5 deletions(-) -- 2.47.3