Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759288AbYB1NGT (ORCPT ); Thu, 28 Feb 2008 08:06:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756187AbYB1NGD (ORCPT ); Thu, 28 Feb 2008 08:06:03 -0500 Received: from rv-out-0910.google.com ([209.85.198.191]:50646 "EHLO rv-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753213AbYB1NGC (ORCPT ); Thu, 28 Feb 2008 08:06:02 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; b=nUCBzzAspd2DNOZ3YmtmnR6v/txLiUM5XKgKLbx7ZiGcnf8/zWSAL83lW6EKOZMQBGn1Bl9jc+wMmpnUmTMnrb2Nw3G344E/GykgUUmp0mCZXnGgFhHsTeE2LkhUis8s/9owJCbX3jBT4dkJhZ4+7xCOI/+7NmdHUCgPiunpqkQ= Message-ID: <47C6B1B1.2040602@gmail.com> Date: Thu, 28 Feb 2008 22:05:53 +0900 From: Tejun Heo User-Agent: Thunderbird 2.0.0.9 (X11/20070801) MIME-Version: 1.0 To: Tejun Heo , Jeff Garzik , linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, Kristen Carlson Accardi Subject: Re: [PATCH] libata: Register for dock events when the drive is inside a dock station References: <20080214124048.GB9708@homac.suse.de> <20080214125615.GD9708@homac.suse.de> <47BC5F44.605@garzik.org> <20080221115305.GB5032@homac.suse.de> <47BE26A0.2040708@gmail.com> <20080226101551.GB10721@homac.suse.de> <47C6804A.50705@gmail.com> <20080228110927.GA5745@homac.suse.de> In-Reply-To: <20080228110927.GA5745@homac.suse.de> X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1621 Lines: 39 Holger Macht wrote: > On Thu 28. Feb - 18:35:06, Tejun Heo wrote: >> Holger Macht wrote: >>> The hotplug handler is only called if the device is actually inside the >>> dock station. If it is not, nothing will happen. I hope that I got your >>> question right? >> Yes, right. >> >>> However, if this would be helpful, it would be easy to add something like >>> a am_I_on_dock_station?(...) function to the dock driver. >> Hmm.. as long as the event is only delivered when the device is actually >> connected behind dock, I think it's okay. > > The dock driver also export a is_dock_device(acpi_handle) function, which > could be used to make more fine-grained decisions, but it shouldn't be > needed here. > >> Does the attached patch fix the previous undock problem? It now >> explicitly tells libata EH to detach the notified devices on >> EJECT_REQUEST and wait for EH to complete such that control is returned >> to ACPI after all notified devices are actually detached. > > No it does not. Apparently, it freezes faster (from 1 second down to > immediately). Before, it just froze when someone (in this case HAL) tried > to access the device. The "echo 1 > undock" call does not even return, so > it might have introduced another problem. The code should be in generally right direction. Can you be persuaded into tracking down what's going on? Thanks. -- tejun -- 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/