From: Paul Cercueil <paul@crapouillou.net>
To: Siarhei Volkau <lis8215@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Jiri Slaby <jirislaby@kernel.org>,
linux-serial@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org
Subject: Re: [PATCH v3 2/2] serial: 8250/ingenic: Add support for the JZ4750/JZ4755
Date: Sun, 23 Oct 2022 16:15:58 +0100 [thread overview]
Message-ID: <M2P7KR.MNWZYPK0OB5B@crapouillou.net> (raw)
In-Reply-To: <CAKNVLfbJaGd0t==AzxyT5Q7fVD7PwK75-S5dbb+G9GZUPpagZQ@mail.gmail.com>
Le dim. 23 oct. 2022 à 17:04:49 +0300, Siarhei Volkau
<lis8215@gmail.com> a écrit :
> вс, 23 окт. 2022 г. в 12:16, Paul Cercueil
> <paul@crapouillou.net>:
>> Do you have such hardware?
>
> No
>
>> Don't add support for cases you can't test.
>
> It's just a side effect of that approach.
>
>> For what we know - all JZ475x use a 24 MHz crystal and all JZ4760(B)
>> use a 12 MHz crystal, until proven otherwise.
>
> Ouf course it just confirms the rule but I found one exception:
> JZ4750 & 12MHz
> Link:
> https://github.com/carlos-wong/uboot_jz4755/blob/master/include/configs/lib4750.h
Then when this board is upstreamed it will declare a 12 MHz oscillator
in its DT, and the ingenic init code won't have to enable the /2
divider for that particular board.
> Regarding your proposal:
> In my opinion enabling the divisor unconditionally is a bad practice,
> as it's already enabled (or not) by the bootloader, with respect to
> the
> hardware capabilities.I think it's better to keep the driver as it is
> than
> adding such things.
Well, I disagree. Linux should not depend on whatever the bootloader
configures.
-Paul
next prev parent reply other threads:[~2022-10-23 15:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-22 16:50 [PATCH v3 0/2] serial: 8250/ingenic: Add support for the JZ4750 Siarhei Volkau
2022-10-22 16:50 ` [PATCH v3 1/2] dt-bindings: serial: ingenic: Add support for the JZ4750/55 SoCs Siarhei Volkau
2022-10-22 16:50 ` [PATCH v3 2/2] serial: 8250/ingenic: Add support for the JZ4750/JZ4755 Siarhei Volkau
2022-10-22 20:07 ` Paul Cercueil
2022-10-23 5:29 ` Siarhei Volkau
2022-10-23 9:16 ` Paul Cercueil
2022-10-23 14:04 ` Siarhei Volkau
2022-10-23 15:15 ` Paul Cercueil [this message]
2022-10-24 21:05 ` Paul Cercueil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=M2P7KR.MNWZYPK0OB5B@crapouillou.net \
--to=paul@crapouillou.net \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=jirislaby@kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=lis8215@gmail.com \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox