Re: [PATCH 1/4] aic79xx: Fixup external device reset

James Bottomley
2006-10-24T23:37:41Z

On Mon, 2006-10-23 at 15:22 +0200, Hannes Reinecke wrote:
> + /* Hand-craft TUR command */
> + ahd_outb(ahd, SCB_CDB_STORE, 0);
> + ahd_outb(ahd, SCB_CDB_STORE+1, 0);
> + ahd_outb(ahd, SCB_CDB_STORE+2, 0);
> + ahd_outb(ahd, SCB_CDB_STORE+3, 0);
> + ahd_outb(ahd, SCB_CDB_STORE+4, 0);
> + ahd_outb(ahd, SCB_CDB_STORE+5, 0);
> + ahd_outb(ahd, SCB_CDB_LEN, 6);
> + scb->hscb->control &= ~(TAG_ENB|SCB_TAG_TYPE);
> + scb->hscb->control |= MK_MESSAGE;
> + ahd_outb(ahd, SCB_CONTROL, scb->hscb->control);
> + ahd_outb(ahd, MSG_OUT, HOST_MSG);
> + ahd_outb(ahd, SAVED_SCSIID, scb->hscb->scsiid);

What's the reason for having to have this hand crafted test unit ready?

James