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