Re: [PATCH 5/6] bfa: Brocade BFA FC SCSI Driver submission

From: James Bottomley
Date: Thu Sep 25 2008 - 01:18:49 EST


On Wed, 2008-09-24 at 21:09 -0700, Jing Huang wrote:
> From: Jing Huang <huangj@xxxxxxxxxxx>
>
> This patch contains document of brocade specific sysfs interface. It is
> created using 2.6.27-rc7 kernel.
>
> Signed-off-by: Jing Huang <huangj@xxxxxxxxxxx>
> ---
> Documentation/ABI/testing/sysfs-devices-bfa | 600
> ++++++++++++++++++++++++++++
> 1 files changed, 600 insertions(+)
>
> diff -urpN orig/Documentation/ABI/testing/sysfs-devices-bfa
> patch/Documentation/ABI/testing/sysfs-devices-bfa
> --- orig/Documentation/ABI/testing/sysfs-devices-bfa 1969-12-31
> 16:00:00.000000000 -0800
> +++ patch/Documentation/ABI/testing/sysfs-devices-bfa 2008-09-24
> 12:08:25.000000000 -0700
> @@ -0,0 +1,600 @@
> +What: /sys/devices/<Brocade HBA PCI path>/bfa
> +Date: July 2008
> +Contact: Jing Huang <huangj@xxxxxxxxxxx>
> +Description:
> + The /sys/devices/<Brocade HBA device path>/bfa will
> contain
> + files and subdirectories to display internal states and
> + statistics of Brocade HBA. It also provides a
> configuration and
> + management interface for each HBA instance.

This is completely the wrong thing to do. The driver needs to bind to
the Fibre Channel transport class which provides all of these features
in a large measure through infrastructure shareable with the other FC
drivers. Any other pieces that are brocade specific rather than FC
general can go in host attributes in the same way as the rest of the FC
drivers do it.

James


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/