From patchwork Thu Feb 9 00:07:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 93654 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp4821qgi; Wed, 8 Feb 2017 16:07:54 -0800 (PST) X-Received: by 10.98.67.72 with SMTP id q69mr321740pfa.14.1486598874249; Wed, 08 Feb 2017 16:07:54 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t22si8446682pfl.148.2017.02.08.16.07.54; Wed, 08 Feb 2017 16:07:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of netdev-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=@linaro.org; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752166AbdBIAHu (ORCPT + 5 others); Wed, 8 Feb 2017 19:07:50 -0500 Received: from mail-lf0-f44.google.com ([209.85.215.44]:33260 "EHLO mail-lf0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751783AbdBIAHq (ORCPT ); Wed, 8 Feb 2017 19:07:46 -0500 Received: by mail-lf0-f44.google.com with SMTP id x1so91801111lff.0 for ; Wed, 08 Feb 2017 16:07:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=m94QnWvAMaDtO3D3Bvqk/4lUZx9p2mE4LraFkgI/tbo=; b=JfPZty8CVOHGk2dr5jm0p3wD+6K47kIbFvaKbYP/91q9QUP2lEZhgbz61SWT3+XpT1 XFIHKA4pFtimONS2YHjso2vTcx0ivyDuKIC+6TxVdzSXdlLpq3GR3Gav2CKlEybtqVlk hX3Fm9xQR9OKvcIemLb1EHKfekWPeU071Pwvo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=m94QnWvAMaDtO3D3Bvqk/4lUZx9p2mE4LraFkgI/tbo=; b=mfLjVVu+amB2OnpRpeeT6DDbMWXnGuA9plzwVu13pfrqOPC/hefZ9nFFdbkYmgY2TN LBY3NZ3bOsPBKwTgtFyQwHmqMJepdszqID93CUwUk4G1hbjm8YKk39rb4GgQCbv5Wjra q2uqmQxq4jRKwiyqd0kObFP7eeQv7IiWODuQLag+ABMA4Q1jvL8JaMqjxnH232xlYrwv ENcS/Hed1lGgt0KoJfXT/Vjxgn9/JMG0TDFQ/2GAn/FIx4M2sg7EprGm25D88307GlmX s2vVgbPzC39Z/6cGNJO454wSZDfxR9FHOzUCjvMMudn5X1nnweoqxOs+Jyhr/z/36uIt oGoQ== X-Gm-Message-State: AMke39nC6NtfeYTNjvVwAezOIPz6bZjeEfbWTr6DXWpWp5ef3is45zRoDExUvYv7nL6iZMoY X-Received: by 10.25.28.199 with SMTP id c190mr52281lfc.173.1486598861832; Wed, 08 Feb 2017 16:07:41 -0800 (PST) Received: from localhost.localdomain (183-224-132-95.pool.ukrtel.net. [95.132.224.183]) by smtp.gmail.com with ESMTPSA id 206sm2887040ljf.35.2017.02.08.16.07.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 08 Feb 2017 16:07:41 -0800 (PST) From: Ivan Khoronzhuk To: mugunthanvnm@ti.com Cc: grygorii.strashko@ti.com, netdev@vger.kernel.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, AStarikovskiy@topcon.com, Ivan Khoronzhuk Subject: [PATCH 1/2] net: ethernet: ti: cpsw: fix cpsw assignment in resume Date: Thu, 9 Feb 2017 02:07:35 +0200 Message-Id: <1486598856-3512-2-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1486598856-3512-1-git-send-email-ivan.khoronzhuk@linaro.org> References: <1486598856-3512-1-git-send-email-ivan.khoronzhuk@linaro.org> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org There is a copy-paste error, which hides breaking of resume for CPSW driver: there was replaced netdev_priv() to ndev_to_cpsw(ndev) in suspend, but left it unchanged in resume. Fixes: 606f39939595a4d4540406bfc11f265b2036af6d (ti: cpsw: move platform data and slaves info to cpsw_common) Reported-by: Alexey Starikovskiy Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 4d1c0c3..9714fab 100644 --- a/drivers/net/ethernet/ti/cpsw.c +++ b/drivers/net/ethernet/ti/cpsw.c @@ -3225,7 +3225,7 @@ static int cpsw_resume(struct device *dev) { struct platform_device *pdev = to_platform_device(dev); struct net_device *ndev = platform_get_drvdata(pdev); - struct cpsw_common *cpsw = netdev_priv(ndev); + struct cpsw_common *cpsw = ndev_to_cpsw(ndev); /* Select default pin state */ pinctrl_pm_select_default_state(dev);