Re: [PATCH] dw_mmc: Add Synopsys DesignWare mmc host driver.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Will Newton
Date: Sunday, December 12, 2010 - 7:31 am

On Sun, Dec 12, 2010 at 2:11 PM, Russell King - ARM Linux
<linux@arm.linux.org.uk> wrote:

Wouldn't it be simpler to have a fallback readq/writeq implementation
like the below?

static inline u64 __raw_readq(const volatile void __iomem *addr)
{
        return *(const volatile u64 __force *) addr;
}

It won't break any existing hardware (if your SoC bus does not support
64bit accesses you are unlikely to have peripherals that require it)
and would avoid a number of #ifdefs and/or Kconfig dependencies.

Currently asm-generic/io.h defines the above but it is guarded by
CONFIG_64BIT, which I am not sure is 100% correct in all situations
either.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] dw_mmc: Add Synopsys DesignWare mmc host driver., Russell King - ARM Linux, (Sun Dec 12, 1:41 am)
Re: [PATCH] dw_mmc: Add Synopsys DesignWare mmc host driver., Russell King - ARM Linux, (Sun Dec 12, 4:15 am)
Re: [PATCH] dw_mmc: Add Synopsys DesignWare mmc host driver., Russell King - ARM Linux, (Sun Dec 12, 7:11 am)
Re: [PATCH] dw_mmc: Add Synopsys DesignWare mmc host driver., Will Newton, (Sun Dec 12, 7:31 am)
Re: [PATCH] dw_mmc: Add Synopsys DesignWare mmc host driver., Russell King - ARM Linux, (Sun Dec 12, 7:47 am)