All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Zimmermann <tzimmermann-l3A5Bk7waGM@public.gmane.org>
To: Krzysztof Kozlowski
	<krzk-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Richard Henderson <rth-hL46jP5Bxq7R7s880joybQ@public.gmane.org>,
	Ivan Kokshaysky
	<ink-biIs/Y0ymYJMZLIVYojuPNP0rXTJTi09@public.gmane.org>,
	Matt Turner <mattst88-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Alexey Brodkin <abrodkin-HKixBCOQz3hWk0Htik3J/w@public.gmane.org>,
	Vineet Gupta <vgupta-HKixBCOQz3hWk0Htik3J/w@public.gmane.org>,
	"James E.J. Bottomley"
	<James.Bottomley-d9PhHud1JfjCXq6kfMZ53/egYHeGw8Jk@public.gmane.org>,
	Helge Deller <deller-Mmb7MZpHnFY@public.gmane.org>,
	Benjamin Herrenschmidt
	<benh-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>,
	Paul Mackerras <paulus-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org>,
	Michael Ellerman <mpe-Gsx/Oe8HsFggBc27wqDAHg@public.gmane.org>,
	Yoshinori Sato
	<ysato-Rn4VEauK+AKRv+LV9MX5uooqe+aC9MnS@public.gmane.org>,
	Rich Felker <dalias-8zAoT0mYgF4@public.gmane.org>,
	Dave Airlie <airlied-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
	David Airlie <airlied-cv59FeDIM0c@public.gmane.org>,
	Daniel Vetter <daniel-/w4YWyX8dFk@public.gmane.org>,
	Ben Skeggs <bskeggs-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
	Mauro Carvalho Chehab
	<mchehab-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Jiri Slaby <jirislaby-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Nick Kossifidis
	<mickflemm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Luis Chamberlain <mcgrof-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Kalle Valo <kvalo-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>,
	"David S. Miller" <davem@davemloft>
Subject: Re: [RESEND PATCH v2 6/9] drm/mgag200: Constify ioreadX() iomem argument (as in generic implementation)
Date: Thu, 12 Mar 2020 11:49:05 +0100	[thread overview]
Message-ID: <90baef2d-25fe-fac4-6a7e-b103b4b6721e__21384.6914399014$1585552960$gmane$org@suse.de> (raw)
In-Reply-To: <20200219175007.13627-7-krzk-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>


[-- Attachment #1.1.1: Type: text/plain, Size: 1873 bytes --]

Hi Krzysztof,

I just received a resend email from 3 weeks ago :/

Do you want me to merge the mgag200 patch into drm-misc-next?

Best regards
Thomas

Am 19.02.20 um 18:50 schrieb Krzysztof Kozlowski:
> The ioreadX() helpers have inconsistent interface.  On some architectures
> void *__iomem address argument is a pointer to const, on some not.
> 
> Implementations of ioreadX() do not modify the memory under the address
> so they can be converted to a "const" version for const-safety and
> consistency among architectures.
> 
> Signed-off-by: Krzysztof Kozlowski <krzk-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
> Reviewed-by: Thomas Zimmermann <tzimmermann-l3A5Bk7waGM@public.gmane.org>
> 
> ---
> 
> Changes since v1:
> 1. Add Thomas' review.
> ---
>  drivers/gpu/drm/mgag200/mgag200_drv.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/mgag200/mgag200_drv.h b/drivers/gpu/drm/mgag200/mgag200_drv.h
> index aa32aad222c2..6512b3af4fb7 100644
> --- a/drivers/gpu/drm/mgag200/mgag200_drv.h
> +++ b/drivers/gpu/drm/mgag200/mgag200_drv.h
> @@ -34,9 +34,9 @@
>  
>  #define MGAG200FB_CONN_LIMIT 1
>  
> -#define RREG8(reg) ioread8(((void __iomem *)mdev->rmmio) + (reg))
> +#define RREG8(reg) ioread8(((const void __iomem *)mdev->rmmio) + (reg))
>  #define WREG8(reg, v) iowrite8(v, ((void __iomem *)mdev->rmmio) + (reg))
> -#define RREG32(reg) ioread32(((void __iomem *)mdev->rmmio) + (reg))
> +#define RREG32(reg) ioread32(((const void __iomem *)mdev->rmmio) + (reg))
>  #define WREG32(reg, v) iowrite32(v, ((void __iomem *)mdev->rmmio) + (reg))
>  
>  #define ATTR_INDEX 0x1fc0
> 

-- 
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 182 bytes --]

_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
https://lists.freedesktop.org/mailman/listinfo/nouveau

  parent reply	other threads:[~2020-03-12 10:49 UTC|newest]

Thread overview: 148+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-19 17:49 [RESEND PATCH v2 0/9] iomap: Constify ioreadX() iomem argument Krzysztof Kozlowski
2020-02-19 17:49 ` Krzysztof Kozlowski
2020-02-19 17:49 ` Krzysztof Kozlowski
2020-02-19 17:49 ` Krzysztof Kozlowski
2020-02-19 17:49 ` Krzysztof Kozlowski
2020-02-19 17:49 ` [RESEND PATCH v2 1/9] iomap: Constify ioreadX() iomem argument (as in generic implementation) Krzysztof Kozlowski
2020-02-19 17:49   ` Krzysztof Kozlowski
2020-02-19 17:49   ` Krzysztof Kozlowski
2020-02-19 17:49   ` Krzysztof Kozlowski
     [not found]   ` <20200219175007.13627-2-krzk-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2020-03-12 10:55     ` Michael Ellerman
2020-03-12 10:55   ` Michael Ellerman
2020-03-12 10:55   ` Michael Ellerman
2020-03-12 10:55   ` Michael Ellerman
2020-03-12 10:55     ` Michael Ellerman
2020-03-12 10:55     ` Michael Ellerman
2020-03-12 10:55     ` Michael Ellerman
2020-03-12 10:55     ` Michael Ellerman
2020-03-12 10:55     ` Michael Ellerman
2020-03-14 11:02   ` Krzysztof Kozlowski
2020-03-14 11:02     ` Krzysztof Kozlowski
2020-03-14 11:02     ` Krzysztof Kozlowski
2020-03-14 11:02     ` Krzysztof Kozlowski
2020-03-14 11:02     ` Krzysztof Kozlowski
2020-03-14 11:02     ` Krzysztof Kozlowski
2020-02-19 17:49 ` Krzysztof Kozlowski
2020-02-19 17:49 ` Krzysztof Kozlowski
2020-02-19 17:49 ` Krzysztof Kozlowski
2020-02-19 17:50 ` [RESEND PATCH v2 2/9] rtl818x: " Krzysztof Kozlowski
2020-02-19 17:50 ` Krzysztof Kozlowski
2020-02-19 17:50   ` Krzysztof Kozlowski
2020-02-19 17:50   ` Krzysztof Kozlowski
2020-02-19 17:50   ` Krzysztof Kozlowski
2020-02-19 17:50 ` Krzysztof Kozlowski
2020-02-19 17:50 ` Krzysztof Kozlowski
2020-02-19 17:50 ` [RESEND PATCH v2 3/9] ntb: intel: " Krzysztof Kozlowski
2020-02-19 17:50 ` Krzysztof Kozlowski
2020-02-19 17:50   ` Krzysztof Kozlowski
2020-02-19 17:50   ` Krzysztof Kozlowski
2020-02-19 17:50   ` Krzysztof Kozlowski
2020-02-19 17:50   ` Krzysztof Kozlowski
2020-02-19 17:50 ` Krzysztof Kozlowski
2020-02-19 17:50 ` [RESEND PATCH v2 4/9] virtio: pci: " Krzysztof Kozlowski
2020-02-19 17:50   ` Krzysztof Kozlowski
2020-02-19 17:50   ` Krzysztof Kozlowski
2020-02-19 17:50   ` Krzysztof Kozlowski
2020-02-19 17:50 ` Krzysztof Kozlowski
2020-02-19 17:50 ` Krzysztof Kozlowski
2020-02-19 17:50 ` Krzysztof Kozlowski
2020-02-19 17:50 ` [RESEND PATCH v2 5/9] arc: " Krzysztof Kozlowski
2020-02-19 17:50 ` Krzysztof Kozlowski
2020-02-19 17:50 ` Krzysztof Kozlowski
2020-02-19 17:50   ` Krzysztof Kozlowski
2020-02-19 17:50   ` Krzysztof Kozlowski
2020-02-19 17:50   ` Krzysztof Kozlowski
2020-02-19 17:50 ` Krzysztof Kozlowski
2020-02-19 17:50 ` [RESEND PATCH v2 6/9] drm/mgag200: " Krzysztof Kozlowski
2020-02-19 17:50 ` Krzysztof Kozlowski
2020-02-19 17:50 ` Krzysztof Kozlowski
2020-02-19 17:50 ` Krzysztof Kozlowski
2020-02-19 17:50   ` Krzysztof Kozlowski
2020-02-19 17:50   ` Krzysztof Kozlowski
2020-02-19 17:50   ` Krzysztof Kozlowski
2020-03-12 10:49   ` [RESEND PATCH v2 6/9] drm/mgag200: Constify ioreadX() iomem argument (as in generic implementati Thomas Zimmermann
2020-03-12 10:49     ` [RESEND PATCH v2 6/9] drm/mgag200: Constify ioreadX() iomem argument (as in generic implementation) Thomas Zimmermann
2020-03-12 10:49     ` Thomas Zimmermann
2020-03-12 10:49     ` Thomas Zimmermann
2020-03-12 10:49     ` Thomas Zimmermann
2020-03-14 10:59     ` [RESEND PATCH v2 6/9] drm/mgag200: Constify ioreadX() iomem argument (as in generic implementati Krzysztof Kozlowski
2020-03-14 10:59       ` [RESEND PATCH v2 6/9] drm/mgag200: Constify ioreadX() iomem argument (as in generic implementation) Krzysztof Kozlowski
2020-03-14 10:59       ` Krzysztof Kozlowski
2020-03-14 10:59       ` Krzysztof Kozlowski
2020-03-14 10:59       ` Krzysztof Kozlowski
2020-03-14 10:59       ` Krzysztof Kozlowski
2020-03-24  8:39       ` [RESEND PATCH v2 6/9] drm/mgag200: Constify ioreadX() iomem argument (as in generic implementati Thomas Zimmermann
2020-03-24  8:39         ` [RESEND PATCH v2 6/9] drm/mgag200: Constify ioreadX() iomem argument (as in generic implementation) Thomas Zimmermann
2020-03-24  8:39         ` Thomas Zimmermann
2020-03-24  8:39         ` Thomas Zimmermann
2020-03-24  8:39         ` Thomas Zimmermann
2020-03-24  8:39         ` Thomas Zimmermann
     [not found]   ` <20200219175007.13627-7-krzk-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2020-03-12 10:49     ` Thomas Zimmermann [this message]
2020-03-12 10:49   ` Thomas Zimmermann
2020-03-12 10:49   ` Thomas Zimmermann
2020-02-19 17:50 ` [RESEND PATCH v2 7/9] drm/nouveau: " Krzysztof Kozlowski
2020-02-19 17:50 ` Krzysztof Kozlowski
2020-02-19 17:50   ` Krzysztof Kozlowski
2020-02-19 17:50   ` Krzysztof Kozlowski
2020-02-19 17:50   ` Krzysztof Kozlowski
2020-02-19 17:50   ` Krzysztof Kozlowski
2020-02-19 17:50 ` Krzysztof Kozlowski
2020-02-19 17:50 ` [RESEND PATCH v2 8/9] media: fsl-viu: " Krzysztof Kozlowski
2020-02-19 17:50 ` [RESEND PATCH v2 8/9] media: fsl-viu: Constify ioreadX() iomem argument (as in generic implementatio Krzysztof Kozlowski
2020-02-19 17:50   ` [RESEND PATCH v2 8/9] media: fsl-viu: Constify ioreadX() iomem argument (as in generic implementation) Krzysztof Kozlowski
2020-02-19 17:50   ` Krzysztof Kozlowski
2020-02-19 17:50   ` Krzysztof Kozlowski
2020-03-12  8:01   ` [RESEND PATCH v2 8/9] media: fsl-viu: Constify ioreadX() iomem argument (as in generic implement Hans Verkuil
2020-03-12  8:01     ` [RESEND PATCH v2 8/9] media: fsl-viu: Constify ioreadX() iomem argument (as in generic implementation) Hans Verkuil
2020-03-12  8:01     ` Hans Verkuil
2020-03-12  8:01     ` Hans Verkuil
2020-03-12  8:01     ` Hans Verkuil
2020-03-12  8:01   ` Hans Verkuil
     [not found]   ` <20200219175007.13627-9-krzk-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2020-03-12  8:01     ` Hans Verkuil
2020-02-19 17:50 ` Krzysztof Kozlowski
2020-02-19 17:50 ` Krzysztof Kozlowski
2020-02-19 17:50 ` [RESEND PATCH v2 9/9] ath5k: " Krzysztof Kozlowski
2020-02-19 17:50 ` Krzysztof Kozlowski
2020-02-19 17:50   ` Krzysztof Kozlowski
2020-02-19 17:50   ` Krzysztof Kozlowski
2020-02-19 17:50   ` Krzysztof Kozlowski
2020-02-20  9:48   ` Jiri Slaby
2020-02-20  9:48   ` Jiri Slaby
2020-02-20  9:48     ` Jiri Slaby
2020-02-20  9:48     ` Jiri Slaby
2020-02-20  9:48     ` Jiri Slaby
2020-02-20  9:48     ` Jiri Slaby
2020-02-24 12:47     ` Krzysztof Kozlowski
2020-02-24 12:47       ` Krzysztof Kozlowski
2020-02-24 12:47       ` Krzysztof Kozlowski
2020-02-24 12:47       ` Krzysztof Kozlowski
2020-02-24 12:47       ` Krzysztof Kozlowski
2020-02-24 12:47       ` Krzysztof Kozlowski
2020-02-24 12:54       ` Geert Uytterhoeven
2020-02-24 12:54         ` Geert Uytterhoeven
2020-02-24 12:54         ` Geert Uytterhoeven
2020-02-24 12:54         ` Geert Uytterhoeven
2020-02-24 12:54         ` Geert Uytterhoeven
2020-02-24 14:00         ` David Laight
2020-02-24 14:00           ` David Laight
2020-02-24 14:00           ` David Laight
2020-02-24 14:00           ` David Laight
2020-02-24 14:00           ` David Laight
2020-02-24 14:44         ` Krzysztof Kozlowski
2020-02-24 14:44           ` Krzysztof Kozlowski
2020-02-24 14:44           ` Krzysztof Kozlowski
2020-02-24 14:44           ` Krzysztof Kozlowski
2020-02-24 14:44           ` Krzysztof Kozlowski
2020-02-20  9:48   ` Jiri Slaby
     [not found]   ` <20200219175007.13627-10-krzk-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2020-02-20  9:48     ` Jiri Slaby
2020-02-19 17:50 ` Krzysztof Kozlowski
     [not found] ` <20200219175007.13627-1-krzk-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2020-02-19 17:49   ` [RESEND PATCH v2 1/9] iomap: " Krzysztof Kozlowski
2020-02-19 17:50   ` [RESEND PATCH v2 2/9] rtl818x: " Krzysztof Kozlowski
2020-02-19 17:50   ` [RESEND PATCH v2 3/9] ntb: intel: " Krzysztof Kozlowski
2020-02-19 17:50   ` [RESEND PATCH v2 4/9] virtio: pci: " Krzysztof Kozlowski
2020-02-19 17:50   ` [RESEND PATCH v2 5/9] arc: " Krzysztof Kozlowski
2020-02-19 17:50   ` [RESEND PATCH v2 6/9] drm/mgag200: " Krzysztof Kozlowski
2020-02-19 17:50   ` [RESEND PATCH v2 7/9] drm/nouveau: " Krzysztof Kozlowski
2020-02-19 17:50   ` [RESEND PATCH v2 8/9] media: fsl-viu: " Krzysztof Kozlowski
2020-02-19 17:50   ` [RESEND PATCH v2 9/9] ath5k: " Krzysztof Kozlowski
2020-02-19 17:50 ` Krzysztof Kozlowski

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='90baef2d-25fe-fac4-6a7e-b103b4b6721e__21384.6914399014$1585552960$gmane$org@suse.de' \
    --to=tzimmermann-l3a5bk7wagm@public.gmane.org \
    --cc=James.Bottomley-d9PhHud1JfjCXq6kfMZ53/egYHeGw8Jk@public.gmane.org \
    --cc=abrodkin-HKixBCOQz3hWk0Htik3J/w@public.gmane.org \
    --cc=airlied-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=airlied-cv59FeDIM0c@public.gmane.org \
    --cc=benh-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org \
    --cc=bskeggs-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=dalias-8zAoT0mYgF4@public.gmane.org \
    --cc=daniel-/w4YWyX8dFk@public.gmane.org \
    --cc=davem@davemloft \
    --cc=deller-Mmb7MZpHnFY@public.gmane.org \
    --cc=ink-biIs/Y0ymYJMZLIVYojuPNP0rXTJTi09@public.gmane.org \
    --cc=jirislaby-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=krzk-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=kvalo-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org \
    --cc=mattst88-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=mcgrof-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=mchehab-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=mickflemm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=mpe-Gsx/Oe8HsFggBc27wqDAHg@public.gmane.org \
    --cc=paulus-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org \
    --cc=rth-hL46jP5Bxq7R7s880joybQ@public.gmane.org \
    --cc=vgupta-HKixBCOQz3hWk0Htik3J/w@public.gmane.org \
    --cc=ysato-Rn4VEauK+AKRv+LV9MX5uooqe+aC9MnS@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.