Re: Is there any elegant way to re-identify and re-configure xfer mode

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

 



On Mon, Oct 31, 2011 at 11:27 PM, JiSheng Zhang <jszhang3@xxxxxxxxx> wrote:
> The problem is the model, vendor and xfer mode etc is changed also, I
> need to re-identify and re-configure it.
> I did these by manually call
> ata_scsi_find_dev()=>ata_dev_read_id()=>ata_dev_configure()=>ata_set_mode()

>From userland,

# echo - - - > /sys/class/scsi_host/hostX/rescan

>From kernel,

    spin_lock_irqsave(ap->lock, flags);
    dev->link.eh_info.dev_action[dev->devno] |= ATA_EH_REVALIDATE;
    ata_port_schedule_eh(ap);
    spin_unlock_irqrestore(ap->lock, flags);

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


[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux