Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp641810ybl; Wed, 8 Jan 2020 03:30:14 -0800 (PST) X-Google-Smtp-Source: APXvYqxx4zWUCH8f2HLBfuJUvyXkZkD42+WBwH9SpI63VmIPBs/IlU668vmQbCFVsFl8wa9cobNT X-Received: by 2002:a9d:7852:: with SMTP id c18mr3598131otm.247.1578483014290; Wed, 08 Jan 2020 03:30:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578483014; cv=none; d=google.com; s=arc-20160816; b=qi07Z3JRPi7yJjZyT8CTpic9u3H3SF++woTEcyfsTs+hndxsRB8JiKALOUAx8Wi7pZ C5iQ5epYDK8wKGlN2n0LdaMoAd3YUs9YyhkKsELaUjvjIlOaVLEfO9HoCmM769pqvtd6 +ajxQcdksSOcsHprQK40v+TJPSzvZli5MJVNMn9EhgguLLpuhADXB0gZ4mRoDKB15s1n A0SzgdaIQoFRbFN0d3w4me52wKxwysp6Ae6lwjDxxRJESpUjrtlP/bTAiLXrd0dYzG88 Bvt6ay9UYLl5j8hAk62BOlXFa/J74hEfLxdRFzq3Aufk0917QaAiUoIjNtgJrpAHhEZd rYzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=4VlFsH0x4nyhfaCnO0v3sjcb4oaBGAFeq3JnlX2SVYM=; b=Iq5ofh1hpDPcqJKczvxeAImc0l8TP4qHrMAxt4FLWTAoP6vRJ4/4Jh7zh8fJ06XtLN vpUKSJXS5ib9CtgwTekvBCirLefIC7vkiz+zSJurETlTKeCe5A/alduxnk8OEAI4ykpd rQwdS65SGCCWVAvo2Ur9qG5FN777rgiUBh4sl9VeoJDu5InFYvY48iZ70K+ayvrym1yp 0BcKrb8mGxiv8yKvv2nNItlsCLqJObKDq9LRI/IcnR7YHuWIbSywGDlEL0xzd8SyWflv 2yEfDDrArzI2luSUZBRhx6I3OrWmk90IohHD09cqTOlobf8EVh+9YP2SPs9arTYcZwx8 7H7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="E/y1Xc4d"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 73si1631281oii.60.2020.01.08.03.30.00; Wed, 08 Jan 2020 03:30:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="E/y1Xc4d"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726921AbgAHL2v (ORCPT + 99 others); Wed, 8 Jan 2020 06:28:51 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:60162 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726252AbgAHL2v (ORCPT ); Wed, 8 Jan 2020 06:28:51 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 008BSePi107657; Wed, 8 Jan 2020 05:28:40 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1578482920; bh=4VlFsH0x4nyhfaCnO0v3sjcb4oaBGAFeq3JnlX2SVYM=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=E/y1Xc4dBJ6FaL/brdE0+rP3R/FG7dVzVkw9u2sHH2sBnGAYsAlXGlnrVmJI+X01E Isvfmo5V49gbVkhi0vzOZcHPsKOPSdB8bztiOqONtXiPI6bLwaHW7IEyx2lPJDeFqU Smf7yIDQUoEQHa4jTdJJfW+auCjGC6TpMAHYv4uQ= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 008BSebV049301 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 8 Jan 2020 05:28:40 -0600 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Wed, 8 Jan 2020 05:28:39 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Wed, 8 Jan 2020 05:28:39 -0600 Received: from [172.24.190.4] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 008BSbfv103074; Wed, 8 Jan 2020 05:28:38 -0600 Subject: Re: [PATCH 0/3] Fix issues with command queuing in arasan controllers To: , CC: , , References: <20191230092343.30692-1-faiz_abbas@ti.com> From: Faiz Abbas Message-ID: <837996b2-c69f-1446-fda4-5577e28ba8e1@ti.com> Date: Wed, 8 Jan 2020 17:00:11 +0530 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: <20191230092343.30692-1-faiz_abbas@ti.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks, Faiz