From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B40E3C33CA1 for ; Wed, 8 Jan 2020 11:43:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9320A20848 for ; Wed, 8 Jan 2020 11:43:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728119AbgAHLne (ORCPT ); Wed, 8 Jan 2020 06:43:34 -0500 Received: from mga04.intel.com ([192.55.52.120]:7832 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726852AbgAHLnc (ORCPT ); Wed, 8 Jan 2020 06:43:32 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Jan 2020 03:43:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,409,1571727600"; d="scan'208";a="370923917" Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.167]) ([10.237.72.167]) by orsmga004.jf.intel.com with ESMTP; 08 Jan 2020 03:43:30 -0800 Subject: Re: [PATCH 0/3] Fix issues with command queuing in arasan controllers To: Faiz Abbas , linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org Cc: ulf.hansson@linaro.org, shawn.lin@rock-chips.com References: <20191230092343.30692-1-faiz_abbas@ti.com> <837996b2-c69f-1446-fda4-5577e28ba8e1@ti.com> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: Date: Wed, 8 Jan 2020 13:42:40 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <837996b2-c69f-1446-fda4-5577e28ba8e1@ti.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/01/20 1:30 pm, Faiz Abbas wrote: > Hi, > > On 30/12/19 2:53 pm, Faiz Abbas wrote: >> In some Arasan SDHCI controllers, after tuning, the tuning pattern data >> is leftover in the sdhci buffer. This leads to issues with future data >> commands, especially when command queuing is enabled. The following >> patches help fix this issue by resetting data lines after tuning is >> finished. The first two patches have been tested with TI's am65x and >> j721e SoCs using the sdhci_am654 driver. >> >> I have a strong suspicion that this is the same issue with >> the sdhci-of-arasan driver where they are forced to dump data from the >> buffer before enabling command queuing. I need help from someone with a >> compatible platform to test this. >> > > I had some discussions with our hardware team and they say we should be > asserting both SRC and SRD reset after tuning to start from a clean > state. Will update the patches to do that in v2. Can you use the ->execute_tuning() for that instead of a quirk?