Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1225571

Re: [PATCH 0/3] Add __ioread32_copy() and use it

Path csiph.com!goblin3!goblin2!goblin.stu.neva.ru!gothmog.csi.it!bofh.it!news.nic.it!robomod
From Andrew Morton <akpm@linux-foundation.org>
Newsgroups linux.kernel
Subject Re: [PATCH 0/3] Add __ioread32_copy() and use it
Date Wed, 16 Sep 2015 01:00:02 +0200
Message-ID <q97mG-2Ru-13@gated-at.bofh.it> (permalink)
References <q94oN-6wV-1@gated-at.bofh.it>
X-Original-To Stephen Boyd <sboyd@codeaurora.org>
X-Mailer Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu)
MIME-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 35
Organization linux.* mail to news gateway
X-Original-Cc Andy Gross <agross@codeaurora.org>, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-soc@vger.kernel.org, linux-mips@linux-mips.org, Hauke Mehrtens <hauke@hauke-m.de>, Paul Walmsley <paul@pwsan.com>, Rafał Miłecki <zajec5@gmail.com>, Bjorn Andersson <bjorn.andersson@sonymobile.com>, Andi Kleen <andi@firstfloor.org>
X-Original-Date Tue, 15 Sep 2015 15:58:15 -0700
X-Original-Message-ID <20150915155815.5a41a8dc537610ab44d8d3dc@linux-foundation.org>
X-Original-References <1442346089-32077-1-git-send-email-sboyd@codeaurora.org>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1225571

Show key headers only | View raw


On Tue, 15 Sep 2015 12:41:26 -0700 Stephen Boyd <sboyd@codeaurora.org> wrote:

> 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. Andrew is on Cc in
> case this should go through the -mm tree. Otherwise the target
> of this patch series is SMD, so I've sent it to Andy.

"soc: qcom: smd: Use __ioread32_copy() instead of open-coding it" no
longer applies, because smd_copy_from_fifo() has switched to
readl_relaxed().

Let's use the __weak macro rather than open-coding it (and convert
__iowrite32_copy() while we're in there).

It's unclear why __iowrite32_copy() is a weak function - nothing
overrides it.  Perhaps we should just take that away rather than
copying it into __ioread32_copy().

__iowrite32_copy() is marked __visible.  I don't actually know what
that does and Andi's d47d5c8194579bc changelog (which sucks the big
one) didn't explain it.  Apparently it has something to do with being
implemented in assembly, but zillions of functions are implemented in
assembly, so why are only two functions marked this way?  Anyway,
__ioread32_copy() is implemented in C so I guess __visible isn't needed
there.



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/3] Add __ioread32_copy() and use it Stephen Boyd <sboyd@codeaurora.org> - 2015-09-15 21:50 +0200
  [PATCH 1/3] lib: iomap_copy: Add __ioread32_copy() Stephen Boyd <sboyd@codeaurora.org> - 2015-09-15 21:50 +0200
  [PATCH 3/3] FIRMWARE: bcm47xx_nvram: Use __ioread32_copy() instead of open-coding Stephen Boyd <sboyd@codeaurora.org> - 2015-09-15 21:50 +0200
  [PATCH 2/3] soc: qcom: smd: Use __ioread32_copy() instead of open-coding it Stephen Boyd <sboyd@codeaurora.org> - 2015-09-15 21:50 +0200
  Re: [PATCH 0/3] Add __ioread32_copy() and use it Andrew Morton <akpm@linux-foundation.org> - 2015-09-16 01:00 +0200
    Re: [PATCH 0/3] Add __ioread32_copy() and use it Stephen Boyd <sboyd@codeaurora.org> - 2015-09-16 03:00 +0200
      Re: [PATCH 0/3] Add __ioread32_copy() and use it Andrew Morton <akpm@linux-foundation.org> - 2015-09-17 00:10 +0200
    Re: [PATCH 0/3] Add __ioread32_copy() and use it Andi Kleen <andi@firstfloor.org> - 2015-09-16 04:40 +0200
      Re: [PATCH 0/3] Add __ioread32_copy() and use it Andrew Morton <akpm@linux-foundation.org> - 2015-09-16 04:50 +0200
        Re: [PATCH 0/3] Add __ioread32_copy() and use it Andi Kleen <andi@firstfloor.org> - 2015-09-16 05:00 +0200
          Re: [PATCH 0/3] Add __ioread32_copy() and use it Andrew Morton <akpm@linux-foundation.org> - 2015-09-18 21:20 +0200
            Re: [PATCH 0/3] Add __ioread32_copy() and use it Andi Kleen <andi@firstfloor.org> - 2015-09-19 22:20 +0200

csiph-web