From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752826AbdJTKys (ORCPT ); Fri, 20 Oct 2017 06:54:48 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:49024 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752172AbdJTKyp (ORCPT ); Fri, 20 Oct 2017 06:54:45 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 6AD7960807 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=vviswana@codeaurora.org Subject: Re: [PATCH v2 4/4] mmc: sdhci-msm: Add sdhci msm register write APIs which wait for pwr irq To: Bjorn Andersson Cc: adrian.hunter@intel.com, ulf.hansson@linaro.org, will.deacon@arm.com, linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, asutoshd@codeaurora.org, stummala@codeaurora.org, riteshh@codeaurora.org, subhashj@codeaurora.org References: <1506490483-46871-1-git-send-email-vviswana@codeaurora.org> <1506490483-46871-5-git-send-email-vviswana@codeaurora.org> <20171014073118.GD1575@tuxbook> From: Vijay Viswanath Message-ID: Date: Fri, 20 Oct 2017 16:24:39 +0530 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171014073118.GD1575@tuxbook> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/14/2017 1:01 PM, Bjorn Andersson wrote: > On Tue 26 Sep 22:34 PDT 2017, Vijay Viswanath wrote: > >> diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c > [..] >> + if (!done) { >> + if (!wait_event_timeout(msm_host->pwr_irq_wait, >> + msm_host->pwr_irq_flag, >> + msecs_to_jiffies(MSM_PWR_IRQ_TIMEOUT_MS))) >> + __WARN_printf("%s: pwr_irq for req: (%d) timed out\n", >> + mmc_hostname(host->mmc), req_type); > > Bumped my MSM8974AB device to latest linux-next and found this patch; I > see this print every five seconds during boot and the eMMC never comes > up. > > Regards, > Bjorn > -- > To unsubscribe from this list: send the line "unsubscribe linux-mmc" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Hi Bjorn, I couldn't get one 8974 device. I tested the latest linux-next on db410c and its not showing any issue. 8974 is an older msm and has some differences in the controller like your "mmc: sdhci-msm: Enable delay circuit calibration clocks" patch. I am currently going through the programming guide to see what could be the reason. Can you please share the full logs from the device with me so that I can focus my search? Thanks, Vijay