From patchwork Tue Sep 13 10:56:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Horman X-Patchwork-Id: 9328823 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 8AF85607FD for ; Tue, 13 Sep 2016 10:56:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7F51D2935D for ; Tue, 13 Sep 2016 10:56:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 742C72935E; Tue, 13 Sep 2016 10:56:33 +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 30EA829362 for ; Tue, 13 Sep 2016 10:56:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755235AbcIMK4c (ORCPT ); Tue, 13 Sep 2016 06:56:32 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:56795 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752031AbcIMK4b (ORCPT ); Tue, 13 Sep 2016 06:56:31 -0400 Received: from penelope.kanocho.kobe.vergenet.net (unknown [217.111.208.18]) by kirsty.vergenet.net (Postfix) with ESMTPSA id DDF1425B818; Tue, 13 Sep 2016 20:56:25 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=verge.net.au; s=mail; t=1473764186; bh=YF4MvLhUHqSnlp/5P0CVD93mFUcUihf6ilYlPimujvs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lufKOcL6GFiE9iHiIuO+xok8V9+IrbOSgPG07sCKqySiw6sKhjzCw3S3cPzp0Mwdn evef/SpJJYm4EBxkiv4XQBJxzZQozBVyQUygg1zFwF2dgjrVzjI33Achr671ydxfvz hETEUb6SBpxuxMc6qs5Z7gOQCKF0dtyCTjZ8AkV8= Received: by penelope.kanocho.kobe.vergenet.net (Postfix, from userid 7100) id 90D0D60A4F; Tue, 13 Sep 2016 12:56:21 +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 v7 3/6] mmc: tmio: document mandatory and optional callbacks Date: Tue, 13 Sep 2016 12:56:12 +0200 Message-Id: <1473764175-24580-4-git-send-email-horms+renesas@verge.net.au> X-Mailer: git-send-email 2.7.0.rc3.207.g0ac5344 In-Reply-To: <1473764175-24580-1-git-send-email-horms+renesas@verge.net.au> References: <1473764175-24580-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);