lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Mon, 17 Oct 2022 14:11:22 +0200
From:   Marc Kleine-Budde <>
To:     Pavel Pisa <>
Cc:     Matej Vasilevski <>,
        Ondrej Ille <>,
        Wolfgang Grandegger <>,
        "David S. Miller" <>,
        Eric Dumazet <>,
        Jakub Kicinski <>,
        Paolo Abeni <>,
        Rob Herring <>,
        Krzysztof Kozlowski <>,,,
Subject: Re: [PATCH v5 2/4] can: ctucanfd: add HW timestamps to RX and error
 CAN frames

On 16.10.2022 23:54:48, Pavel Pisa wrote:
> I hope/expect that it is not problem to call clk_prepare_enable twice
> on same reference when the clocks are the same. As I read the code the
> state is counted. If it is a problem then some if has to be put there
> when the core and timestamp clock are the same.

The clock prepare and enable are counting. If you call then twice, you
have to call disable and unprepare twice, too, to shut it down. This is
widely used in the kernel, e.g. if the same clock is passed to several
IP cores.


Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   |  |
Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |

Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)

Powered by blists - more mailing lists