From patchwork Thu Mar 6 14:38:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 25827 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f200.google.com (mail-ve0-f200.google.com [209.85.128.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D2F44203C3 for ; Thu, 6 Mar 2014 14:43:00 +0000 (UTC) Received: by mail-ve0-f200.google.com with SMTP id oy12sf6614608veb.3 for ; Thu, 06 Mar 2014 06:43:00 -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=m9ZU4sAO5b+hHvtxC8bW86hejjtRPcuvxIM+am05OSWNaIfxADPqCJ/c4mKP+81D3y U2qZpDVcw0yXvszYQfRT81JUEKyhBJ+Lv4dBHTilf1ip5oW7EXS2SeD4Mwsog+NVloDk pBMQmz0drr6dW+wVlBPEylCZh/Dpb1ntbQmkWGzQQA7Ruc1VC5TaTra//gtfBHR7njlC 5zea8jmFiypvHgn80CUfI1bsF8GTSYcD4rORQXJBHtFwzLbDxvew2RJlZaqRDtdEq4aU vFl+vZn28O2Vp5Bsf7Ffj+uXA9B9CyWtOuAWyIHYAiBYTYNLQWDZwPpBmGlV8EV9DBk6 d0aQ== X-Gm-Message-State: ALoCoQkGDn28zK9cKpJL/PCFrwRRvshAszW7ISYDkN6VVtMi9uw5+0ZNJMUTSalyenE26mhN0pzE X-Received: by 10.58.239.35 with SMTP id vp3mr3398573vec.26.1394116980573; Thu, 06 Mar 2014 06:43:00 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.84.103 with SMTP id k94ls745797qgd.39.gmail; Thu, 06 Mar 2014 06:43:00 -0800 (PST) X-Received: by 10.58.172.132 with SMTP id bc4mr24285vec.45.1394116980328; Thu, 06 Mar 2014 06:43:00 -0800 (PST) Received: from mail-ve0-f182.google.com (mail-ve0-f182.google.com [209.85.128.182]) by mx.google.com with ESMTPS id yt16si1148590vcb.42.2014.03.06.06.43.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Mar 2014 06:43:00 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.182 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.182; Received: by mail-ve0-f182.google.com with SMTP id jw12so2774414veb.27 for ; Thu, 06 Mar 2014 06:43:00 -0800 (PST) X-Received: by 10.52.81.66 with SMTP id y2mr8130700vdx.23.1394116980248; Thu, 06 Mar 2014 06:43:00 -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 i9csp43501vck; Thu, 6 Mar 2014 06:42:59 -0800 (PST) X-Received: by 10.68.136.133 with SMTP id qa5mr14824750pbb.63.1394116979328; Thu, 06 Mar 2014 06:42:59 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ki1si5095545pbc.355.2014.03.06.06.42.58; Thu, 06 Mar 2014 06:42:58 -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 S1753392AbaCFOmw (ORCPT + 26 others); Thu, 6 Mar 2014 09:42:52 -0500 Received: from bear.ext.ti.com ([192.94.94.41]:55630 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752991AbaCFOjn (ORCPT ); Thu, 6 Mar 2014 09:39:43 -0500 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s26EdM5k032383; Thu, 6 Mar 2014 08:39:22 -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 s26EdMI4006528; Thu, 6 Mar 2014 08:39:22 -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; Thu, 6 Mar 2014 08:39:22 -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 s26EcoCV026929; Thu, 6 Mar 2014 08:39:19 -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:38:44 +0200 Message-ID: <1394116729-28811-9-git-send-email-rogerq@ti.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1394116729-28811-1-git-send-email-rogerq@ti.com> References: <1394116729-28811-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.182 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;