]> git.karo-electronics.de Git - karo-tx-linux.git/commit
serial: sh-sci: Drop the interface clock
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 14 Sep 2015 12:14:23 +0000 (15:14 +0300)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 17 Dec 2015 10:17:51 +0000 (11:17 +0100)
commita9ec81f4ed5c05dbbc671e5fa39de0540eb0495f
tree11e942cb0d395d7dacaefecfe23725404a5a9c85
parent8005c49d9aea74d382f474ce11afbbc7d7130bec
serial: sh-sci: Drop the interface clock

As no platform defines an interface clock the SCI driver always falls
back to a clock named "peripheral_clk".
  - On SH platforms that clock is the base clock for the SCI functional
    clock and has the same frequency,
  - On ARM platforms that clock doesn't exist, and clk_get() will return
    the default clock for the device.
We can thus make the functional clock mandatory and drop the interface
clock.

EPROBE_DEFER is handled for clocks that may be referenced from DT (i.e.
"fck", and the deprecated "sci_ick").

Cc: devicetree@vger.kernel.org
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
[geert: Handle EPROBE_DEFER, reformat description, break long comment line]
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Rob Herring <robh@kernel.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/devicetree/bindings/serial/renesas,sci-serial.txt
drivers/tty/serial/sh-sci.c