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: 9563811 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6C41560234 for ; Thu, 9 Feb 2017 00:08:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EFE5B28538 for ; Thu, 9 Feb 2017 00:08:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E44EF2853C; Thu, 9 Feb 2017 00:08:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8193E28538 for ; Thu, 9 Feb 2017 00:08:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752033AbdBIAHu (ORCPT ); Wed, 8 Feb 2017 19:07:50 -0500 Received: from mail-lf0-f51.google.com ([209.85.215.51]:35880 "EHLO mail-lf0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751779AbdBIAHq (ORCPT ); Wed, 8 Feb 2017 19:07:46 -0500 Received: by mail-lf0-f51.google.com with SMTP id z134so91765749lff.3 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=e1a4RFlxhW8q4hErCAhs3wHkvt9NdK5HBwf5yOEOCzgKCFvmrerUGxBnJMl6/n85yP eS1+NB5H1o6beHPEUe1VZ2sGU5G7STc24F/PJArJPsZWeJGYe6wFsknEqG86MaD4LtzJ WFhxjp/8sZNKwGsFEP3WPbe5kHffGIXYeP6qOYXX3qJERCox1bKawJv4q/7EBf6yRMUC qjjD2D+FRGYw9+BPxCmxRBw0cUHCU7kMu8FW8p+o2RJOtqVdr/CZflLnOikO1yqJDBsW XIYpFpfrOzmiYgLsWPCqZmAxLBx8PiPIuITGQ8eJkWGwog7Jd7VuxeGywX77Uq3gJ2M0 bfoQ== X-Gm-Message-State: AMke39llWq3f9YiXO9ENgnUpuPSg389sFUVR6t9oAIaydA/uMmVHAlak0KJdSDFQDzBHELt1 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: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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);