public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1 linux-next] hwrng: update Freescale i.MX RNGA Random Number Generator
@ 2016-08-12 21:20 Fabian Frederick
  2016-08-15 15:05 ` Arnd Bergmann
  0 siblings, 1 reply; 4+ messages in thread
From: Fabian Frederick @ 2016-08-12 21:20 UTC (permalink / raw)
  To: Matt Mackall, Herbert Xu; +Cc: Arnd Bergmann, linux-kernel, fabf

We can directly depend on SOC_IMX31 since
commit c9ee94965dce
("ARM: imx: deconstruct mxc_rnga initialization")

Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
 drivers/char/hw_random/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/char/hw_random/Kconfig b/drivers/char/hw_random/Kconfig
index 56ad5a59..8c0770b 100644
--- a/drivers/char/hw_random/Kconfig
+++ b/drivers/char/hw_random/Kconfig
@@ -244,7 +244,7 @@ config HW_RANDOM_TX4939
 
 config HW_RANDOM_MXC_RNGA
 	tristate "Freescale i.MX RNGA Random Number Generator"
-	depends on ARCH_HAS_RNGA
+	depends on SOC_IMX31
 	default HW_RANDOM
 	---help---
 	  This driver provides kernel-side support for the Random Number
-- 
2.8.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1 linux-next] hwrng: update Freescale i.MX RNGA Random Number Generator
  2016-08-12 21:20 [PATCH 1/1 linux-next] hwrng: update Freescale i.MX RNGA Random Number Generator Fabian Frederick
@ 2016-08-15 15:05 ` Arnd Bergmann
  2016-08-15 17:04   ` Fabian Frederick
  0 siblings, 1 reply; 4+ messages in thread
From: Arnd Bergmann @ 2016-08-15 15:05 UTC (permalink / raw)
  To: Fabian Frederick; +Cc: Matt Mackall, Herbert Xu, linux-kernel

On Friday 12 August 2016, Fabian Frederick wrote:
> We can directly depend on SOC_IMX31 since
> commit c9ee94965dce
> ("ARM: imx: deconstruct mxc_rnga initialization")
> 
> Signed-off-by: Fabian Frederick <fabf@skynet.be>

Did I cause a regression with my patch, without this change? If so, this should be
marked

Cc: stable@vger.kernel.org
Fixes: c9ee94965dce ("ARM: imx: deconstruct mxc_rnga initialization")

and the patch applied ASAP.

> ---
>  drivers/char/hw_random/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/char/hw_random/Kconfig b/drivers/char/hw_random/Kconfig
> index 56ad5a59..8c0770b 100644
> --- a/drivers/char/hw_random/Kconfig
> +++ b/drivers/char/hw_random/Kconfig
> @@ -244,7 +244,7 @@ config HW_RANDOM_TX4939
>  
>  config HW_RANDOM_MXC_RNGA
>  	tristate "Freescale i.MX RNGA Random Number Generator"
> -	depends on ARCH_HAS_RNGA
> +	depends on SOC_IMX31
>  	default HW_RANDOM

It would be nice to add "|| COMPILE_TEST here", but that should probably be
a separate patch, as we don't want to backport that or treat it as a bugfix.

	Arnd

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1 linux-next] hwrng: update Freescale i.MX RNGA Random Number Generator
  2016-08-15 15:05 ` Arnd Bergmann
@ 2016-08-15 17:04   ` Fabian Frederick
  2016-08-16  9:57     ` Herbert Xu
  0 siblings, 1 reply; 4+ messages in thread
From: Fabian Frederick @ 2016-08-15 17:04 UTC (permalink / raw)
  To: Arnd Bergmann; +Cc: Herbert Xu, linux-kernel, Matt Mackall



> On 15 August 2016 at 17:05 Arnd Bergmann <arnd@arndb.de> wrote:
>
>
> On Friday 12 August 2016, Fabian Frederick wrote:
> > We can directly depend on SOC_IMX31 since
> > commit c9ee94965dce
> > ("ARM: imx: deconstruct mxc_rnga initialization")
> >
> > Signed-off-by: Fabian Frederick <fabf@skynet.be>
>
> Did I cause a regression with my patch, without this change? If so, this
> should be
> marked
>
> Cc: stable@vger.kernel.org
> Fixes: c9ee94965dce ("ARM: imx: deconstruct mxc_rnga initialization")
>
> and the patch applied ASAP.

Thanks Arnd. Your patch brings the following regression:
CONFIG_HW_RANDOM_MXC_RNGA can't be switched on with an unknown symbol and
mxc-rnga.o will never build with
ARCH=arm make M=drivers/char/hw_random
Before your patch, HW_RANDOM_MXC_RNGA required ARCH_HAS_RNGA
which was based on IMX_HAVE_PLATFORM_MXC_RNGA  && ARCH_MXC
IMX_HAVE_PLATFORM_MXC_RNGA  was based on SOC_IMX31.
As I see SOC_IMX31 is selected by ARCH_MXC, my patch still seems ok and I can Cc
it for stable.

Regards,
Fabian

>
> > ---
> >  drivers/char/hw_random/Kconfig | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/char/hw_random/Kconfig b/drivers/char/hw_random/Kconfig
> > index 56ad5a59..8c0770b 100644
> > --- a/drivers/char/hw_random/Kconfig
> > +++ b/drivers/char/hw_random/Kconfig
> > @@ -244,7 +244,7 @@ config HW_RANDOM_TX4939
> > 
> >  config HW_RANDOM_MXC_RNGA
> >     tristate "Freescale i.MX RNGA Random Number Generator"
> > -   depends on ARCH_HAS_RNGA
> > +   depends on SOC_IMX31
> >     default HW_RANDOM
>
> It would be nice to add "|| COMPILE_TEST here", but that should probably be
> a separate patch, as we don't want to backport that or treat it as a bugfix.
>
>       Arnd

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1 linux-next] hwrng: update Freescale i.MX RNGA Random Number Generator
  2016-08-15 17:04   ` Fabian Frederick
@ 2016-08-16  9:57     ` Herbert Xu
  0 siblings, 0 replies; 4+ messages in thread
From: Herbert Xu @ 2016-08-16  9:57 UTC (permalink / raw)
  To: Fabian Frederick; +Cc: Arnd Bergmann, linux-kernel, Matt Mackall

On Mon, Aug 15, 2016 at 07:04:45PM +0200, Fabian Frederick wrote:
> 
> 
> > On 15 August 2016 at 17:05 Arnd Bergmann <arnd@arndb.de> wrote:
> >
> >
> > On Friday 12 August 2016, Fabian Frederick wrote:
> > > We can directly depend on SOC_IMX31 since
> > > commit c9ee94965dce
> > > ("ARM: imx: deconstruct mxc_rnga initialization")
> > >
> > > Signed-off-by: Fabian Frederick <fabf@skynet.be>
> >
> > Did I cause a regression with my patch, without this change? If so, this
> > should be
> > marked
> >
> > Cc: stable@vger.kernel.org
> > Fixes: c9ee94965dce ("ARM: imx: deconstruct mxc_rnga initialization")
> >
> > and the patch applied ASAP.
> 
> Thanks Arnd. Your patch brings the following regression:
> CONFIG_HW_RANDOM_MXC_RNGA can't be switched on with an unknown symbol and
> mxc-rnga.o will never build with
> ARCH=arm make M=drivers/char/hw_random
> Before your patch, HW_RANDOM_MXC_RNGA required ARCH_HAS_RNGA
> which was based on IMX_HAVE_PLATFORM_MXC_RNGA  && ARCH_MXC
> IMX_HAVE_PLATFORM_MXC_RNGA  was based on SOC_IMX31.
> As I see SOC_IMX31 is selected by ARCH_MXC, my patch still seems ok and I can Cc
> it for stable.

Please resubmit the patch to linux-crypto@vger.kernel.org.

Thanks,
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-08-16  9:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-12 21:20 [PATCH 1/1 linux-next] hwrng: update Freescale i.MX RNGA Random Number Generator Fabian Frederick
2016-08-15 15:05 ` Arnd Bergmann
2016-08-15 17:04   ` Fabian Frederick
2016-08-16  9:57     ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox