Advertisement
Guest User

Untitled

a guest
Jun 11th, 2013
449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. diff --git a/drivers/i2c/busses/i2c-bcm2708.c b/drivers/i2c/busses/i2c-bcm2708.c
  2. index edc90c0..33f4e7d 100644
  3. --- a/drivers/i2c/busses/i2c-bcm2708.c
  4. +++ b/drivers/i2c/busses/i2c-bcm2708.c
  5. @@ -175,6 +175,11 @@ static irqreturn_t bcm2708_i2c_interrupt(int irq, void *dev_id)
  6.  
  7. spin_lock(&bi->lock);
  8.  
  9. + /* we may see camera interrupts on the "other" I2C channel
  10. + Just return if we've not sent anything */
  11. + if (!bi->nmsgs || !bi->msg )
  12. + goto early_exit;
  13. +
  14. s = bcm2708_rd(bi, BSC_S);
  15.  
  16. if (s & (BSC_S_CLKT | BSC_S_ERR)) {
  17. @@ -208,6 +213,7 @@ static irqreturn_t bcm2708_i2c_interrupt(int irq, void *dev_id)
  18. handled = false;
  19. }
  20.  
  21. +early_exit:
  22. spin_unlock(&bi->lock);
  23.  
  24. return handled ? IRQ_HANDLED : IRQ_NONE;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement