From patchwork Tue Aug 30 21:09:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Horman X-Patchwork-Id: 9306053 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2BCA9601C0 for ; Tue, 30 Aug 2016 21:10:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1AFFC28D4C for ; Tue, 30 Aug 2016 21:10:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0F91428D54; Tue, 30 Aug 2016 21:10:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B605328D67 for ; Tue, 30 Aug 2016 21:10:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755778AbcH3VKX (ORCPT ); Tue, 30 Aug 2016 17:10:23 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:45906 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756102AbcH3VKX (ORCPT ); Tue, 30 Aug 2016 17:10:23 -0400 Received: from penelope.kanocho.kobe.vergenet.net (52D9BC73.cm-11-1c.dynamic.ziggo.nl [82.217.188.115]) by kirsty.vergenet.net (Postfix) with ESMTPSA id 349D225BDE5; Wed, 31 Aug 2016 07:10:18 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=verge.net.au; s=mail; t=1472591418; bh=YF4MvLhUHqSnlp/5P0CVD93mFUcUihf6ilYlPimujvs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QgoyeadonautxkIWHFYBZv90dPebBImOWGWwFZ2ZaxlhQT2cOBw1LYZ3rYUvlq1+6 C/a9Ft8WKy+nlRtgTqscjgowOtv9RrM9uI76iF/mdA0sQC8cQL2BxjZjXy2eJB4knd Xko06e1EtJ9l3YmZjhlrI94Mse7AW8g6K1xprclI= Received: by penelope.kanocho.kobe.vergenet.net (Postfix, from userid 7100) id B570266E90; Tue, 30 Aug 2016 23:10:14 +0200 (CEST) From: Simon Horman To: Wolfram Sang , Ulf Hansson Cc: Magnus Damm , linux-mmc@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Simon Horman Subject: [PATCH v5 02/11] mmc: tmio: document mandatory and optional callbacks Date: Tue, 30 Aug 2016 23:09:50 +0200 Message-Id: <1472591399-13907-3-git-send-email-horms+renesas@verge.net.au> X-Mailer: git-send-email 2.7.0.rc3.207.g0ac5344 In-Reply-To: <1472591399-13907-1-git-send-email-horms+renesas@verge.net.au> References: <1472591399-13907-1-git-send-email-horms+renesas@verge.net.au> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Simon Horman --- v5 * New patch --- drivers/mmc/host/tmio_mmc.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/tmio_mmc.h b/drivers/mmc/host/tmio_mmc.h index 1f1cb2628f67..4b36cb5c2d9c 100644 --- a/drivers/mmc/host/tmio_mmc.h +++ b/drivers/mmc/host/tmio_mmc.h @@ -151,8 +151,10 @@ struct tmio_mmc_host { bool native_hotplug; bool sdio_irq_enabled; - int (*write16_hook)(struct tmio_mmc_host *host, int addr); + /* Mandatory callback */ int (*clk_enable)(struct tmio_mmc_host *host); + + /* Optional callbacks */ unsigned int (*clk_update)(struct tmio_mmc_host *host, unsigned int new_clock); void (*clk_disable)(struct tmio_mmc_host *host); @@ -161,6 +163,7 @@ struct tmio_mmc_host { int (*card_busy)(struct mmc_host *mmc); int (*start_signal_voltage_switch)(struct mmc_host *mmc, struct mmc_ios *ios); + int (*write16_hook)(struct tmio_mmc_host *host, int addr); }; struct tmio_mmc_host *tmio_mmc_host_alloc(struct platform_device *pdev);