Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1543773

i2c: xiic: Strange clk_prepare_enable() in xiic_i2c_remove()

From Alexey Khoroshilov <khoroshilov@ispras.ru>
Newsgroups linux.kernel
Subject i2c: xiic: Strange clk_prepare_enable() in xiic_i2c_remove()
Date 2016-12-16 23:00 +0100
Message-ID <sP8HL-FW-13@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Dear Shubhrajyoti,

Looking at 36ecbcab84d0 ("i2c: xiic: Implement power management")
it is not clear why clk_prepare_enable(i2c->clk) is required in
xiic_i2c_remove()?

It is enabled in xiic_i2c_probe() and disabled/enabled in
cdns_i2c_runtime_suspend()/cdns_i2c_runtime_resume().

Could you please clarify the point.

--
Alexey Khoroshilov
Linux Verification Center, ISPRAS
web: http://linuxtesting.org

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

i2c: xiic: Strange clk_prepare_enable() in xiic_i2c_remove() Alexey Khoroshilov <khoroshilov@ispras.ru> - 2016-12-16 23:00 +0100
  Re: i2c: xiic: Strange clk_prepare_enable() in xiic_i2c_remove() Shubhrajyoti Datta <shubhrajyoti.datta@gmail.com> - 2016-12-17 08:10 +0100

csiph-web