# Re: \[PATCH v6 14/17\] net: can: mscan: adjust to common clock support for mpc512x

- From: Anatolij Gustschin \<agust@denx.de\>
- Date: 2013-12-07 09:57:42 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2013/12/9347482
- Thread: https://ratatoskr.run/linuxppc-dev/2013/11/8081534/t.md

```text
On Sat, 30 Nov 2013 23:51:34 +0100
Gerhard Sittig [ref] wrote:

> implement a .get_clock() callback for the MPC512x platform which uses
> the common clock infrastructure (eliminating direct access to the clock
> control registers from within the CAN network driver), and provide the
> corresponding .put_clock() callback to release resources after use
> 
> acquire both the clock items for register access ("ipg") as well as for
> wire communication ("can")
> 
> keep the previous implementation of MPC512x support in place during
> migration, this results in a readable diff of the change
> 
> this change is neutral to the MPC5200 platform
> 
> Cc: Wolfgang Grandegger <redacted>
> Cc: Marc Kleine-Budde <mkl@pengutronix.de>
> Cc: <redacted>
> Signed-off-by: Gerhard Sittig <redacted>
> ---
>  drivers/net/can/mscan/mpc5xxx_can.c |  179 +++++++++++++++++++++++++++++++++++
>  1 file changed, 179 insertions(+)

applied to next. Thanks!

Anatolij
```
