Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38135
b: refs/heads/master
c: 5df0a29
h: refs/heads/master
i:
  38133: 5f3005c
  38131: cbdf08f
  38127: 3f9b90b
v: v3
  • Loading branch information
Zach Brown authored and Linus Torvalds committed Oct 3, 2006
1 parent 5dd9bea commit a60cb77
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: f2b9ecc41654256ae8829193d3380935833ae976
refs/heads/master: 5df0a29d9c2239c28b5864037b51ac3d747439a9
6 changes: 4 additions & 2 deletions trunk/drivers/char/tipar.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,14 +224,16 @@ probe_ti_parallel(int minor)
{
int i;
int seq[] = { 0x00, 0x20, 0x10, 0x30 };
int data;

for (i = 3; i >= 0; i--) {
outbyte(3, minor);
outbyte(i, minor);
udelay(delay);
data = inbyte(minor) & 0x30;
pr_debug("tipar: Probing -> %i: 0x%02x 0x%02x\n", i,
data & 0x30, seq[i]);
if ((inbyte(minor) & 0x30) != seq[i]) {
data, seq[i]);
if (data != seq[i]) {
outbyte(3, minor);
return -1;
}
Expand Down

0 comments on commit a60cb77

Please sign in to comment.