# Re: \[PATCH v6 09/17\] serial: mpc512x: adjust for OF based clock lookup

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

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

> after device tree based clock lookup became available, the peripheral
> driver need no longer construct clock names which include the PSC index,
> remove the "psc%d_mclk" template and unconditionally use 'mclk'
> 
> acquire and release the "ipg" clock item for register access as well
> 
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Cc: Jiri Slaby <redacted>
> Cc: <redacted>
> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> # for v4
> Signed-off-by: Gerhard Sittig <redacted>
> ---
> Greg, the difference since v4 of this patch is that v4 took the 'mclk'
> and 'ipg' clock items in reverse order, and thus potentially obfuscated
> the adjusted name for 'mclk' -- the updated version of the patch is
> identical in content but cleaner diff-wise
> 
> ---
>  drivers/tty/serial/mpc52xx_uart.c |   40 ++++++++++++++++++++++++++++++++-----
>  1 file changed, 35 insertions(+), 5 deletions(-)

applied to next. Thanks!

Anatolij
```
