Re: [PATCH 7/9][RESEND] mvsas: get phy info.

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

 



On Wed, Mar 26, 2008 at 11:55 PM, Ke Wei <kewei@xxxxxxxxxxx> wrote:
> removed unused code and attached SATA address makes use of port id.
>  enable HBA interrupt after calling sas_register_ha();

just one small nit and one question.

...
>  @@ -2837,20 +2812,34 @@ static void mvs_update_phyinfo(struct mvs_info *mvi, int i,
>                         } else {
>                                 dev_printk(KERN_DEBUG, &pdev->dev,
>                                         "No sig fis\n");
>  +                               phy->phy_type &= ~(PORT_TYPE_SATA);

shouldn't need '()'s around the constant.

>  +                               goto out_done;
>                         }
>                 }
>  +               tmp64 = cpu_to_be64(phy->att_dev_sas_addr);
>  +               memcpy(sas_phy->attached_sas_addr, &tmp64, SAS_ADDR_SIZE);

Why does this need to be a memcpy and not just a simple store operation?
Is it misaligned? (even if it is, the kernel will deal with it. It
just won't be fast.)

hth,
grant
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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