Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354011
b: refs/heads/master
c: c803dd4
h: refs/heads/master
i:
  354009: 8a027c3
  354007: dd48bfa
v: v3
  • Loading branch information
Dan Carpenter authored and Greg Kroah-Hartman committed Jan 18, 2013
1 parent a134636 commit b3d3ec4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8441bf5e063e03e5d307ffb32fd5f77e81c0d397
refs/heads/master: c803dd48f0539cb6adcbbcf41c758502e1e102cb
2 changes: 1 addition & 1 deletion trunk/drivers/staging/sb105x/sb_mp_register.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
#define IIR_RS232 0x00 /* RS232 type */
#define IIR_RS422 0x10 /* RS422 type */
#define IIR_RS485 0x20 /* RS485 type */
#define IIR_UNKNOWN 0x30 /* unknown type */
#define IIR_TYPE_MASK 0x30

/* Interrrupt Mask Register */
#define MP_OPTR_IMR0 0x0C /* port0 ~ port8 */
Expand Down
14 changes: 4 additions & 10 deletions trunk/drivers/staging/sb105x/sb_pci_mp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2851,18 +2851,12 @@ static void __init multi_init_ports(void)
printk("IIR_RET = %x\n",b_ret);
}

if(IIR_RS232 == (b_ret & IIR_RS232))
{
mtpt->interface = RS232;
}
if(IIR_RS422 == (b_ret & IIR_RS422))
{
/* default to RS232 */
mtpt->interface = RS232;
if (IIR_RS422 == (b_ret & IIR_TYPE_MASK))
mtpt->interface = RS422PTP;
}
if(IIR_RS485 == (b_ret & IIR_RS485))
{
if (IIR_RS485 == (b_ret & IIR_TYPE_MASK))
mtpt->interface = RS485NE;
}
}
}
}
Expand Down

0 comments on commit b3d3ec4

Please sign in to comment.