The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] hwrng: amd - use PMBASE_OFFSET consistently
@ 2026-10-08  9:37 Thorsten Blum
  2026-10-15  9:57 ` Herbert Xu
  0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Blum @ 2026-10-08  9:37 UTC (permalink / raw)
  To: Olivia Mackall, Herbert Xu, Thorsten Blum,
	Uwe Kleine-König (The Capable Hub), Kees Cook
  Cc: linux-crypto, linux-kernel

Use PMBASE_OFFSET instead of the hard-coded 0xF0 and add the missing
space to the ioport_map() error message.

Signed-off-by: Thorsten Blum <blum@kernel.org>
---
 drivers/char/hw_random/amd-rng.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/char/hw_random/amd-rng.c b/drivers/char/hw_random/amd-rng.c
index fb5422612182..ef177c99515d 100644
--- a/drivers/char/hw_random/amd-rng.c
+++ b/drivers/char/hw_random/amd-rng.c
@@ -158,14 +158,14 @@ static int __init amd_rng_mod_init(void)
 
 	if (!request_region(pmbase + PMBASE_OFFSET, PMBASE_SIZE, DRV_NAME)) {
 		dev_err(&pdev->dev, DRV_NAME " region 0x%x already in use!\n",
-			pmbase + 0xF0);
+			pmbase + PMBASE_OFFSET);
 		err = -EBUSY;
 		goto out;
 	}
 
 	priv->iobase = ioport_map(pmbase + PMBASE_OFFSET, PMBASE_SIZE);
 	if (!priv->iobase) {
-		pr_err(DRV_NAME "Cannot map ioport\n");
+		pr_err(DRV_NAME " cannot map ioport\n");
 		err = -EINVAL;
 		goto err;
 	}

base-commit: 666d66df25253070cb297cb920b0bcfcfe5eb871

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

* Re: [PATCH] hwrng: amd - use PMBASE_OFFSET consistently
  2026-10-08  9:37 [PATCH] hwrng: amd - use PMBASE_OFFSET consistently Thorsten Blum
@ 2026-10-15  9:57 ` Herbert Xu
  0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2026-10-15  9:57 UTC (permalink / raw)
  To: Thorsten Blum
  Cc: Olivia Mackall, Uwe Kleine-König (The Capable Hub),
	Kees Cook, linux-crypto, linux-kernel

On Thu, Oct 08, 2026 at 11:37:37AM +0200, Thorsten Blum wrote:
> Use PMBASE_OFFSET instead of the hard-coded 0xF0 and add the missing
> space to the ioport_map() error message.
> 
> Signed-off-by: Thorsten Blum <blum@kernel.org>
> ---
>  drivers/char/hw_random/amd-rng.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Patch applied.  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] 2+ messages in thread

end of thread, other threads:[~2026-10-15  9:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-08  9:37 [PATCH] hwrng: amd - use PMBASE_OFFSET consistently Thorsten Blum
2026-10-15  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