From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Sun, 29 Nov 2015 21:41:06 +0100 Subject: [U-Boot] [PATCH v4] mmc: socfpga_dw_mmc: Enable calibration for drvsel and smplsel In-Reply-To: References: <1448608923-2809-1-git-send-email-clsee@altera.com> <201511290305.54510.marex@denx.de> Message-ID: <201511292141.06333.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sunday, November 29, 2015 at 09:19:14 PM, Simon Glass wrote: > Hi Marek, > > On 28 November 2015 at 18:05, Marek Vasut wrote: > > On Sunday, November 29, 2015 at 02:59:37 AM, Simon Glass wrote: > >> Hi Marek, > >> > >> On 27 November 2015 at 11:41, Marek Vasut wrote: > >> > On Friday, November 27, 2015 at 07:36:27 PM, Simon Glass wrote: > >> >> Hi, > >> >> > >> >> On 26 November 2015 at 23:22, Chin Liang See wrote: > >> >> > Enable SDMMC calibration to determine the best setting for > >> >> > drvsel and smplsel. Calibration will be triggered if the > >> >> > drvsel and smplsel node are not available in DTS. > >> >> > > >> >> > Signed-off-by: Chin Liang See > >> >> > Cc: Dinh Nguyen > >> >> > Cc: Dinh Nguyen > >> >> > Cc: Pavel Machek > >> >> > Cc: Marek Vasut > >> >> > Cc: Stefan Roese > >> >> > Cc: Pantelis Antoniou > >> >> > Cc: Simon Glass > >> >> > Cc: Jaehoon Chung > >> >> > --- > >> >> > Changes for v4 > >> >> > - Calibration only run if node not in DTS > >> >> > Changes for v3 > >> >> > - Remove the && ok as its redundant > >> >> > Changes for v2 > >> >> > - Using standard error return macro > >> >> > - Split to small function to avoid deep identation > >> >> > - Fix coding standard > >> >> > --- > >> >> > > >> >> > drivers/mmc/socfpga_dw_mmc.c | 208 > >> >> > ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 205 > >> >> > insertions(+), 3 deletions(-) > >> >> > >> >> Should this code go in the generic dw_mmc.c file instead? > >> > > >> > *Marek grabs popcorn* > >> > > >> > You might want to read the discussion(s) below the previous versions > >> > of the patch, but TLDR, samsung doesn't want the calibration code to > >> > interfere with their driver it seems. > >> > >> OK, fair enough. Let's see what happens when the next person wants to > >> add this feature. > > > > I'm reluctant to grab this patch altogether ... what do you think about > > this functionality ? > > It seems reasonable to me - high speed MMC requires it. In that case, it should go into common dw_mmc code . Best regards, Marek Vasut