Message ID | 1321950309-4816-1-git-send-email-linus.walleij@stericsson.com |
---|---|
State | Accepted, archived |
Headers | show |
diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c index 8cdf052..82a929f 100644 --- a/drivers/spi/spi-pl022.c +++ b/drivers/spi/spi-pl022.c @@ -1513,6 +1513,9 @@ static void pump_messages(struct work_struct *work) spin_lock_irqsave(&pl022->queue_lock, flags); if (list_empty(&pl022->queue) || !pl022->running) { if (pl022->busy) { + /* nothing more to do - disable spi/ssp and power off */ + writew((readw(SSP_CR1(pl022->virtbase)) & + (~SSP_CR1_MASK_SSE)), SSP_CR1(pl022->virtbase)); pm_runtime_put(&pl022->adev->dev); } pl022->busy = false;