From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751943AbdHQFbq (ORCPT ); Thu, 17 Aug 2017 01:31:46 -0400 Received: from lelnx193.ext.ti.com ([198.47.27.77]:10238 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750817AbdHQFbo (ORCPT ); Thu, 17 Aug 2017 01:31:44 -0400 Subject: Re: [RFC PATCH 3/7] mmc: sdhci: Add callback to set bus mode To: Adrian Hunter , Ulf Hansson , Tony Lindgren , Rob Herring References: <20170807160142.12134-1-kishon@ti.com> <20170807160142.12134-4-kishon@ti.com> CC: , , , , From: Kishon Vijay Abraham I Message-ID: <59b63873-0071-663b-0551-774887ddba90@ti.com> Date: Thu, 17 Aug 2017 11:01:35 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adrian, On Tuesday 15 August 2017 01:08 PM, Adrian Hunter wrote: > On 07/08/17 19:01, Kishon Vijay Abraham I wrote: >> Add callback to set bus mode in sdhci library so that the >> controller driver can perform any bus mode specific configurations >> in the callback function. > > A quirk isn't needed. Just hook ->set_ios() e.g. > > host->mmc_host_ops.set_ios = sdhci_omap_set_ios; > > Then sdhci_omap_set_ios() can call sdhci_set_ios() and then do the bus mode > setting. I'm not adding a quirk here.. but I got your point. Thanks Kishon