Patch "ata: ahci: don't mark HotPlugCapable Ports as external/removable" has been added to the 4.4-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
ata: ahci: don't mark HotPlugCapable Ports as external/removable
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
ata-ahci-don-t-mark-hotplugcapable-ports-as-external-removable.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
dc8b4afc4a04fac8ee55a19b59f2356a25e7e778Mon Sep 17 00:00:00 2001
From: Manuel Lauss <[email protected]>
Date: Sat, 27 Feb 2016 16:10:05 +0100
Subject: ata: ahci: don't mark HotPlugCapable Ports as external/removable
From: Manuel Lauss <[email protected]>
commit dc8b4afc4a04fac8ee55a19b59f2356a25e7e778 upstream.
The HPCP bit is set by bioses for on-board sata ports either because they think sata is hotplug capable in general or to allow Windows to display a "device eject" icon on ports which are routed to an external connector bracket.
However in Redhat Bugzilla #1310682, users report that with kernel 4.4, where this bit test first appeared, a lot of partitions on sata drives are now mounted automatically.
This patch should fix redhat and a lot of other distros which unconditionally automount all devices which have the "removable" bit set.
--- drivers/ata/libahci.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/ata/libahci.c +1 -2
@@ -1142,8 +1142,7 @@ static void ahci_port_init(struct device/* mark esata ports */ tmp =readl (port_mmio +PORT_CMD ); -if ((tmp &PORT_CMD_HPCP ) || - ((tmp &PORT_CMD_ESP ) && (hpriv->cap &HOST_CAP_SXS ))) +if ((tmp &PORT_CMD_ESP ) && (hpriv->cap &HOST_CAP_SXS )) ap->pflags |=ATA_PFLAG_EXTERNAL ; }
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/ata-ahci-don-t-mark-hotplugcapable-ports-as-external-removable.patch