[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170622164817.25515-7-logang@deltatee.com>
Date: Thu, 22 Jun 2017 10:48:16 -0600
From: Logan Gunthorpe <logang@...tatee.com>
To: linux-kernel@...r.kernel.org, linux-arch@...r.kernel.org,
linux-ntb@...glegroups.com, linux-alpha@...r.kernel.org,
linuxppc-dev@...ts.ozlabs.org, linux-crypto@...r.kernel.org,
dri-devel@...ts.freedesktop.org
Cc: Arnd Bergmann <arnd@...db.de>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Stephen Bates <sbates@...thlin.com>,
Logan Gunthorpe <logang@...tatee.com>,
Jyri Sarha <jsarha@...com>,
Tomi Valkeinen <tomi.valkeinen@...com>,
David Airlie <airlied@...ux.ie>
Subject: [PATCH 6/7] drm/tilcdc: clean up ifdef hacks around iowrite64
Now that we can expect iowrite64 to always exist the hack is no longer
necessary so we just call iowrite64 directly.
Signed-off-by: Logan Gunthorpe <logang@...tatee.com>
Cc: Jyri Sarha <jsarha@...com>
Cc: Tomi Valkeinen <tomi.valkeinen@...com>
Cc: David Airlie <airlied@...ux.ie>
---
drivers/gpu/drm/tilcdc/tilcdc_regs.h | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_regs.h b/drivers/gpu/drm/tilcdc/tilcdc_regs.h
index e9ce725698a9..0b901405f30a 100644
--- a/drivers/gpu/drm/tilcdc/tilcdc_regs.h
+++ b/drivers/gpu/drm/tilcdc/tilcdc_regs.h
@@ -133,13 +133,7 @@ static inline void tilcdc_write64(struct drm_device *dev, u32 reg, u64 data)
struct tilcdc_drm_private *priv = dev->dev_private;
void __iomem *addr = priv->mmio + reg;
-#ifdef iowrite64
iowrite64(data, addr);
-#else
- __iowmb();
- /* This compiles to strd (=64-bit write) on ARM7 */
- *(u64 __force *)addr = __cpu_to_le64(data);
-#endif
}
static inline u32 tilcdc_read(struct drm_device *dev, u32 reg)
--
2.11.0
Powered by blists - more mailing lists