i2c: aspeed: Adjust spinlock scope in the irq handler
authorJae Hyun Yoo <jae.hyun.yoo@linux.intel.com>
Mon, 2 Jul 2018 21:40:11 +0000 (14:40 -0700)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 20 Jul 2018 22:23:42 +0000 (00:23 +0200)
commit263fe5d45dcd0c610e41d1662f83cdd43b881cc5
tree9fb93d74a9c07b5c7d9e40b1b0672dd711b3775a
parent517fde0eb5a8f46c54ba6e2c36e32563b23cb14f
i2c: aspeed: Adjust spinlock scope in the irq handler

This patch adjusts spinlock scope to make it wrap the whole irq
handler using a single lock/unlock which covers both master and
slave handlers.

Signed-off-by: Jae Hyun Yoo <jae.hyun.yoo@linux.intel.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-aspeed.c