Miquel Raynal 5833206170 BACKPORT: clk: core: clarify the check for runtime PM
Currently, the core->dev entry is populated only if runtime PM is
enabled. Doing so prevents accessing the device structure in any
case.

Keep the same logic but instead of using the presence of core->dev as
the only condition, also check the status of
pm_runtime_enabled(). Then, we can set the core->dev pointer at any
time as long as a device structure is available.

This change will help supporting device links in the clock subsystem.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Cc: Jerome Brunet <jbrunet@baylibre.com>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Jeffrey Hugo <jhugo@codeaurora.org>
Cc: Chen-Yu Tsai <wens@csie.org>
[sboyd@kernel.org: Change to a boolean flag]
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
(cherry picked from commit 2447883934)
[Resolved minor struct field conflict in driver/clk/clk.c]
Bug: 144066914
Signed-off-by: Saravana Kannan <saravanak@google.com>
Change-Id: Ifcb8c6afdcada7046feec4f570258befbfe98eeb
2020-02-03 17:50:56 -08:00
2020-02-02 20:22:38 +00:00
2020-02-02 20:22:38 +00:00
2020-02-02 20:22:38 +00:00
2020-02-02 20:22:38 +00:00
2020-02-02 20:22:38 +00:00
2019-08-06 20:08:18 +02:00
2020-02-02 20:22:38 +00:00
2020-01-27 15:55:44 +01:00
2020-01-29 17:10:45 +01:00
2020-02-02 20:22:38 +00:00
2020-01-29 17:10:45 +01:00
2020-01-27 15:55:44 +01:00
2020-01-27 15:55:44 +01:00
2019-10-17 15:33:07 -07:00
2020-02-02 20:22:38 +00:00

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
Description
No description provided
Readme 7.9 GiB
Languages
C 97.7%
Assembly 1.6%
Makefile 0.3%
Perl 0.1%