RE: [PATCH 01/06] mptfusion: (New Feature)Added new sysfs parameters for handle and firmware id

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> -----Original Message-----
> From: James Bottomley [mailto:James.Bottomley@xxxxxxxxxxxxxxxxxxxxx]
> Sent: Sunday, February 13, 2011 1:25 AM
> To: Desai, Kashyap
> Cc: linux-scsi@xxxxxxxxxxxxxxx; Moore, Eric; Prakash, Sathya
> Subject: Re: [PATCH 01/06] mptfusion: (New Feature)Added new sysfs
> parameters for handle and firmware id
> 
> On Thu, 2011-02-10 at 11:49 +0530, Kashyap, Desai wrote:
> > New feature is added.  sas_device_hanlde and firmware id will be
> visible from
> > sysfs parameters. handle and firmware id is internal to LSI firmware.
> > It is merely debugging purpose.
> 
> Broken record time: checkpatch.pl:
> 
> WARNING: please, no space before tabs
> #21: FILE: drivers/message/fusion/mptbase.h:402:
> +^Iu16     ^I^I handle;$
> 
> WARNING: please, no spaces at the start of a line
> #67: FILE: drivers/message/fusion/mptscsih.c:3350:
> +    char *buf)$
> 
> ERROR: code indent should use tabs where possible
> #79: FILE: drivers/message/fusion/mptscsih.c:3362:
> + ^I^INULL);$
> 
> WARNING: please, no space before tabs
> #79: FILE: drivers/message/fusion/mptscsih.c:3362:
> + ^I^INULL);$
> 
> WARNING: please, no spaces at the start of a line
> #79: FILE: drivers/message/fusion/mptscsih.c:3362:
> + ^I^INULL);$
> 
> WARNING: please, no spaces at the start of a line
> #91: FILE: drivers/message/fusion/mptscsih.c:3374:
> +    char *buf)$
> 
> ERROR: code indent should use tabs where possible
> #103: FILE: drivers/message/fusion/mptscsih.c:3386:
> + ^I^INULL);$
> 
> WARNING: please, no space before tabs
> #103: FILE: drivers/message/fusion/mptscsih.c:3386:
> + ^I^INULL);$
> 
> WARNING: please, no spaces at the start of a line
> #103: FILE: drivers/message/fusion/mptscsih.c:3386:
> + ^I^INULL);$
> 
> total: 2 errors, 7 warnings, 93 lines checked
James, my script missed this when I resend the patch. I missed to run "cleanpatch" from scripts directory.
I will redo this. 
> 
> Also, as I read through this patch, doesn't it add these two parameters
> for every fusion device type (SPI, SAS and FC) but only set them for
> SAS?  If you want SAS only parameters, they should probably be visible
> only for SAS cards.
I have only used sdev_attrs for mptsas.c as below
.sdev_attrs			= mptscsih_dev_attrs
It means all parameters are visible to only MPTSAS modules. Not for mptfc and mptspi.
Do you want some changes in this area ? 

~ Kashyap

> 
> James
> 

ÿô.nlj·Ÿ®‰­†+%ŠË±é¥Šwÿº{.nlj·¥Š{±þÇ‹ø¡Ü}©ž²ÆzÚj:+v‰¨þø®w¥þŠàÞ¨è&¢)ß«a¶Úÿûz¹ÞúŽŠÝjÿŠwèf



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux