From patchwork Mon Mar 3 15:07:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 25611 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f198.google.com (mail-ie0-f198.google.com [209.85.223.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E684E20540 for ; Mon, 3 Mar 2014 15:09:21 +0000 (UTC) Received: by mail-ie0-f198.google.com with SMTP id at1sf27942371iec.1 for ; Mon, 03 Mar 2014 07:09:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=oCed+jKobA11BSz3fNpX3o5b5L6LB86Lcj9OKxHLC18=; b=LhcCMNWnWlzpZ1N5oK8gP/yVUzIQMlmC2s1Bjk/OY9uCY5btzdNtoFefbMkzuSlFq8 9wD3C3T2H6FAX8TzC8pW2HMqIZrdPG5fyaNGgfzC/Y3RfG0JfkE+VVH0f9Lny6Je7CWr oXJZDujaWqgT11pbYETC35fXNq764npS1Bk4KNQ4SOa6yhu0cn9tOpv6DuT30lswGTY1 Rgy650n4k2VFCap/MFeOJKG51y1NcY/RBK14ZNUpzo+sGNHfobXtpuGn+ZlzOw03ezgM HOXq1YxvtpG47BQJoTrvOYbBYv4Rxt1vTVOGvl12gZwRwwcHct9SAYZa7wvCkCaA8N+v RQWg== X-Gm-Message-State: ALoCoQlkx03beLAs/Lt9CRTZ8E9C1Lw46+cw2RAmd16ThvOVeFpRvobKFAyJt7DiSPqBQDaGOa0b X-Received: by 10.50.56.39 with SMTP id x7mr8991945igp.6.1393859361375; Mon, 03 Mar 2014 07:09:21 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.102.49 with SMTP id v46ls2175936qge.6.gmail; Mon, 03 Mar 2014 07:09:21 -0800 (PST) X-Received: by 10.220.89.4 with SMTP id c4mr25694vcm.53.1393859361198; Mon, 03 Mar 2014 07:09:21 -0800 (PST) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by mx.google.com with ESMTPS id p9si3524160vdv.96.2014.03.03.07.09.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 03 Mar 2014 07:09:21 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.177; Received: by mail-ve0-f177.google.com with SMTP id sa20so3751356veb.22 for ; Mon, 03 Mar 2014 07:09:21 -0800 (PST) X-Received: by 10.220.98.204 with SMTP id r12mr216249vcn.48.1393859361115; Mon, 03 Mar 2014 07:09:21 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.130.193 with SMTP id u1csp60391vcs; Mon, 3 Mar 2014 07:09:20 -0800 (PST) X-Received: by 10.68.202.8 with SMTP id ke8mr8126163pbc.86.1393859360220; Mon, 03 Mar 2014 07:09:20 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id uc9si10983844pac.94.2014.03.03.07.09.19; Mon, 03 Mar 2014 07:09:19 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755089AbaCCPI5 (ORCPT + 26 others); Mon, 3 Mar 2014 10:08:57 -0500 Received: from devils.ext.ti.com ([198.47.26.153]:60547 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755054AbaCCPIx (ORCPT ); Mon, 3 Mar 2014 10:08:53 -0500 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id s23F8Fe7022703; Mon, 3 Mar 2014 09:08:15 -0600 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s23F8Fge017208; Mon, 3 Mar 2014 09:08:15 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.174.1; Mon, 3 Mar 2014 09:08:14 -0600 Received: from localhost.localdomain (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s23F7Z1E008921; Mon, 3 Mar 2014 09:08:12 -0600 From: Roger Quadros To: , , CC: , , , , , , , , , Subject: [PATCH 10/12] phy: ti-pipe3: Fix suspend/resume and module reload Date: Mon, 3 Mar 2014 17:07:32 +0200 Message-ID: <1393859254-10937-11-git-send-email-rogerq@ti.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1393859254-10937-1-git-send-email-rogerq@ti.com> References: <1393859254-10937-1-git-send-email-rogerq@ti.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: rogerq@ti.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Due to Errata i783, SATA breaks if its DPLL is idled. The recommeded workaround to issue a softreset to the SATA controller doesn't seem to work. Here we just prevent SATA DPLL from Idling and hence avoid the issue altogether. Signed-off-by: Roger Quadros --- drivers/phy/phy-ti-pipe3.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/phy/phy-ti-pipe3.c b/drivers/phy/phy-ti-pipe3.c index d3c085a..611f7c3 100644 --- a/drivers/phy/phy-ti-pipe3.c +++ b/drivers/phy/phy-ti-pipe3.c @@ -238,6 +238,10 @@ static int ti_pipe3_exit(struct phy *x) u32 val; unsigned long timeout; + /* SATA DPLL can't be powered down due to Errata i783 */ + if (of_device_is_compatible(phy->dev->of_node, "ti,phy-pipe3-sata")) + return 0; + /* Put DPLL in IDLE mode */ val = ti_pipe3_readl(phy->pll_ctrl_base, PLL_CONFIGURATION2); val |= PLL_IDLE;