From: Guenter Roeck <linux@roeck-us.net>
To: Christophe Leroy <christophe.leroy@csgroup.eu>,
Michael Ellerman <mpe@ellerman.id.au>,
Nicholas Piggin <npiggin@gmail.com>
Cc: Wim Van Sebroeck <wim@linux-watchdog.org>,
linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org,
linux-watchdog@vger.kernel.org
Subject: Re: [PATCH v1 13/19] watchdog: booke_wdt: Replace PPC_FSL_BOOK3E by PPC_E500
Date: Thu, 8 Sep 2022 10:49:31 -0700 [thread overview]
Message-ID: <35ed4d8c-21c3-fd1f-bbab-fa826c33adab@roeck-us.net> (raw)
In-Reply-To: <015ac5217fd0f061e98df9cf98bce515855f2bc3.1662658653.git.christophe.leroy@csgroup.eu>
On 9/8/22 10:37, Christophe Leroy wrote:
> CONFIG_PPC_FSL_BOOK3E is redundant with CONFIG_PPC_E500.
>
> Replace it so that CONFIG_PPC_FSL_BOOK3E can be removed later.
>
> Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
> Cc: Wim Van Sebroeck <wim@linux-watchdog.org>
> Cc: Guenter Roeck <linux@roeck-us.net>
> Cc: linux-watchdog@vger.kernel.org
Acked-by: Guenter Roeck <linux@roeck-us.net>
> ---
> drivers/watchdog/Kconfig | 8 ++++----
> drivers/watchdog/booke_wdt.c | 8 ++++----
> 2 files changed, 8 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
> index 9295492d24f7..b7c03c600567 100644
> --- a/drivers/watchdog/Kconfig
> +++ b/drivers/watchdog/Kconfig
> @@ -1935,10 +1935,10 @@ config BOOKE_WDT
> config BOOKE_WDT_DEFAULT_TIMEOUT
> int "PowerPC Book-E Watchdog Timer Default Timeout"
> depends on BOOKE_WDT
> - default 38 if PPC_FSL_BOOK3E
> - range 0 63 if PPC_FSL_BOOK3E
> - default 3 if !PPC_FSL_BOOK3E
> - range 0 3 if !PPC_FSL_BOOK3E
> + default 38 if PPC_E500
> + range 0 63 if PPC_E500
> + default 3 if !PPC_E500
> + range 0 3 if !PPC_E500
> help
> Select the default watchdog timer period to be used by the PowerPC
> Book-E watchdog driver. A watchdog "event" occurs when the bit
> diff --git a/drivers/watchdog/booke_wdt.c b/drivers/watchdog/booke_wdt.c
> index 75da5cd02615..932a03f4436a 100644
> --- a/drivers/watchdog/booke_wdt.c
> +++ b/drivers/watchdog/booke_wdt.c
> @@ -27,7 +27,7 @@
> */
>
>
> -#ifdef CONFIG_PPC_FSL_BOOK3E
> +#ifdef CONFIG_PPC_E500
> #define WDTP(x) ((((x)&0x3)<<30)|(((x)&0x3c)<<15))
> #define WDTP_MASK (WDTP(0x3f))
> #else
> @@ -45,7 +45,7 @@ MODULE_PARM_DESC(nowayout,
> "Watchdog cannot be stopped once started (default="
> __MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
>
> -#ifdef CONFIG_PPC_FSL_BOOK3E
> +#ifdef CONFIG_PPC_E500
>
> /* For the specified period, determine the number of seconds
> * corresponding to the reset time. There will be a watchdog
> @@ -88,7 +88,7 @@ static unsigned int sec_to_period(unsigned int secs)
>
> #define MAX_WDT_TIMEOUT period_to_sec(1)
>
> -#else /* CONFIG_PPC_FSL_BOOK3E */
> +#else /* CONFIG_PPC_E500 */
>
> static unsigned long long period_to_sec(unsigned int period)
> {
> @@ -102,7 +102,7 @@ static unsigned int sec_to_period(unsigned int secs)
>
> #define MAX_WDT_TIMEOUT 3 /* from Kconfig */
>
> -#endif /* !CONFIG_PPC_FSL_BOOK3E */
> +#endif /* !CONFIG_PPC_E500 */
>
> static void __booke_wdt_set(void *data)
> {
next prev parent reply other threads:[~2022-09-08 17:50 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-08 17:37 [PATCH v1 01/19] powerpc/Kconfig: Fix non existing CONFIG_PPC_FSL_BOOKE Christophe Leroy
2022-09-08 17:37 ` [PATCH v1 02/19] powerpc/64e: Tie PPC_BOOK3E_64 to PPC_E500MC Christophe Leroy
2022-09-09 5:50 ` Michael Ellerman
2022-09-09 6:22 ` Christophe Leroy
2022-09-09 12:39 ` Michael Ellerman
2022-09-08 17:37 ` [PATCH v1 03/19] powerpc/64e: Remove unnecessary #ifdef CONFIG_PPC_FSL_BOOK3E Christophe Leroy
2022-09-08 17:37 ` [PATCH v1 04/19] powerpc/cputable: Remove __machine_check_early_realmode_p{7/8/9} prototypes Christophe Leroy
2022-09-08 17:37 ` [PATCH v1 05/19] powerpc/cputable: Move __cpu_setup() prototypes out of cputable.h Christophe Leroy
2022-09-08 17:37 ` [PATCH v1 06/19] powerpc/cputable: Split cpu_specs[] " Christophe Leroy
2022-09-08 17:37 ` [PATCH v1 07/19] powerpc: Remove CONFIG_FSL_BOOKE Christophe Leroy
2022-09-08 17:37 ` [PATCH v1 08/19] powerpc/cputable: Split cpu_specs[] for mpc85xx and e500mc Christophe Leroy
2022-09-08 17:37 ` [PATCH v1 09/19] powerpc: Remove CONFIG_PPC_BOOK3E Christophe Leroy
2022-09-08 17:37 ` [PATCH v1 10/19] powerpc: Remove redundant selection of E500 and E500MC Christophe Leroy
2022-09-08 17:37 ` [PATCH v1 11/19] powerpc: Change CONFIG_E500 to CONFIG_PPC_E500 Christophe Leroy
2022-09-08 17:37 ` [PATCH v1 12/19] Documentation: Rename PPC_FSL_BOOK3E to PPC_E500 Christophe Leroy
2022-09-08 17:37 ` [PATCH v1 13/19] watchdog: booke_wdt: Replace PPC_FSL_BOOK3E by PPC_E500 Christophe Leroy
2022-09-08 17:49 ` Guenter Roeck [this message]
2022-09-08 17:37 ` [PATCH v1 14/19] powerpc: Remove CONFIG_PPC_FSL_BOOK3E Christophe Leroy
2022-09-08 17:37 ` [PATCH v1 15/19] powerpc: Remove CONFIG_PPC_BOOK3E_MMU Christophe Leroy
2022-09-08 17:37 ` [PATCH v1 16/19] powerpc: Replace PPC_85xx || PPC_BOOKE_64 by PPC_E500 Christophe Leroy
2022-09-08 17:37 ` [PATCH v1 17/19] powerpc: Simplify redundant Kconfig tests Christophe Leroy
2022-09-08 17:37 ` [PATCH v1 18/19] powerpc: Cleanup idle for e500 Christophe Leroy
2022-09-08 17:37 ` [PATCH v1 19/19] powerpc: Remove impossible mmu_psize_defs[] on nohash Christophe Leroy
2022-09-09 2:35 ` kernel test robot
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=35ed4d8c-21c3-fd1f-bbab-fa826c33adab@roeck-us.net \
--to=linux@roeck-us.net \
--cc=christophe.leroy@csgroup.eu \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
--cc=npiggin@gmail.com \
--cc=wim@linux-watchdog.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;
as well as URLs for NNTP newsgroup(s).