From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Boyd Subject: [PATCH v3 0/4] Add __ioread32_copy() and use it Date: Fri, 23 Oct 2015 13:01:48 -0700 Message-ID: <1445630512-10888-1-git-send-email-sboyd@codeaurora.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:48563 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750922AbbJWUB4 (ORCPT ); Fri, 23 Oct 2015 16:01:56 -0400 Sender: linux-arm-msm-owner@vger.kernel.org List-Id: linux-arm-msm@vger.kernel.org To: Andrew Morton Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Andy Gross , Bjorn Andersson , Hauke Mehrtens , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , Paul Walmsley , linux-mips@linux-mips.org, David Howells , linux-soc@vger.kernel.org The SMD driver is reading and writing chunks of data to iomem, and there's an __iowrite32_copy() function for the writing part, but no __ioread32_copy() function for the reading part. This series adds __ioread32_copy() and uses it in two places. This is a respin with some small fixes found with soaking in -next. Andrew, the patches should apply cleanly to linux-next, so I hope you can pick them up directly now, instead of the previous plan where they would go through Andy's tree. Changes from v2: * Make bcm patch actually compile * Add new patch for frv to avoid warnings Cc: Hauke Mehrtens Cc: Rafa=C5=82 Mi=C5=82ecki Cc: Paul Walmsley Cc: linux-mips@linux-mips.org Cc: David Howells Cc: linux-soc@vger.kernel.org Stephen Boyd (4): frv: io: Accept const void pointers for read{b,w,l}() lib: iomap_copy: Add __ioread32_copy() soc: qcom: smd: Use __ioread32_copy() instead of open-coding it FIRMWARE: bcm47xx_nvram: Use __ioread32_copy() instead of open-coding arch/frv/include/asm/io.h | 17 ++++++++++++++--- drivers/firmware/broadcom/bcm47xx_nvram.c | 11 +++-------- drivers/soc/qcom/smd.c | 13 ++++--------- include/linux/io.h | 1 + lib/iomap_copy.c | 21 +++++++++++++++++++++ 5 files changed, 43 insertions(+), 20 deletions(-) --=20 The Qualcomm Innovation Center, Inc. is a member of the Code Aurora For= um, a Linux Foundation Collaborative Project