Re: [PATCH] pata_hpt3x2n: Cable detect handling

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

 



xn_pre_reset(struct ata_port *ap)
> > +{
> > +	struct pci_dev *pdev = to_pci_dev(ap->host->dev);
> >  	/* Reset the state machine */
> >  	pci_write_config_byte(pdev, 0x50, 0x37);
> >  	pci_write_config_byte(pdev, 0x54, 0x37);
> >  	udelay(100);
> > -
> >  	return ata_std_prereset(ap);
> >  }
> >  
> 
>     Hmmm... is it really safe to reset both channels here, when only one port 
> gets reset?

It works but you have a good point, that ought to be changed.

Alan
-
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