From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcel Holtmann Date: Mon, 27 Jul 2009 21:35:17 +0000 Subject: Re: [PATCH 2/2] hid2hci: when recovering from S3 use parent devpath Message-Id: <1248730517.28545.216.camel@violet> List-Id: References: <4A6E19FF.5070207@dell.com> In-Reply-To: <4A6E19FF.5070207@dell.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Hi Mario, > After the previous cleanup submitted to hid2hci, the code for finding > the sibling device changed significantly. Although this works perfectly > fine when all the devices are on the bus, it doesn't for the recovery > from S3 situation. The device is already off the bus by the time > hid2hci is called so the devpath is not found in the udev database. The > easiest way to solve this is to use the parent's devpath instead, but > this does introduce a dependency on importing the env variable DEVPATH > from the parent. at least this should be a private variable. Regards Marcel