From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755559Ab2IZLhX (ORCPT ); Wed, 26 Sep 2012 07:37:23 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:37078 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755172Ab2IZLhV convert rfc822-to-8bit (ORCPT ); Wed, 26 Sep 2012 07:37:21 -0400 From: "Hebbar, Gururaja" To: "S, Venkatraman" CC: "linux-omap@vger.kernel.org" , "linux-mmc@vger.kernel.org" , "rob.herring@calxeda.com" , "linux-kernel@vger.kernel.org" , "grant.likely@secretlab.ca" , "cjb@laptop.org" , "Nori, Sekhar" , "Rajashekhara, Sudhakar" Subject: RE: [PATCH] mmc: omap_hsmmc: Enable HSPE bit for high speed cards Thread-Topic: [PATCH] mmc: omap_hsmmc: Enable HSPE bit for high speed cards Thread-Index: AQHNiqD9Is2lA8IYP0Sv6fHcSAOj0JeGFa+AgACMIOCAFffh0A== Date: Wed, 26 Sep 2012 11:37:08 +0000 Message-ID: <1BAFE6F6C881BF42822005164F1491C33EA8FF90@DBDE01.ent.ti.com> References: <1346764151-21323-1-git-send-email-gururaja.hebbar@ti.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-cr-puzzleid: {6F616BD3-A55D-4BCC-A93E-62DBB879FE61} x-cr-hashedpuzzle: D7ZL E5rk QDKl QYn3 RIP8 b3Yv b9VB dm76 hqUf prd9 yJFm 2VHJ AANBcA== ABGyug== ACA8SQ== AC4Pvg==;6;YwBqAGIAQABsAGEAcAB0AG8AcAAuAG8AcgBnADsAZwByAGEAbgB0AC4AbABpAGsAZQBsAHkAQABzAGUAYwByAGUAdABsAGEAYgAuAGMAYQA7AGwAaQBuAHUAeAAtAGsAZQByAG4AZQBsAEAAdgBnAGUAcgAuAGsAZQByAG4AZQBsAC4AbwByAGcAOwBsAGkAbgB1AHgALQBtAG0AYwBAAHYAZwBlAHIALgBrAGUAcgBuAGUAbAAuAG8AcgBnADsAbABpAG4AdQB4AC0AbwBtAGEAcABAAHYAZwBlAHIALgBrAGUAcgBuAGUAbAAuAG8AcgBnADsAcgBvAGIALgBoAGUAcgByAGkAbgBnAEAAYwBhAGwAeABlAGQAYQAuAGMAbwBtAA==;Sosha1_v1;7;{6F616BD3-A55D-4BCC-A93E-62DBB879FE61};ZwB1AHIAdQByAGEAagBhAC4AaABlAGIAYgBhAHIAQAB0AGkALgBjAG8AbQA=;Wed, 26 Sep 2012 11:36:21 GMT;UgBFADoAIABbAFAAQQBUAEMASABdACAAbQBtAGMAOgAgAG8AbQBhAHAAXwBoAHMAbQBtAGMAOgAgAEUAbgBhAGIAbABlACAASABTAFAARQAgAGIAaQB0ACAAZgBvAHIAIABoAGkAZwBoACAAcwBwAGUAZQBkACAAYwBhAHIAZABzAA== x-originating-ip: [172.24.162.25] Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 12, 2012 at 17:32:38, Hebbar, Gururaja wrote: > On Wed, Sep 12, 2012 at 14:19:51, S, Venkatraman wrote: > > On Tue, Sep 4, 2012 at 6:39 PM, Hebbar, Gururaja wrote: > > > HSMMC IP on AM33xx need a special setting to handle High-speed cards. > > > Other platforms like TI81xx, OMAP4 may need this as-well. This depends > > > on the HSMMC IP timing closure done for the high speed cards. > > > > > > From AM335x TRM (SPRUH73F - 18.3.12 Output Signals Generation) > > > > > > The MMC/SD/SDIO output signals can be driven on either falling edge or > > > rising edge depending on the SD_HCTL[2] HSPE bit. This feature allows > > > to reach better timing performance, and thus to increase data transfer > > > frequency. > > > > > > There are few pre-requisites for enabling the HSPE bit > > > - Controller should support High-Speed-Enable Bit and > > > - Controller should not be using DDR Mode and > > > - Controller should advertise that it supports High Speed in > > > capabilities register and > > > - MMC/SD clock coming out of controller > 25MHz > > > > > > > The patch is well written. But then, I don't see a need for a DT > > binding for this feature. > > My reasons for DT Binding > 1. Not all platforms using this driver has this bit (OMAP2) > 2. Not all platforms using this driver needs this bit to be enabled (OMAP4) > 3. Platforms which require this bit this to be set needs a method to inform > driver. > > In order to not disturb old/unsupported platforms, I chose this DT method. > > > By definition, HS implies 25MHz or above, so that check seems to be > > redundant as well. > > There are chances that the platform Max Clock output from HSMMC IP is < than > 25 MHz even if the card is High Speed. In such cases it would be better to > Confirm that the Clock output is actually > 25 MHz > > Kindly correct me if I am wrong. > > > Meanwhile, I'll check with HSPE enabled on OMAP. > > Gentle Ping. Matt Poter recently submitted EDMA related patches as RFC. He confirmed that basic mmc is working on AM335x with his edma patches. Above patch is required to get High-speed cards working on AM335x. I haven't seen any review comments for this. Can this be pulled in for 3.7? > > Regards, > > Venkat. > > > > > Regards, > Gururaja > Regards, Gururaja