lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20150608132743.GD15825@galexander.org>
Date:	Mon, 8 Jun 2015 09:27:43 -0400
From:	Greg Alexander <grelk@...exander.org>
To:	linux-kernel@...r.kernel.org
Cc:	ossman@...dio.se
Subject: [PATCH] mmc, kernel 4.0.5, SDIO power management error message

On suspend, SDIO (MMC) power management fails and removes a card
("mmc2: card 0001 removed") if any of the card's functions don't support
power management.  Then nothing ever resumes it, so the card is lost
forever.  With this patch, it will also provide a useful error message
("btsdio mmc2:0001:3: pre_suspend failed (driver has no PM)").  This will
save hours of diagnostic effort for anyone whose SDIO cards disappear on
suspend.

--- drivers/mmc/core/sdio.c.orig	2015-06-06 11:21:22.000000000 -0400
+++ drivers/mmc/core/sdio.c	2015-06-08 09:21:00.000000000 -0400
@@ -918,6 +918,8 @@
 			const struct dev_pm_ops *pmops = func->dev.driver->pm;
 			if (!pmops || !pmops->suspend || !pmops->resume) {
 				/* force removal of entire card in that case */
+				dev_err(&func->dev, "pre_suspend failed "
+					"(driver has no PM)\n");
 				err = -ENOSYS;
 				break;
 			}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ