From patchwork Thu Mar 6 14:23:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 25804 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f200.google.com (mail-ob0-f200.google.com [209.85.214.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 52DC4203C3 for ; Thu, 6 Mar 2014 14:24:31 +0000 (UTC) Received: by mail-ob0-f200.google.com with SMTP id gq1sf9804664obb.3 for ; Thu, 06 Mar 2014 06:24:30 -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=oZobV/46PvN8YeABRyY0/+K79jSbDsJle2K9nqIwYHs=; b=mXXjRz3o8V3/KJiCrDRKxAncPi8Em3yrj6FVLSAEVMmSrJQNY4+5XAjbcK1JZRdFdS JxpRg3KDX3wN5Bn2ZFlvNNs8kEkJMXZPL7yvx9MzYDX2Cp87eOZdykJmymqDNQLOZtDe 9OFHawH5jZwnoduoOCRf3HNGa90PwyoUwm0sjIN1zu9FYtHCyFUehmQHhYo+8f+I8OX+ 56vwBc+HBSnRXKedJz9hGAtVlST39GK/zrPE5SCVaZ9jSVKtzxFlqrsH0a09Hny3hnhX MNkghx8Hf/juFP8KQC3rkxZQTUVB7WSabZoXAUQ3mSjxvv8USyDWQethUyfiXoOdR4T0 P1yA== X-Gm-Message-State: ALoCoQmsRHLKlLFr4df4FuRewConGdEnmZB+z8eVpT5b3/MXXk1Hukh6cduHkSwr3fp3sWQWWT+a X-Received: by 10.182.251.230 with SMTP id zn6mr4268035obc.14.1394115870675; Thu, 06 Mar 2014 06:24:30 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.35.208 with SMTP id n74ls742439qgn.65.gmail; Thu, 06 Mar 2014 06:24:30 -0800 (PST) X-Received: by 10.58.49.129 with SMTP id u1mr5685279ven.0.1394115870378; Thu, 06 Mar 2014 06:24:30 -0800 (PST) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id ja11si1150010vec.142.2014.03.06.06.24.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Mar 2014 06:24:30 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id ld13so2587471vcb.4 for ; Thu, 06 Mar 2014 06:24:30 -0800 (PST) X-Received: by 10.220.159.4 with SMTP id h4mr5355351vcx.1.1394115870226; Thu, 06 Mar 2014 06:24:30 -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.78.9 with SMTP id i9csp42117vck; Thu, 6 Mar 2014 06:24:29 -0800 (PST) X-Received: by 10.68.159.228 with SMTP id xf4mr14824228pbb.74.1394115868266; Thu, 06 Mar 2014 06:24:28 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bs8si5042566pad.302.2014.03.06.06.24.27; Thu, 06 Mar 2014 06:24:27 -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 S1752840AbaCFOYW (ORCPT + 26 others); Thu, 6 Mar 2014 09:24:22 -0500 Received: from devils.ext.ti.com ([198.47.26.153]:58166 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752698AbaCFOYI (ORCPT ); Thu, 6 Mar 2014 09:24:08 -0500 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id s26ENdWf004497; Thu, 6 Mar 2014 08:23:39 -0600 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s26ENd7d022970; Thu, 6 Mar 2014 08:23:39 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.174.1; Thu, 6 Mar 2014 08:23:39 -0600 Received: from localhost.localdomain (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s26EN6k7018891; Thu, 6 Mar 2014 08:23:36 -0600 From: Roger Quadros To: , , CC: , , , , , , , , , Subject: [PATCH v2 08/13] phy: ti-pipe3: Fix suspend/resume and module reload Date: Thu, 6 Mar 2014 16:23:00 +0200 Message-ID: <1394115785-28301-9-git-send-email-rogerq@ti.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1394115785-28301-1-git-send-email-rogerq@ti.com> References: <1394115785-28301-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.220.173 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 12cc900..5913676 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;