linux-rtc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Laurent Vivier <laurent@vivier.eu>
To: Arnd Bergmann <arnd@arndb.de>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	linux-m68k <linux-m68k@lists.linux-m68k.org>,
	Alexandre Belloni <alexandre.belloni@bootlin.com>,
	Alessandro Zummo <a.zummo@towertech.it>,
	linux-rtc@vger.kernel.org, John Stultz <john.stultz@linaro.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	Stephen Boyd <sboyd@kernel.org>,
	Daniel Lezcano <daniel.lezcano@linaro.org>
Subject: Re: [PATCH v5 3/3] m68k: virt: Remove LEGACY_TIMER_TICK
Date: Thu, 13 Jan 2022 13:13:23 +0100	[thread overview]
Message-ID: <9683b9b7-22f8-dd59-b8f5-3294002c9dda@vivier.eu> (raw)
In-Reply-To: <CAK8P3a0GYm=Q5aPJuJJ7JoBQw4+QokgkMKv_D+YgYfzPODRYSQ@mail.gmail.com>

Le 13/01/2022 à 12:42, Arnd Bergmann a écrit :
> On Thu, Jan 13, 2022 at 12:32 PM Laurent Vivier <laurent@vivier.eu> wrote:
>> Le 13/01/2022 à 12:20, Arnd Bergmann a écrit :
>>> On Thu, Jan 13, 2022 at 11:35 AM Laurent Vivier <laurent@vivier.eu> wrote:
>>>>
>>>> Move virt machine to generic clockevents.
>>>>
>>>> cc: Arnd Bergmann <arnd@arndb.de>
>>>> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
>>>
>>> The change looks good, but it appears that you only just add the legacy code
>>> in the same series, and it would be easier to just add the correct version
>>> first.
>>
>> In fact, I'd like to keep it separated for two reasons:
>> - it can be used as an example for people that want to move from legacy to clockevents,
>> - the machine with legacy timer tick is in use for more than one year by debian to propose a m68k
>> buildd and dev machine, so it is really well tested and robust. If there is a bug in my clockevents
>> use it will be easier to detect.
> 
> In general, it should be easier to do a correct generic driver than
> an implementation for the legacy interface.
> 
>>>> diff --git a/arch/m68k/virt/timer.c b/arch/m68k/virt/timer.c
>>>> index 843bf6ed7e1a..767b01f75abb 100644
>>>> --- a/arch/m68k/virt/timer.c
>>>> +++ b/arch/m68k/virt/timer.c
>>>
>>> How about moving the entire file to drivers/clocksource/timer-goldfish.c?
>>> It shouldn't even be architecture specific any more at this point. It probably
>>> still is in practice, but that could be addressed when another architecture
>>> wants to share the implementation.
>>
>> For the moment I'd like to have my m68k virt machine merged, and I think it will be easier if I hit
>> only one subsystem/maintainer. Moreover I don't know if I use correctly the goldfish-rtc,  so for
>> the moment I think it's better if I keep it hidden in arch/m68k/virt.
>>
>> But I can propose to send a patch to move this code to drivers/clocksource/timer-goldfish.c once the
>> machine is merged.
> 
> If you are not sure about that implementation, I would think that's an
> extra reason to
> submit it to the clocksource maintainers for review (added to Cc
> here). You should still
> be able to merge the driver in the new location through the m68k tree
> as part of your
> series, but regardless of where it goes I think it needs an Ack from them.
> 

OK, I move my code to drivers/clocksource/timer-goldfish.c and send a new version of the series.

Thanks,
Laurent

      reply	other threads:[~2022-01-13 12:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-13 10:35 [PATCH v5 0/3] m68k: Add Virtual M68k Machine Laurent Vivier
2022-01-13 10:35 ` [PATCH v5 1/3] m68k: add asm/config.h Laurent Vivier
2022-01-13 10:35 ` [PATCH v5 2/3] m68k: introduce a virtual m68k machine Laurent Vivier
2022-01-13 10:35 ` [PATCH v5 3/3] m68k: virt: Remove LEGACY_TIMER_TICK Laurent Vivier
2022-01-13 11:20   ` Arnd Bergmann
2022-01-13 11:32     ` Laurent Vivier
2022-01-13 11:42       ` Arnd Bergmann
2022-01-13 12:13         ` Laurent Vivier [this message]

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=9683b9b7-22f8-dd59-b8f5-3294002c9dda@vivier.eu \
    --to=laurent@vivier.eu \
    --cc=a.zummo@towertech.it \
    --cc=alexandre.belloni@bootlin.com \
    --cc=arnd@arndb.de \
    --cc=daniel.lezcano@linaro.org \
    --cc=geert@linux-m68k.org \
    --cc=john.stultz@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-m68k@lists.linux-m68k.org \
    --cc=linux-rtc@vger.kernel.org \
    --cc=sboyd@kernel.org \
    --cc=tglx@linutronix.de \
    /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).