From: Finn Thain <fthain@linux-m68k.org>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Daniel Palmer <daniel@0x0f.com>,
stable@kernel.org, linux-m68k@lists.linux-m68k.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] m68k: mvme147: Reinstate early console
Date: Wed, 6 Nov 2024 10:17:17 +1100 (AEDT) [thread overview]
Message-ID: <d321d30f-df85-f6d8-69d4-4dfb68cb9b93@linux-m68k.org> (raw)
In-Reply-To: <CAMuHMdXR6gN44MiE3Nc-bU6u92_RA2PWx37ndBKA7AD+gKErTQ@mail.gmail.com>
On Tue, 5 Nov 2024, Geert Uytterhoeven wrote:
> > Cc: Daniel Palmer <daniel@0x0f.com>
> > Cc: stable@kernel.org
> > Fixes: a38eaa07a0ce ("m68k/mvme147: config.c - Remove unused functions")
> > Signed-off-by: Daniel Palmer <daniel@0x0f.com>
> > Reviewed-by: Finn Thain <fthain@linux-m68k.org>
>
> As this patch differs from Daniel's original, I guess you want
>
> Co-deloped-by: Daniel Palmer <daniel@0x0f.com>
> Signed-off-by: Daniel Palmer <daniel@0x0f.com>
> Co-deloped-by: Finn Thain <fthain@linux-m68k.org>
> Signed-off-by: Finn Thain <fthain@linux-m68k.org>
>
> instead?
>
No problem.
> > --- a/arch/m68k/mvme147/config.c
> > +++ b/arch/m68k/mvme147/config.c
> > @@ -33,6 +33,7 @@
> > #include <asm/mvme147hw.h>
> > #include <asm/config.h>
> >
> > +#include "mvme147.h"
> >
> > static void mvme147_get_model(char *model);
> > extern void mvme147_sched_init(void);
> > @@ -177,3 +178,29 @@ static u64 mvme147_read_clk(struct clocksource *cs)
> >
> > return ticks;
> > }
> > +
> > +#define SCC_DELAY do { __asm__ __volatile__ ("nop; nop;"); } while (0)
>
> Please keep on using a static (inline) function instead of a macro.
>
Will do.
> > +
> > +static void scc_write(char ch)
> > +{
> > + do {
> > + SCC_DELAY;
> > + } while (!(in_8(M147_SCC_A_ADDR) & BIT(2)));
> > + SCC_DELAY;
> > + out_8(M147_SCC_A_ADDR, 8);
> > + SCC_DELAY;
> > + out_8(M147_SCC_A_ADDR, ch);
> > +}
>
> The rest LGTM, so
> Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
>
Thanks.
next prev parent reply other threads:[~2024-11-05 23:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-03 3:29 Finn Thain
2024-11-05 14:48 ` Geert Uytterhoeven
2024-11-05 23:17 ` Finn Thain [this message]
2024-11-05 23:51 Finn Thain
2024-11-06 8:17 ` Geert Uytterhoeven
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=d321d30f-df85-f6d8-69d4-4dfb68cb9b93@linux-m68k.org \
--to=fthain@linux-m68k.org \
--cc=daniel@0x0f.com \
--cc=geert@linux-m68k.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-m68k@lists.linux-m68k.org \
--cc=stable@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
all inboxes | Powered by JetHome®