]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: qup: Fix order of runtime pm initialization
authorAndy Gross <agross@codeaurora.org>
Mon, 29 Sep 2014 22:00:51 +0000 (17:00 -0500)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 3 Oct 2014 01:20:47 +0000 (03:20 +0200)
commit7b1bdfed9cc65f10325272d604cb367b594df920
tree83f5493517b86e852c97faa13f7403c950617e5d
parent717f46c10576e0d41855c660d4a7af05e82ad7f8
i2c: qup: Fix order of runtime pm initialization

The runtime pm calls need to be done before populating the children via the
i2c_add_adapter call.  If this is not done, a child can run into issues trying
to do i2c read/writes due to the pm_runtime_sync failing.

Signed-off-by: Andy Gross <agross@codeaurora.org>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Acked-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Cc: stable@kernel.org
drivers/i2c/busses/i2c-qup.c