Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 28 Aug 2002 01:10:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 28 Aug 2002 01:10:18 -0400 Received: from 12-231-243-94.client.attbi.com ([12.231.243.94]:41996 "HELO kroah.com") by vger.kernel.org with SMTP id ; Wed, 28 Aug 2002 01:10:18 -0400 Date: Tue, 27 Aug 2002 22:14:06 -0700 From: Greg KH To: Adam Belay Cc: Patrick Mochel , linux-kernel@vger.kernel.org Subject: Re: [PATCH] 2.5.32 port PnP BIOS to the driver model RESEND #1 Message-ID: <20020828051406.GA26263@kroah.com> References: <3D5D7E50.4030307@netscape.net> <20020817030604.GB7029@kroah.com> <3D5E595A.7090106@netscape.net> <20020817190324.GA9320@kroah.com> <3D5ECEFE.4020404@netscape.net> <20020818214745.GA19556@kroah.com> <3D6BF1E6.9010701@netscape.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D6BF1E6.9010701@netscape.net> User-Agent: Mutt/1.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1685 Lines: 40 On Tue, Aug 27, 2002 at 09:40:54PM +0000, Adam Belay wrote: > As we discussed earlier, I converted the PnP BIOS driver to the driver > model Please advice on any changes you would like. I look forward to > hearing from you. Hi, I don't have a box with a PnP BIOS (well, I don't think I do...), so could you send the relevant portions of the driverfs tree, showing the new devices that you add for this bus? Also a few minor comments on the patch: - pnpbios_bus_type should probably be made static, along with alloc_pnpbios_root(). - You don't check for out of memory in alloc_pnpbios_root() when you call kmalloc(). - why are you modifying the set_limit() parameters at the top of your patch? That doesn't seem relevant to the driverfs changes. - in pnpbios_bus_match(), don't you have to check the value of the call to match_device() to make sure you have a match? That would keep pnpbios_device_probe() from being called for every device like it looks your patch causes. - the pnpbios_device_probe() call should return a negative error number if the device does not match, or some error happens. Returning 1 does not mean success. You also need to save off the device specific info somehow in your structure, so that the pnpbios_device_remove() can remove it. Or am I just missing something here? And is there some way you can inline the patch? It wasn't that big... thanks, greg k-h - 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/