mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
[SCSI] Use SPI messages where possible
Now sym2 is using spi_print_msg, we don't need to have our own messages for IGNORE WIDE RESIDUE and MODIFY DATA POINTER, so provide the option of passing NULL for the label. Signed-off-by: Matthew Wilcox <matthew@wil.cx> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
parent
3bea15a76e
commit
92d578b94c
1 changed files with 6 additions and 3 deletions
|
@ -72,7 +72,10 @@ static void sym_printl_hex(u_char *p, int n)
|
||||||
|
|
||||||
static void sym_print_msg(struct sym_ccb *cp, char *label, u_char *msg)
|
static void sym_print_msg(struct sym_ccb *cp, char *label, u_char *msg)
|
||||||
{
|
{
|
||||||
sym_print_addr(cp->cmd, "%s: ", label);
|
if (label)
|
||||||
|
sym_print_addr(cp->cmd, "%s: ", label);
|
||||||
|
else
|
||||||
|
sym_print_addr(cp->cmd, "");
|
||||||
|
|
||||||
spi_print_msg(msg);
|
spi_print_msg(msg);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
@ -4486,7 +4489,7 @@ static void sym_int_sir (struct sym_hcb *np)
|
||||||
switch (np->msgin [2]) {
|
switch (np->msgin [2]) {
|
||||||
case M_X_MODIFY_DP:
|
case M_X_MODIFY_DP:
|
||||||
if (DEBUG_FLAGS & DEBUG_POINTER)
|
if (DEBUG_FLAGS & DEBUG_POINTER)
|
||||||
sym_print_msg(cp,"modify DP",np->msgin);
|
sym_print_msg(cp, NULL, np->msgin);
|
||||||
tmp = (np->msgin[3]<<24) + (np->msgin[4]<<16) +
|
tmp = (np->msgin[3]<<24) + (np->msgin[4]<<16) +
|
||||||
(np->msgin[5]<<8) + (np->msgin[6]);
|
(np->msgin[5]<<8) + (np->msgin[6]);
|
||||||
sym_modify_dp(np, tp, cp, tmp);
|
sym_modify_dp(np, tp, cp, tmp);
|
||||||
|
@ -4513,7 +4516,7 @@ static void sym_int_sir (struct sym_hcb *np)
|
||||||
*/
|
*/
|
||||||
case M_IGN_RESIDUE:
|
case M_IGN_RESIDUE:
|
||||||
if (DEBUG_FLAGS & DEBUG_POINTER)
|
if (DEBUG_FLAGS & DEBUG_POINTER)
|
||||||
sym_print_msg(cp,"ign wide residue", np->msgin);
|
sym_print_msg(cp, NULL, np->msgin);
|
||||||
if (cp->host_flags & HF_SENSE)
|
if (cp->host_flags & HF_SENSE)
|
||||||
OUTL_DSP(np, SCRIPTA_BA(np, clrack));
|
OUTL_DSP(np, SCRIPTA_BA(np, clrack));
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue