Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932998Ab3CTTLS (ORCPT ); Wed, 20 Mar 2013 15:11:18 -0400 Received: from cantor2.suse.de ([195.135.220.15]:53780 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932209Ab3CTTLR (ORCPT ); Wed, 20 Mar 2013 15:11:17 -0400 Date: Wed, 20 Mar 2013 20:11:15 +0100 Message-ID: From: Takashi Iwai To: Matthew Garrett Cc: Bjorn Helgaas , Oliver Neukum , Michal Marek , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] pciehp: Add pciehp_surprise module option In-Reply-To: <20130320175234.GA8948@srcf.ucam.org> References: <20130320175234.GA8948@srcf.ucam.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/24.2 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1289 Lines: 32 At Wed, 20 Mar 2013 17:52:34 +0000, Matthew Garrett wrote: > > On Wed, Mar 20, 2013 at 03:02:01PM +0100, Takashi Iwai wrote: > > We encountered a problem that on some HP machines the Realtek PCI-e > > card reader device appears only when you inserted a card before the > > cold boot. While debugging, it turned out that the device is actually > > handled via PCI-e hotplug in some level. The device sends a presence > > change notification, and pciehp receives it, but it's ignored because > > of lack of the hotplug surprise (PCI_EXP_SLTCAP_HPS) capability bit. > > Once when this check passes, everything starts working -- the device > > appears upon plugging the card properly. > > Well that just sounds like a bug. What's the downside to just ignoring > that capability bit? I'm afraid that it's too radical to enable always. Or, what about to check this bit only for disable path? Enabling the device is usually not to worry much. The problematic part is rather the surprising device disablement. Just my $0.02. thanks, Takashi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/