linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Rafał Miłecki" <zajec5@gmail.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: "Jiri Slaby" <jirislaby@kernel.org>,
	linux-serial@vger.kernel.org, "Hauke Mehrtens" <hauke@hauke-m.de>,
	bcm-kernel-feedback-list@broadcom.com,
	"Rafał Miłecki" <rafal@milecki.pl>
Subject: Re: [PATCH] tty: serial: bcm63xx: allow building on ARM64
Date: Wed, 25 Nov 2020 09:58:19 +0100	[thread overview]
Message-ID: <8ad5aea0-bf47-acde-2c96-e15d59a2bf54@gmail.com> (raw)
In-Reply-To: <X74bxfji0uTZV8y9@kroah.com>

On 25.11.2020 09:54, Greg Kroah-Hartman wrote:
> On Wed, Nov 25, 2020 at 09:38:50AM +0100, Rafał Miłecki wrote:
>> On 25.11.2020 09:23, Greg Kroah-Hartman wrote:
>>> On Wed, Nov 25, 2020 at 09:13:52AM +0100, Rafał Miłecki wrote:
>>>> From: Rafał Miłecki <rafal@milecki.pl>
>>>>
>>>> Hardware supported by bcm63xx is also used by BCM4908 SoCs family that
>>>> is ARM64.
>>>>
>>>> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
>>>> ---
>>>>    drivers/tty/serial/Kconfig | 3 ++-
>>>>    1 file changed, 2 insertions(+), 1 deletion(-)
>>>>
>>>> diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig
>>>> index 28f22e58639c..6907c5b17a0e 100644
>>>> --- a/drivers/tty/serial/Kconfig
>>>> +++ b/drivers/tty/serial/Kconfig
>>>> @@ -1133,7 +1133,8 @@ config SERIAL_TIMBERDALE
>>>>    config SERIAL_BCM63XX
>>>>    	tristate "Broadcom BCM63xx/BCM33xx UART support"
>>>>    	select SERIAL_CORE
>>>> -	depends on MIPS || ARM || COMPILE_TEST
>>>> +	depends on MIPS || ARM || ARM64 || COMPILE_TEST
>>>
>>> Why do we have an arch dependancy at all now?
>>
>>  From my experience "depends" is often used to limit symbol visibility to
>> applicable platforms only. I don't think Broadcom has any x86, risc, etc.
>> platforms so it's useless there.
>>
>> As for testing driver compilation on unused arch-s I thought that's what
>> COMPILE_TEST is for.
>>
>> Am I wrong there? I'm afraid we don't have clear Documentation on that.
>> Please kindly point me to some info if I'm wrong.
> 
> If COMPILE_TEST is working for this driver, then trying to restrict it
> to a specific arch is usually pointless and the arch dependency can be
> removed, keeping patches like this from having to be made over time to
> add it to new arches :)
> 
>>>> +	default ARCH_BCM4908
>>>
>>> Really?  I thought we were getting rid of these "ARCH_platform_type" of
>>> things.  That's what a defconfig file is for, right?
>>
>> I had to miss something, last time I checked Linus called defconfigs a
>> garbage and wanted to get rid of them:
>> https://lwn.net/Articles/391372/
>>
>> There are also no platform defconfigs in arch/arm64/ at all. Should I
>> handle it with arch/arm64/Kconfig.platforms and "select SERIAL_BCM63XX"?
> 
> I thought we were trying to get rid of arm64 "platforms" as well.  My
> point being, why is this needed at all?

I find it useful for getting working kernel config for buildoot. It's
simpler to look in arch/ than either:
1. Getting list of all required drivers manually (by looking at DT?)
2. Checking for config used by OpenWrt
3. Checking for config used by Linaro
4. Checking for config used by Foo

  reply	other threads:[~2020-11-25  8:58 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-25  8:13 [PATCH] tty: serial: bcm63xx: allow building on ARM64 Rafał Miłecki
2020-11-25  8:23 ` Greg Kroah-Hartman
2020-11-25  8:38   ` Rafał Miłecki
2020-11-25  8:54     ` Greg Kroah-Hartman
2020-11-25  8:58       ` Rafał Miłecki [this message]
2020-12-08 10:45       ` Geert Uytterhoeven
2020-12-08 10:59         ` Rafał Miłecki
2020-12-08 15:30           ` Geert Uytterhoeven
2020-12-08 11:03         ` Greg Kroah-Hartman
2020-12-08 12:12           ` Geert Uytterhoeven
2020-11-25  9:06 ` [PATCH V2] tty: serial: bcm63xx: lower driver dependencies Rafał Miłecki
2020-11-28  5:02   ` Florian Fainelli
2020-12-08 10:47   ` Geert Uytterhoeven
2020-12-08 11:02     ` Rafał Miłecki
2020-12-08 19:23 ` [PATCH] tty: serial: bcm63xx: allow building on ARM64 Florian Fainelli

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=8ad5aea0-bf47-acde-2c96-e15d59a2bf54@gmail.com \
    --to=zajec5@gmail.com \
    --cc=bcm-kernel-feedback-list@broadcom.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=hauke@hauke-m.de \
    --cc=jirislaby@kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=rafal@milecki.pl \
    /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;
as well as URLs for NNTP newsgroup(s).