From patchwork Fri Jun 10 00:22:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 69738 Delivered-To: patch@linaro.org Received: by 10.140.106.246 with SMTP id e109csp37933qgf; Thu, 9 Jun 2016 17:23:10 -0700 (PDT) X-Received: by 10.98.92.133 with SMTP id q127mr7459243pfb.103.1465518190028; Thu, 09 Jun 2016 17:23:10 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p186si10125693pfb.113.2016.06.09.17.23.09; Thu, 09 Jun 2016 17:23:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752562AbcFJAXG (ORCPT + 30 others); Thu, 9 Jun 2016 20:23:06 -0400 Received: from mail-pf0-f179.google.com ([209.85.192.179]:33389 "EHLO mail-pf0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751381AbcFJAXC (ORCPT ); Thu, 9 Jun 2016 20:23:02 -0400 Received: by mail-pf0-f179.google.com with SMTP id y124so17772858pfy.0 for ; Thu, 09 Jun 2016 17:23:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0C/dpXZuHSNL85Fy+C/QwsELU/bAkdNPYwaN2w7rI9c=; b=UZhYpLYahU6vkWoOWU8MsMrO1yGpu+h21aA6igLOYDgiIURsLqa9/CIOy8JoV7DQps Y5cPBMgYHHPxHQ6LSYrmM/evJGMA1Jk7N6Oxlk1kmRqByvX/4OsGIS2tyqLv8I68tGPF FSI/bkYoQnrYediMOgSwyw/LiVrkkh1vxpCcs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=0C/dpXZuHSNL85Fy+C/QwsELU/bAkdNPYwaN2w7rI9c=; b=cHcyZXs3lOoPFTXXBDDQkQ68wXBSqKe6mGoi9ZwX7UAqIyR0FhyxhpjB5aKWXcjred Hke7JzCBw/ln1vUscKUwBTxg1Ikr2mokPacjzeaugwBSREEObv7MD/zB/LRKzozhcFx8 dCQPNOHxKDn7bOrN0zlLxymuWRXssSOpQ+pekfMWChGwJPQmiKixYzP3tTE9JXQ2FT5k LR9Mqn45Un74+2EcfHV8RC9KfBkGRQ51SbBpYkJbNcX3zQ4R73TyvZi64RC4s31AdOQD kEr8l0VUm6m6mB64Sn6LTcxI1G+bBmkbiwCTjpoqVA1MG8kqZPB6BNIIm4AvOYc1tB3V fgxg== X-Gm-Message-State: ALyK8tITcj1FajeXlrQn0Z7UwXJuA0icdYood2mG1pbNq+0CuiXu3Xkm3w0DdCOqn2AdILkv X-Received: by 10.98.102.205 with SMTP id s74mr7313460pfj.54.1465518181291; Thu, 09 Jun 2016 17:23:01 -0700 (PDT) Received: from localhost.localdomain (ip68-111-223-48.sd.sd.cox.net. [68.111.223.48]) by smtp.gmail.com with ESMTPSA id v1sm12642776pfa.93.2016.06.09.17.23.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Jun 2016 17:23:00 -0700 (PDT) From: Bjorn Andersson To: Andy Gross Cc: linux-arm-msm@vger.kernel.org (open list:ARM/QUALCOMM SUPPORT), linux-soc@vger.kernel.org (open list:ARM/QUALCOMM SUPPORT), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 2/2] soc: qcom: smp2p: Drop io-accessors Date: Thu, 9 Jun 2016 17:22:57 -0700 Message-Id: <1465518177-14594-2-git-send-email-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1465518177-14594-1-git-send-email-bjorn.andersson@linaro.org> References: <1465518177-14594-1-git-send-email-bjorn.andersson@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SMEM is now mapped write-combine and we can use memcpy to access the name of the entires. Signed-off-by: Bjorn Andersson --- drivers/soc/qcom/smp2p.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.5.0 diff --git a/drivers/soc/qcom/smp2p.c b/drivers/soc/qcom/smp2p.c index 9c2788b8f2c3..f51fb2ea7200 100644 --- a/drivers/soc/qcom/smp2p.c +++ b/drivers/soc/qcom/smp2p.c @@ -196,7 +196,7 @@ static irqreturn_t qcom_smp2p_intr(int irq, void *data) /* Match newly created entries */ for (i = smp2p->valid_entries; i < in->valid_entries; i++) { list_for_each_entry(entry, &smp2p->inbound, node) { - memcpy_fromio(buf, in->entries[i].name, sizeof(buf)); + memcpy(buf, in->entries[i].name, sizeof(buf)); if (!strcmp(buf, entry->name)) { entry->value = &in->entries[i].value; break; @@ -343,7 +343,7 @@ static int qcom_smp2p_outbound_entry(struct qcom_smp2p *smp2p, /* Allocate an entry from the smem item */ strlcpy(buf, entry->name, SMP2P_MAX_ENTRY_NAME); - memcpy_toio(out->entries[out->valid_entries].name, buf, SMP2P_MAX_ENTRY_NAME); + memcpy(out->entries[out->valid_entries].name, buf, SMP2P_MAX_ENTRY_NAME); /* Make the logical entry reference the physical value */ entry->value = &out->entries[out->valid_entries].value;