From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261375AbVFHQXd (ORCPT ); Wed, 8 Jun 2005 12:23:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261374AbVFHQWZ (ORCPT ); Wed, 8 Jun 2005 12:22:25 -0400 Received: from mail.kroah.org ([69.55.234.183]:22415 "EHLO perch.kroah.org") by vger.kernel.org with ESMTP id S261355AbVFHQTW (ORCPT ); Wed, 8 Jun 2005 12:19:22 -0400 Date: Wed, 8 Jun 2005 09:19:10 -0700 From: Greg KH To: dtor_core@ameritech.net Cc: Abhay Salunke , linux-kernel@vger.kernel.org, Andrew Morton , matt_domsch@dell.com, Manuel Estrada Sainz Subject: Re: [patch 2.6.12-rc3] modifications in firmware_class.c to support nohotplug Message-ID: <20050608161909.GC1122@kroah.com> References: <20050608151744.GA12180@littleblue.us.dell.com> <20050608160244.GA1122@kroah.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 08, 2005 at 11:09:53AM -0500, Dmitry Torokhov wrote: > On 6/8/05, Greg KH wrote: > > On Wed, Jun 08, 2005 at 10:56:19AM -0500, Dmitry Torokhov wrote: > > > On 6/8/05, Abhay Salunke wrote: > > > > @@ -364,6 +364,7 @@ fw_setup_class_device(struct firmware *f > > > > printk(KERN_ERR "%s: class_device_create_file failed\n", > > > > __FUNCTION__); > > > > goto error_unreg; > > > > +r > > > > > > What is this? > > > > Proof he didn't test the code :( > > > > > I think it would be better if you just have request_firmware and > > > request_firmware_nowait accept timeout parameter that would override > > > default timeout in firmware_class. 0 would mean use default, > > > MAX_SCHED_TIMEOUT - wait indefinitely. > > > > Yes and no. Yes in that we should have a timeout value. No in that 0 > > should be "forever" and we #define the current 10 second value. > > > > Are you saying that we should rip out of the firmware_class current > timeout attribute? Change it from being a global to local to the firmware device? > I thought it was a nice to have system-wide defult that can be > adjusted by operator w/o need to recompile anything. But (as recent udev bugs have proven) no one ever changes that default value :( In the end, I don't really care either way. All I would like to see is for there to be a timeout value for the function calls like you state above. thanks, greg k-h