Message ID | 20221009181338.2896660-1-lis8215@gmail.com |
---|---|
Headers | show |
Series | MIPS: ingenic: Add support for the JZ4755 SoC | expand |
пн, 10 окт. 2022 г. в 17:55, Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org>:
> How do you plan to merge it? Usually these go via subsystem trees...
It's a new case for me, could you explain the problem a bit more?
What things should I bother with in the next patchset version?
Thanks in advance.
On Sun, Oct 09, 2022 at 09:13:36PM +0300, Siarhei Volkau wrote: > These SoCs are close to others but they have a clock divisor /2 for low > clock peripherals, thus to set up a proper baud rate we need to take > this into account. > > The divisor bit is located in CGU area, unfortunately the clk framework > can't be used at early boot steps, so it's checked by direct readl() > call. > > Signed-off-by: Siarhei Volkau <lis8215@gmail.com> > --- > drivers/tty/serial/8250/8250_ingenic.c | 39 ++++++++++++++++++++++---- > 1 file changed, 34 insertions(+), 5 deletions(-) > > diff --git a/drivers/tty/serial/8250/8250_ingenic.c b/drivers/tty/serial/8250/8250_ingenic.c > index 2b2f5d8d2..f2662720d 100644 > --- a/drivers/tty/serial/8250/8250_ingenic.c > +++ b/drivers/tty/serial/8250/8250_ingenic.c > @@ -70,7 +70,8 @@ static void ingenic_early_console_write(struct console *console, > ingenic_early_console_putc); > } > > -static void __init ingenic_early_console_setup_clock(struct earlycon_device *dev) > +static void __init ingenic_early_console_setup_clock(struct earlycon_device *dev, > + int clkdiv) What does "clkdiv" mean here? And this function is rough, adding a random integer to a function requires you to look it up every time you see this call. If you only have 1 or 2 as an option, just have 2 functions instead please. thanks, greg k-h
On 10/10/2022 16:18, Siarhei Volkau wrote: > пн, 10 окт. 2022 г. в 17:55, Krzysztof Kozlowski > <krzysztof.kozlowski@linaro.org>: > >> How do you plan to merge it? Usually these go via subsystem trees... > > It's a new case for me, could you explain the problem a bit more? > What things should I bother with in the next patchset version? > Thanks in advance. Each binding goes via subsystem maintainer, not via DT bindings tree, so keeping all in one patch messes with that. Best regards, Krzysztof
пн, 10 окт. 2022 г. в 23:20, Greg Kroah-Hartman <gregkh@linuxfoundation.org>: > What does "clkdiv" mean here? That means a clock divisor between the input oscillator and UART peripheral clock source. Most Ingenic SoCs don't have that divisor, so 1 is always in effect for them. However, the JZ4750 and JZ4755 have switchable /2 clock divisor. > If you only have 1 or 2 as an option Yes, it is. > just have 2 functions instead please. Got it, will do that. Thank you.
Hi Siarhei, Le lun., oct. 10 2022 at 23:18:05 +0300, Siarhei Volkau <lis8215@gmail.com> a écrit : > пн, 10 окт. 2022 г. в 17:55, Krzysztof Kozlowski > <krzysztof.kozlowski@linaro.org>: > >> How do you plan to merge it? Usually these go via subsystem trees... > > It's a new case for me, could you explain the problem a bit more? > What things should I bother with in the next patchset version? > Thanks in advance. Just split the patchset, most of your patches (e.g. DMA patch, CGU, pinctrl, UART) should be sent separately. Otherwise it makes things much more complicated for merging. Cheers, -Paul