On Thu, Jun 15, 2017 at 1:19 AM, Yong Zhi <yong....@intel.com> wrote:

Commit message.

> Signed-off-by: Yong Zhi <yong....@intel.com>

> +static void writes(void *mem, ssize_t len, void __iomem *reg)
> +{
> +       while (len >= 4) {
> +               writel(*(u32 *)mem, reg);
> +               mem += 4;
> +               reg += 4;
> +               len -= 4;
> +       }
> +}

Again, I just looked into patches and first what I see is reinventing the wheel.

memcpy_toio()

-- 
With Best Regards,
Andy Shevchenko

Reply via email to