Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761638AbXKTRPV (ORCPT ); Tue, 20 Nov 2007 12:15:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758588AbXKTRO6 (ORCPT ); Tue, 20 Nov 2007 12:14:58 -0500 Received: from the.earth.li ([193.201.200.66]:42147 "EHLO the.earth.li" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754496AbXKTRO5 (ORCPT ); Tue, 20 Nov 2007 12:14:57 -0500 Date: Tue, 20 Nov 2007 09:14:55 -0800 From: Jonathan McDowell To: James Smart Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Matt_Domsch@dell.com Subject: Re: [PATCH] Unify sysfs filenames for firmware version Message-ID: <20071120171454.GH31112@earth.li> References: <20071120133824.GD31112@earth.li> <47430CCE.50701@emulex.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47430CCE.50701@emulex.com> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1818 Lines: 41 On Tue, Nov 20, 2007 at 11:35:26AM -0500, James Smart wrote: > The hearburn I have with these patches is that you are changing > driver-specific attributes, not common ones as enforced/requested by a > subsystem. As such, you are breaking a management interface for > existing tools/scripts. Yes, that's true. Though at present we have the heartburn that anyone wanting to write a script to pull out firmware revisions has to know exactly where every driver stores this information. > There's been a long-standing request to create common device > attributes, such as fw_version, but I don't think they ever made it > into the kernel. Not only would the names be consistent, but the > location would be consistent as well. > > I'd rather you took on that work, than proceed with these patches. Do you have a pointer to previous discussion about this? A central device attribute does make more sense. It'd be nice to have uniform access to details like the driver version as well. > Jonathan McDowell wrote: > >Looking around sysfs in an attempt to pull out SCSI card firmware > >versions I found 5 different filenames used to store the information. > >Only one, fw_version, was used more than once. The patch below changes > >the other drivers to use this filename too. > > > >I suspect the same applies to other subsystem drivers as well. I'll look > >at them assuming this patch is well received. J. -- You have a tendency to feel you are superior to most computers. This .sig brought to you by the letter U and the number 25 Product of the Republic of HuggieTag - 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/