lkml.org 
[lkml]   [2022]   [Nov]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2 14/15] scsi: ncr53c8xx: replace CCB_MAGIC with bool busy
From
Date
On Wed, 2022-11-02 at 00:06 +0100, Ahelenia Ziemiańska wrote:
[...]
> @@ -4356,7 +4347,7 @@ static int ncr_queue_command (struct ncb *np,
> struct scsi_cmnd *cmd)
> */
>
> /* activate this job. */
> - cp->magic = CCB_MAGIC;
> + cp->busy = true;
>
> /*
> ** insert next CCBs into start queue.

Are you sure this is just an internal magic number? The way these old
scripts engines used to work is that the CCB array forms a mailbox and
the card continually scans the mailbox to see if it has any work to do.
These magic values are often a signal to the card that the CCB array
contains a valid entry it hasn't seen and it should work on it, so the
card might be expecting to see this full 32 bit value.

Regards,

James

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2022-11-04 20:58    [W:0.186 / U:0.640 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site