From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kuninori Morimoto Date: Tue, 09 Sep 2014 00:14:13 +0000 Subject: Re: [PATCH 3/7 v3] mmc: use .multi_io_quirk on tmio_mmc Message-Id: <87y4tt7ir2.wl%kuninori.morimoto.gx@gmail.com> List-Id: References: <87r3zvzohj.wl%kuninori.morimoto.gx@gmail.com> <87bnqx78xr.wl%kuninori.morimoto.gx@gmail.com> <877g1l78v9.wl%kuninori.morimoto.gx@gmail.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Ulf Hansson Cc: Lee Jones , Chris Ball , Simon , Kuninori Morimoto , Linux-SH , linux-mmc Hi Ulf > > @@ -142,6 +144,8 @@ struct tmio_mmc_data { > > /* clock management callbacks */ > > int (*clk_enable)(struct platform_device *pdev, unsigned int *f); > > void (*clk_disable)(struct platform_device *pdev); > > + int (*multi_io_quirk)(struct mmc_card *card, > > + unsigned int direction, int blk_size); > > Do you really need to invent new platform callbacks for this? Wouldn't > it be possible to let the driver handle the quirk by itself? sh_mobile_sdhi is based on tmio_mmc_xxx, and sh_mobile_sdhi side needs this quirk. I don't know original tmio_mmc_xxx HW. Of course we can add new flag to tmio driver, but, it is same way as before ? Best regards --- Kuninori Morimoto