From patchwork Tue Jun 10 23:03:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 4332511 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 9E831BEEAA for ; Tue, 10 Jun 2014 23:01:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D0B9B2028D for ; Tue, 10 Jun 2014 23:01:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E9D922012F for ; Tue, 10 Jun 2014 23:01:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751998AbaFJXBR (ORCPT ); Tue, 10 Jun 2014 19:01:17 -0400 Received: from mail-pd0-f172.google.com ([209.85.192.172]:48311 "EHLO mail-pd0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751758AbaFJXBR (ORCPT ); Tue, 10 Jun 2014 19:01:17 -0400 Received: by mail-pd0-f172.google.com with SMTP id fp1so6573826pdb.3 for ; Tue, 10 Jun 2014 16:01:16 -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=wK8NH6/mwcKv8Mzafqd3CM+6fY8ZPHmTnGxuizdugVA=; b=G+i762SRoqlUVEAN9CGqfUV6rYxsCCYOkyNMhddKO4A2PceuGyUtxl1aPhlrSHPU8Z s1B+q27b+3y1+O2U+R3ERG49pxBzK8tA0RqgwGHS+7fOfMyTUq8z5WW+1sGtv9j/0hxV 77vo6aMyoBlWvTFBNokKaU6L06jLC85OfPaMvOfROV2ccOR7xSc9Cr/ZDsadHTraomj4 7uUTKYvwckiXkjqlZnM488lTmot9WJoqGik1OWOUtIvOGRhVkBvV4qxyeef1UTxSTTQd M4X5LAHTq271wdr1bDkYKs6CrZOIdUjGKb3jWx1nLTAWqzRfvY9s4G1BciT8K844ptW0 1l7Q== X-Received: by 10.68.211.233 with SMTP id nf9mr212654pbc.29.1402441276725; Tue, 10 Jun 2014 16:01:16 -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 ci4sm71405534pbb.50.2014.06.10.16.01.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Jun 2014 16:01:15 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm Date: Wed, 11 Jun 2014 08:03:22 +0900 Message-Id: <20140610230322.13594.33134.sendpatchset@w520> In-Reply-To: <20140610230314.13594.91830.sendpatchset@w520> References: <20140610230314.13594.91830.sendpatchset@w520> Subject: [PATCH 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 --- 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,