Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 112298 Details for
Bug 169622
sys-kernel/gentoo-sources-2.6.20 compatibility improvements for sparc64
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bbc_i2c patch.
bbc_i2c.patch (text/plain), 976 bytes, created by
Gustavo Zacarias (RETIRED)
on 2007-03-06 15:58:21 UTC
(
hide
)
Description:
bbc_i2c patch.
Filename:
MIME Type:
Creator:
Gustavo Zacarias (RETIRED)
Created:
2007-03-06 15:58:21 UTC
Size:
976 bytes
patch
obsolete
>--- linux-2.6.20/drivers/sbus/char/bbc_i2c.c.orig 2007-02-15 21:26:56.000000000 +0100 >+++ linux-2.6.20/drivers/sbus/char/bbc_i2c.c 2007-02-15 21:28:36.000000000 +0100 >@@ -187,19 +187,18 @@ > bp->waiting = 1; > add_wait_queue(&bp->wq, &wait); > while (limit-- > 0) { >- u8 val; >+ long val; > >- set_current_state(TASK_INTERRUPTIBLE); >- *status = val = readb(bp->i2c_control_regs + 0); >- if ((val & I2C_PCF_PIN) == 0) { >+ val = wait_event_interruptible_timeout(bp->wq, >+ (((*status = readb(bp->i2c_control_regs + 0)) & I2C_PCF_PIN) == 0), >+ msecs_to_jiffies(250)); >+ if ((val != -ERESTARTSYS) && (val > 0)) { > ret = 0; > break; > } >- msleep_interruptible(250); > } > remove_wait_queue(&bp->wq, &wait); > bp->waiting = 0; >- current->state = TASK_RUNNING; > > return ret; > } >@@ -340,7 +339,7 @@ > */ > if (bp->waiting && > !(readb(bp->i2c_control_regs + 0x0) & I2C_PCF_PIN)) >- wake_up(&bp->wq); >+ wake_up_interruptible(&bp->wq); > > return IRQ_HANDLED; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 169622
:
112296
| 112298 |
112299