From: Tom Rini <trini@konsulko.com>
To: Angelo Dureghello <angelo@kernel-space.org>
Cc: u-boot@lists.denx.de, Huan Wang <alison.wang@nxp.com>
Subject: Re: [PATCH 04/11] m68k: Rework asm/global_data.h slightly
Date: Wed, 22 Nov 2023 16:09:03 -0500 [thread overview]
Message-ID: <20231122210903.GT2513409@bill-the-cat> (raw)
In-Reply-To: <8d7b5e58-031b-d3bd-7270-b19c8e2a13cd@kernel-space.org>
[-- Attachment #1: Type: text/plain, Size: 3002 bytes --]
On Wed, Nov 22, 2023 at 10:04:38PM +0100, Angelo Dureghello wrote:
> Hi Tom,
>
> thanks,
>
> On 22/11/23 2:11 PM, Tom Rini wrote:
> > In the architecture global data, replace the one case of u32 with
> > unsigned long. Now, we can drop config.h here but then do need to add it
> > in two m68k-centric spaces.
> >
> > Signed-off-by: Tom Rini <trini@konsulko.com>
> > ---
> > Cc: Huan Wang <alison.wang@nxp.com>
> > Cc: Angelo Dureghello <angelo@kernel-space.org>
> > ---
> > arch/m68k/include/asm/cache.h | 2 ++
> > arch/m68k/include/asm/global_data.h | 4 +---
> > arch/m68k/lib/traps.c | 1 +
> > 3 files changed, 4 insertions(+), 3 deletions(-)
> >
> > diff --git a/arch/m68k/include/asm/cache.h b/arch/m68k/include/asm/cache.h
> > index 8ed2b4dbab47..6ef7f7be1af8 100644
> > --- a/arch/m68k/include/asm/cache.h
> > +++ b/arch/m68k/include/asm/cache.h
> > @@ -9,6 +9,8 @@
> > #ifndef __CACHE_H
> > #define __CACHE_H
> > +#include <config.h>
> > +
> > #if defined(CONFIG_MCF520x) || defined(CONFIG_MCF523x) || \
> > defined(CONFIG_MCF52x2)
> > #define CFG_CF_V2
> > diff --git a/arch/m68k/include/asm/global_data.h b/arch/m68k/include/asm/global_data.h
> > index 5f576ba16f9a..c2ef5770a3df 100644
> > --- a/arch/m68k/include/asm/global_data.h
> > +++ b/arch/m68k/include/asm/global_data.h
> > @@ -7,8 +7,6 @@
> > #ifndef __ASM_GBL_DATA_H
> > #define __ASM_GBL_DATA_H
> > -#include <config.h>
> > -
> > /* Architecture-specific global data */
> > struct arch_global_data {
> > #ifdef CONFIG_SYS_I2C_FSL
> > @@ -24,7 +22,7 @@ struct arch_global_data {
> > unsigned long sdhc_clk;
> > #endif
> > #if defined(CONFIG_FSL_ESDHC)
> > - u32 sdhc_per_clk;
> > + unsigned long sdhc_per_clk;
> > #endif
> > };
> > diff --git a/arch/m68k/lib/traps.c b/arch/m68k/lib/traps.c
> > index c283351181d8..2a025c5a6e86 100644
> > --- a/arch/m68k/lib/traps.c
> > +++ b/arch/m68k/lib/traps.c
> > @@ -7,6 +7,7 @@
> > * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
> > */
> > +#include <config.h>
> > #include <init.h>
> > #include <watchdog.h>
> > #include <command.h>
>
>
> testing this getting some errors
>
> +drivers/watchdog/mcf_wdt.c: In function 'mcf_watchdog_init':
> +drivers/watchdog/mcf_wdt.c:43:26: error: 'CFG_SYS_CLK' undeclared (first
> use in this function)
> + 43 | cycles_per_sec = CFG_SYS_CLK / fixed_divider;
> + | ^~~~~~~~~~~
>
>
> Seems solved by
>
> diff --git a/drivers/watchdog/mcf_wdt.c b/drivers/watchdog/mcf_wdt.c
> index b555bbeb68..f5ff221dd5 100644
> --- a/drivers/watchdog/mcf_wdt.c
> +++ b/drivers/watchdog/mcf_wdt.c
> @@ -11,6 +11,7 @@
> #include <asm/io.h>
> #include <wdt.h>
> #include <linux/bitops.h>
> +#include <config.h>
Did you have the whole series applied? That is a reasonable solution,
but I didn't see a failure here, thanks for the report.
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
next prev parent reply other threads:[~2023-11-22 21:09 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-22 13:11 [PATCH 01/11] global: Remove duplicate common.h inclusions Tom Rini
2023-11-22 13:11 ` [PATCH 02/11] arm: Remove <asm/types.h> from asm/global_data.h Tom Rini
2023-12-02 18:23 ` Simon Glass
2023-11-22 13:11 ` [PATCH 03/11] sandbox: Add <linux/types.h> to asm/global_data.h and asm/io.h Tom Rini
2023-11-30 2:45 ` Simon Glass
2023-11-22 13:11 ` [PATCH 04/11] m68k: Rework asm/global_data.h slightly Tom Rini
2023-11-22 21:04 ` Angelo Dureghello
2023-11-22 21:09 ` Tom Rini [this message]
2023-11-23 20:44 ` Angelo Dureghello
2023-11-22 13:11 ` [PATCH 05/11] global: Rework architecture global_data.h to include <linux/types.h> Tom Rini
2023-12-02 18:23 ` Simon Glass
2023-11-22 13:11 ` [PATCH 06/11] lib/sha*.c: Update header list Tom Rini
2023-12-02 18:23 ` Simon Glass
2023-12-09 15:48 ` Tom Rini
2023-11-22 13:11 ` [PATCH 07/11] rmobile: Add <mach/rmobile.h> to cpu_info-rzg2l.c Tom Rini
2023-11-22 16:15 ` Marek Vasut
2023-11-22 13:11 ` [PATCH 08/11] efi_loader: Remove <common.h> Tom Rini
2023-11-22 13:46 ` Ilias Apalodimas
2023-11-22 13:11 ` [PATCH 09/11] display_options: Clean up headers Tom Rini
2023-11-30 2:45 ` Simon Glass
2023-11-22 13:11 ` [PATCH 10/11] include: Further cleanup includes Tom Rini
2023-12-02 18:23 ` Simon Glass
2023-11-22 13:11 ` [PATCH 11/11] lib: Remove <common.h> inclusion from these files Tom Rini
2023-12-01 18:44 ` Simon Glass
2023-12-02 18:23 ` [PATCH 01/11] global: Remove duplicate common.h inclusions Simon Glass
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=20231122210903.GT2513409@bill-the-cat \
--to=trini@konsulko.com \
--cc=alison.wang@nxp.com \
--cc=angelo@kernel-space.org \
--cc=u-boot@lists.denx.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