* Re: [PATCH v2 1/9] iomap: Constify ioreadX() iomem argument (as in generic implementation) [not found] ` <20200108200528.4614-2-krzk@kernel.org> @ 2020-01-08 20:53 ` Arnd Bergmann 2020-01-09 12:00 ` Geert Uytterhoeven 1 sibling, 0 replies; 9+ messages in thread From: Arnd Bergmann @ 2020-01-08 20:53 UTC (permalink / raw) To: Krzysztof Kozlowski Cc: Rich Felker, Jiri Slaby, Geert Uytterhoeven, Michael S. Tsirkin, David Airlie, Jason Wang, dri-devel, virtualization, James E.J. Bottomley, Networking, Paul Mackerras, linux-arch, Dave Jiang, Yoshinori Sato, Michael Ellerman, Helge Deller, Linux-sh list, Alexey Brodkin, Ben Skeggs, ML nouveau, Dave Airlie, Matt Turner, SYNOPSYS On Wed, Jan 8, 2020 at 9:05 PM Krzysztof Kozlowski <krzk@kernel.org> wrote: > > The ioreadX() and ioreadX_rep() 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. > > Suggested-by: Geert Uytterhoeven <geert@linux-m68k.org> > Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> > Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Thanks for getting this done! Reviewed-by: Arnd Bergmann <arnd@arndb.de> > Changes since v1: > 1. Constify also ioreadX_rep() and mmio_insX(), > 2. Squash lib+alpha+powerpc+parisc+sh into one patch for bisectability, The alpha and parisc versions should be independent, I was thinking you leave them as separate patches, but this work for me too. I have no real opinion on the other 8 patches, I would have left them out completely, but they don't hurt either. Arnd ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 1/9] iomap: Constify ioreadX() iomem argument (as in generic implementation) [not found] ` <20200108200528.4614-2-krzk@kernel.org> 2020-01-08 20:53 ` [PATCH v2 1/9] iomap: Constify ioreadX() iomem argument (as in generic implementation) Arnd Bergmann @ 2020-01-09 12:00 ` Geert Uytterhoeven 1 sibling, 0 replies; 9+ messages in thread From: Geert Uytterhoeven @ 2020-01-09 12:00 UTC (permalink / raw) To: Krzysztof Kozlowski Cc: Rich Felker, Jiri Slaby, Geert Uytterhoeven, Michael S. Tsirkin, David Airlie, Jason Wang, DRI Development, virtualization, James E.J. Bottomley, netdev, Paul Mackerras, Linux-Arch, Dave Jiang, Yoshinori Sato, Michael Ellerman, Helge Deller, Linux-sh list, Alexey Brodkin, Ben Skeggs, nouveau, Dave Airlie, Matt Turner, arcml On Wed, Jan 8, 2020 at 9:05 PM Krzysztof Kozlowski <krzk@kernel.org> wrote: > The ioreadX() and ioreadX_rep() 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. > > Suggested-by: Geert Uytterhoeven <geert@linux-m68k.org> > Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> > Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <20200108200528.4614-7-krzk@kernel.org>]
* Re: [PATCH v2 6/9] drm/mgag200: Constify ioreadX() iomem argument (as in generic implementation) [not found] ` <20200108200528.4614-7-krzk@kernel.org> @ 2020-01-09 6:04 ` Thomas Zimmermann 0 siblings, 0 replies; 9+ messages in thread From: Thomas Zimmermann @ 2020-01-09 6:04 UTC (permalink / raw) To: Krzysztof Kozlowski, Richard Henderson, Ivan Kokshaysky, Matt Turner, Alexey Brodkin, Vineet Gupta, James E.J. Bottomley, Helge Deller, Benjamin Herrenschmidt, Paul Mackerras, Michael Ellerman, Yoshinori Sato, Rich Felker, Dave Airlie, David Airlie, Daniel Vetter, Ben Skeggs, Mauro Carvalho Chehab, Jiri Slaby, Nick [-- Attachment #1.1: Type: text/plain, Size: 1609 bytes --] Hi Am 08.01.20 um 21:05 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@kernel.org> Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de> > --- > 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 #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 488 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <20200108200528.4614-6-krzk@kernel.org>]
* RE: [PATCH v2 5/9] arc: Constify ioreadX() iomem argument (as in generic implementation) [not found] ` <20200108200528.4614-6-krzk@kernel.org> @ 2020-01-09 6:59 ` Alexey Brodkin 0 siblings, 0 replies; 9+ messages in thread From: Alexey Brodkin @ 2020-01-09 6:59 UTC (permalink / raw) To: Krzysztof Kozlowski Cc: Rich Felker, Jiri Slaby, Geert Uytterhoeven, Michael S. Tsirkin, David Airlie, Benjamin Herrenschmidt, dri-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org, James E.J. Bottomley, Paul Mackerras, linux-arch@vger.kernel.org, Dave Jiang, Yoshinori Sato, Michael Ellerman, Helge Deller, linux-sh@vger.kernel.org, Nick Kossifidis, nouveau@lists.freedesktop.org, Dave Airlie Hi Krzysztof, > 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. Thanks for this clean-up. Looks good to me, so ... Acked-by: Alexey Brodkin <abrodkin@synopsys.com> ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <20200108200528.4614-10-krzk@kernel.org>]
* Re: [PATCH v2 9/9] net: wireless: ath5k: Constify ioreadX() iomem argument (as in generic implementation) [not found] ` <20200108200528.4614-10-krzk@kernel.org> @ 2020-01-10 13:33 ` Kalle Valo 0 siblings, 0 replies; 9+ messages in thread From: Kalle Valo @ 2020-01-10 13:33 UTC (permalink / raw) To: Krzysztof Kozlowski Cc: Rich Felker, Jiri Slaby, Geert Uytterhoeven, Michael S. Tsirkin, David Airlie, Jason Wang, dri-devel, virtualization, James E.J. Bottomley, netdev, Paul Mackerras, linux-arch, Dave Jiang, Yoshinori Sato, Helge Deller, linux-sh, Alexey Brodkin, Ben Skeggs, nouveau, Dave Airlie, Matt Turner, linux-snps-arc, Nick Kossifidis, Allen Hubbe, Arnd Bergmann Krzysztof Kozlowski <krzk@kernel.org> writes: > 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@kernel.org> > --- > drivers/net/wireless/ath/ath5k/ahb.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) No need to have "net: wireless: " in the title, otherwise looks good. Acked-by: Kalle Valo <kvalo@codeaurora.org> -- https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <20200108200528.4614-3-krzk@kernel.org>]
* Re: [PATCH v2 2/9] net: wireless: rtl818x: Constify ioreadX() iomem argument (as in generic implementation) [not found] ` <20200108200528.4614-3-krzk@kernel.org> @ 2020-01-10 13:32 ` Kalle Valo 2020-01-26 15:11 ` Kalle Valo ` (2 subsequent siblings) 3 siblings, 0 replies; 9+ messages in thread From: Kalle Valo @ 2020-01-10 13:32 UTC (permalink / raw) To: Krzysztof Kozlowski Cc: Rich Felker, Jiri Slaby, Geert Uytterhoeven, Michael S. Tsirkin, David Airlie, Jason Wang, dri-devel, virtualization, James E.J. Bottomley, netdev, Paul Mackerras, linux-arch, Dave Jiang, Yoshinori Sato, Helge Deller, linux-sh, Alexey Brodkin, Ben Skeggs, nouveau, Dave Airlie, Matt Turner, linux-snps-arc, Nick Kossifidis, Allen Hubbe, Arnd Bergmann Krzysztof Kozlowski <krzk@kernel.org> writes: > 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@kernel.org> > Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> > > --- > > Changes since v1: > 1. Add Geert's review. > --- > drivers/net/wireless/realtek/rtl818x/rtl8180/rtl8180.h | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) No need to have "net: wireless: " in the title, this is enough. rtl818x: Constify ioreadX() iomem argument (as in generic implementation) I assume someone else will take this so here's my ack: Acked-by: Kalle Valo <kvalo@codeaurora.org> -- https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 2/9] net: wireless: rtl818x: Constify ioreadX() iomem argument (as in generic implementation) [not found] ` <20200108200528.4614-3-krzk@kernel.org> 2020-01-10 13:32 ` [PATCH v2 2/9] net: wireless: rtl818x: " Kalle Valo @ 2020-01-26 15:11 ` Kalle Valo 2020-01-26 15:11 ` Kalle Valo 2020-01-26 15:11 ` Kalle Valo 3 siblings, 0 replies; 9+ messages in thread From: Kalle Valo @ 2020-01-26 15:11 UTC (permalink / raw) To: Krzysztof Kozlowski Cc: Richard Henderson, Ivan Kokshaysky, Matt Turner, Alexey Brodkin, Vineet Gupta, James E.J. Bottomley, Helge Deller, Benjamin Herrenschmidt, Paul Mackerras, Michael Ellerman, Yoshinori Sato, Rich Felker, Dave Airlie, David Airlie, Daniel Vetter, Ben Skeggs, Mauro Carvalho Chehab, Jiri Slaby, Nick Kossifidis, Luis Krzysztof Kozlowski <krzk@kernel.org> wrote: > 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@kernel.org> > Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> I assume this and patch 9 are going via some other tree so dropping them from my patchwork queue. -- https://patchwork.kernel.org/patch/11324461/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 2/9] net: wireless: rtl818x: Constify ioreadX() iomem argument (as in generic implementation) [not found] ` <20200108200528.4614-3-krzk@kernel.org> 2020-01-10 13:32 ` [PATCH v2 2/9] net: wireless: rtl818x: " Kalle Valo 2020-01-26 15:11 ` Kalle Valo @ 2020-01-26 15:11 ` Kalle Valo 2020-01-26 15:11 ` Kalle Valo 3 siblings, 0 replies; 9+ messages in thread From: Kalle Valo @ 2020-01-26 15:11 UTC (permalink / raw) To: Krzysztof Kozlowski Cc: Rich Felker, Jiri Slaby, Geert Uytterhoeven, Michael S. Tsirkin, David Airlie, Jason Wang, dri-devel, virtualization, James E.J. Bottomley, netdev, Paul Mackerras, linux-arch, Dave Jiang, Yoshinori Sato, Helge Deller, linux-sh, Alexey Brodkin, Krzysztof Kozlowski, Ben Skeggs, nouveau, Dave Airlie, Matt Turner, linux-snps-arc, Nick Kossifidis, Allen Hubbe <alle> Krzysztof Kozlowski <krzk@kernel.org> wrote: > 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@kernel.org> > Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> I assume this and patch 9 are going via some other tree so dropping them from my patchwork queue. -- https://patchwork.kernel.org/patch/11324461/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 2/9] net: wireless: rtl818x: Constify ioreadX() iomem argument (as in generic implementation) [not found] ` <20200108200528.4614-3-krzk@kernel.org> ` (2 preceding siblings ...) 2020-01-26 15:11 ` Kalle Valo @ 2020-01-26 15:11 ` Kalle Valo 3 siblings, 0 replies; 9+ messages in thread From: Kalle Valo @ 2020-01-26 15:11 UTC (permalink / raw) To: Krzysztof Kozlowski Cc: Rich Felker, Jiri Slaby, Geert Uytterhoeven, Michael S. Tsirkin, David Airlie, Benjamin Herrenschmidt, Jason Wang, dri-devel, virtualization, James E.J. Bottomley, netdev, Paul Mackerras, linux-arch, Dave Jiang, Yoshinori Sato, Michael Ellerman, Helge Deller, linux-sh, Alexey Brodkin, Krzysztof Kozlowski, Ben Skeggs, nouveau, Dave Airlie, Matt Turner, l Krzysztof Kozlowski <krzk@kernel.org> wrote: > 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@kernel.org> > Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> I assume this and patch 9 are going via some other tree so dropping them from my patchwork queue. -- https://patchwork.kernel.org/patch/11324461/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2020-01-26 15:11 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20200108200528.4614-1-krzk@kernel.org>
[not found] ` <20200108200528.4614-2-krzk@kernel.org>
2020-01-08 20:53 ` [PATCH v2 1/9] iomap: Constify ioreadX() iomem argument (as in generic implementation) Arnd Bergmann
2020-01-09 12:00 ` Geert Uytterhoeven
[not found] ` <20200108200528.4614-7-krzk@kernel.org>
2020-01-09 6:04 ` [PATCH v2 6/9] drm/mgag200: " Thomas Zimmermann
[not found] ` <20200108200528.4614-6-krzk@kernel.org>
2020-01-09 6:59 ` [PATCH v2 5/9] arc: " Alexey Brodkin
[not found] ` <20200108200528.4614-10-krzk@kernel.org>
2020-01-10 13:33 ` [PATCH v2 9/9] net: wireless: ath5k: " Kalle Valo
[not found] ` <20200108200528.4614-3-krzk@kernel.org>
2020-01-10 13:32 ` [PATCH v2 2/9] net: wireless: rtl818x: " Kalle Valo
2020-01-26 15:11 ` Kalle Valo
2020-01-26 15:11 ` Kalle Valo
2020-01-26 15:11 ` Kalle Valo
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).