From patchwork Thu Jun 12 09:42:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 4340151 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D3BD3BEEAA for ; Thu, 12 Jun 2014 09:40:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 15509202FF for ; Thu, 12 Jun 2014 09:40:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0AB542025B for ; Thu, 12 Jun 2014 09:40:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932906AbaFLJkM (ORCPT ); Thu, 12 Jun 2014 05:40:12 -0400 Received: from mail-pb0-f49.google.com ([209.85.160.49]:52912 "EHLO mail-pb0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932855AbaFLJkL (ORCPT ); Thu, 12 Jun 2014 05:40:11 -0400 Received: by mail-pb0-f49.google.com with SMTP id jt11so814698pbb.36 for ; Thu, 12 Jun 2014 02:40:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=IsCGmnBMAqeIu19+AGfJpmnS/TJzULMSVt9Iu8q5gv0=; b=1Izu6IBBKsx4Q4xDCRDuLSFETsVQpufCF7Q+1GQ9VnmfbTUxorSRIfPbW9zKhOeGAH jD0N1ykLxifg6bHKR8tgT7mj75M58UQ7WjJNP2vu1VeiHOomdp34fHyUI1ft5TzT1UoZ PAhYvssaQ4ZJVcdGLzh8Y9CeGPCFUp6cj5QqTcpX7JCPgpiBDmW+zCEeDAhW/c8V+wYh ecMIc9GsPm6ZFvlL5lmpaqvLObHRGQ3Ws3YP2CjkyhZbGzwI0tI6GqFDmUII7OVLJA5g uIOR0+zESXxbNdF7aTjisszmymRvZbgrlUn8D2Yevt8d4XubZT6bA6zkSf3jnSTSu4vM OhJg== X-Received: by 10.68.204.162 with SMTP id kz2mr11371755pbc.13.1402566011440; Thu, 12 Jun 2014 02:40:11 -0700 (PDT) Received: from [127.0.0.1] (s214090.ppp.asahi-net.or.jp. [220.157.214.90]) by mx.google.com with ESMTPSA id hb10sm79398236pbd.75.2014.06.12.02.40.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Jun 2014 02:40:10 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm , geert+renesas@glider.be Date: Thu, 12 Jun 2014 18:42:17 +0900 Message-Id: <20140612094217.4132.43070.sendpatchset@w520> In-Reply-To: <20140612094209.4132.78270.sendpatchset@w520> References: <20140612094209.4132.78270.sendpatchset@w520> Subject: [PATCH v2 01/07] mmc: sdhi: enable .dma_rx_offset for platform prototype Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Kuninori Morimoto .dma_rx_offset is caring only DT today. THis patch cares it via platform Not for upstream merge. Signed-off-by: Kuninori Morimoto [damm+renesas@opensource.se: Extracted from tarball, adjusted patch title to remove "Local" and added "Not for upstream merge" comment] Signed-off-by: Magnus Damm --- Changes since V1: - None drivers/mmc/host/sh_mobile_sdhi.c | 1 + include/linux/mmc/sh_mobile_sdhi.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/mmc/host/sh_mobile_sdhi.c b/drivers/mmc/host/sh_mobile_sdhi.c index 91c6399..d65b3ca 100644 --- a/drivers/mmc/host/sh_mobile_sdhi.c +++ b/drivers/mmc/host/sh_mobile_sdhi.c @@ -195,6 +195,7 @@ static int sh_mobile_sdhi_probe(struct platform_device *pdev) mmc_data->capabilities |= p->tmio_caps; mmc_data->capabilities2 |= p->tmio_caps2; mmc_data->cd_gpio = p->cd_gpio; + dma_priv->dma_rx_offset = p->dma_rx_offset; if (p->dma_slave_tx > 0 && p->dma_slave_rx > 0) { /* diff --git a/include/linux/mmc/sh_mobile_sdhi.h b/include/linux/mmc/sh_mobile_sdhi.h index 68927ae..5f11afc 100644 --- a/include/linux/mmc/sh_mobile_sdhi.h +++ b/include/linux/mmc/sh_mobile_sdhi.h @@ -25,6 +25,7 @@ struct sh_mobile_sdhi_info { unsigned long tmio_caps2; u32 tmio_ocr_mask; /* available MMC voltages */ unsigned int cd_gpio; + dma_addr_t dma_rx_offset; /* callbacks for board specific setup code */ int (*init)(struct platform_device *pdev,