Message ID | 20210112113345.12937-2-qiangqing.zhang@nxp.com |
---|---|
State | New |
Headers | show
Return-Path: <netdev-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CE561C433DB for <netdev@archiver.kernel.org>; Tue, 12 Jan 2021 11:36:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A32AB223C8 for <netdev@archiver.kernel.org>; Tue, 12 Jan 2021 11:36:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729822AbhALLf7 (ORCPT <rfc822;netdev@archiver.kernel.org>); Tue, 12 Jan 2021 06:35:59 -0500 Received: from mail-eopbgr70074.outbound.protection.outlook.com ([40.107.7.74]:58496 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729394AbhALLf6 (ORCPT <rfc822;netdev@vger.kernel.org>); Tue, 12 Jan 2021 06:35:58 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=inHBxK/81ZGsg3u2xiJk+jybvBNq1iBwhi/r0tkS260wSTMNeZRSL1RSLO4XN9DuqG/Y8e4JOiryFNh+CJfgJr56GWpW49Sq/AQs4wfM9EdW2+hQsw5/SfkMn//So4F077R05muo9Wg70tuTcEftM6bQFCNcxXaPbvpv3atqxFJm49SvNTojTMz/kOJY2tMOGZqqIF/+nJ6mltJG9WDHGBfMrFV3ZBVeLnMsAcf7HOH+eHB6ADNHk1GnUrcpYjjUJ+aQwQRP4WZuVgASAF5p+RZXn0fiMBhK3nQxigfaUQkAbV2gJgwq1MYAi0EYAxxf2KTN0tYetpYp2Bb4ZhzShA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=s9r6dKSKW1j+iBWzl2PCLcSJ6KMA1wn770lhsALV4Iw=; b=EkWx52pPbRTtS1VTkYg5PtrGSzfx1KPz97Yw5kmqusgPLvyK+c86wIlBxG/dGfsibcgkQj0u6sEBQ6N+i6ATSqicx2hLvqby0BE9HB6q2Dlz8UvQRNBRh1n1oxTdYkJC7i8vvPj1eiZ+JQD2PK+6QpXKYz5XmyLRVNEeMkPE9KM/cuz7cZI05sq9N9T179TiXQsBPdibJzg6C43nTd2ld3+9ZFJrRtoHfEiLQrLLuQ8S5zEkv/ziWWi/3j09Oe+zwYrEGilDdmm5+ECUFAIgpX9iloZiy0G9TqfDe9LqE2xqHpr7q5+Dfb8ug6e54TuZJyjjijAC5lmioEcoFYdsCA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=s9r6dKSKW1j+iBWzl2PCLcSJ6KMA1wn770lhsALV4Iw=; b=TPrySEShejHAQrOwxsxfDDx8KmoO7vf0Q4ynKTNjS/xupLc53EZO9cAZOj3fm15EHG5cqpOzCnBQWAO0UVsevH/onTWclj1ghMnlCtxxdlZDpceKVAaeNIM/oY3+RTbxLW7aHoebxPYCNfywX61GetsxVRU7ipRZHCkXNySVw/k= Authentication-Results: st.com; dkim=none (message not signed) header.d=none;st.com; dmarc=none action=none header.from=nxp.com; Received: from DB8PR04MB6795.eurprd04.prod.outlook.com (2603:10a6:10:fa::15) by DBBPR04MB6139.eurprd04.prod.outlook.com (2603:10a6:10:ca::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3742.9; Tue, 12 Jan 2021 11:34:14 +0000 Received: from DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::b83c:2edc:17e8:2666]) by DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::b83c:2edc:17e8:2666%5]) with mapi id 15.20.3742.012; Tue, 12 Jan 2021 11:34:14 +0000 From: Joakim Zhang <qiangqing.zhang@nxp.com> To: peppe.cavallaro@st.com, alexandre.torgue@st.com, joabreu@synopsys.com, davem@davemloft.net, kuba@kernel.org Cc: netdev@vger.kernel.org, linux-imx@nxp.com, andrew@lunn.ch, f.fainelli@gmail.com Subject: [PATCH V2 net 1/6] net: stmmac: remove redundant null check for ptp clock Date: Tue, 12 Jan 2021 19:33:40 +0800 Message-Id: <20210112113345.12937-2-qiangqing.zhang@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210112113345.12937-1-qiangqing.zhang@nxp.com> References: <20210112113345.12937-1-qiangqing.zhang@nxp.com> Content-Type: text/plain X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: SGAP274CA0016.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b6::28) To DB8PR04MB6795.eurprd04.prod.outlook.com (2603:10a6:10:fa::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.71) by SGAP274CA0016.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b6::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.9 via Frontend Transport; Tue, 12 Jan 2021 11:34:11 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 3472918c-62da-46d5-3498-08d8b6edfd50 X-MS-TrafficTypeDiagnostic: DBBPR04MB6139: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <DBBPR04MB613991BF5E45F174BC46330EE6AA0@DBBPR04MB6139.eurprd04.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:3968; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FshZlAaUmVqUfO4xyxH/YMfkt64uBSm1p1XLk6GrWonz9dgWh021WoZFvW9kxgIS/OSHdBPM9qZqTNgVJbOvNRHEZ1KXPDuRqNnZwC12LOKSZ1q1s7nSOgwFfjqoRveZ1PMexiXVmIi6qi+VHd3tHxdMCHqrE6rNTDbGo4xPSgNyBOOoZf6Xi2r+eHDhNuj28eGTNuEcgQrpzyT31hCteSHWEwuf2ntnW728SHmiz7Oqv+27ByZerp9hcNqUB0371jDyJ3aolQA9U6qG7KmpVxz07b/qbuv/WBICok+m4T3oi2hbt79rMXOSuiC+sq6pvAJ5JL7vUuPvtWaHidW/oWTM9C4RyvjCSVBn8+1jHFrVr7FlrWf0BQxd1NTA5O4bfRsQjxMtiRoXrRuK1zTm7EdrtWs5rSn+fRpBpatxcs8sRu2pFwT4rdY+gxY+SIOc0cdLchMNGPgSTbT4W9iO8g== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB8PR04MB6795.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(69590400011)(66946007)(8936002)(26005)(8676002)(6666004)(66556008)(66476007)(1076003)(186003)(2616005)(6506007)(498600001)(83380400001)(6512007)(16526019)(956004)(2906002)(86362001)(36756003)(6486002)(4326008)(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cxo6 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthSource: DB8PR04MB6795.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jan 2021 11:34:14.5564 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-Network-Message-Id: 3472918c-62da-46d5-3498-08d8b6edfd50 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: RX1/TVnZbsublR3igAYSKQGQqUBj8NkNMICZRho3sakjJ72FNCw4YsU9Kijn7AwE9443RH57jihbXkMh+CKtVg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB6139 Precedence: bulk List-ID: <netdev.vger.kernel.org> X-Mailing-List: netdev@vger.kernel.org |
Series |
ethernet: fixes for stmmac driver
|
expand
|
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index 5b1c12ff98c0..a0bd064a8421 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -5290,8 +5290,7 @@ int stmmac_resume(struct device *dev) /* enable the clk previously disabled */ clk_prepare_enable(priv->plat->stmmac_clk); clk_prepare_enable(priv->plat->pclk); - if (priv->plat->clk_ptp_ref) - clk_prepare_enable(priv->plat->clk_ptp_ref); + clk_prepare_enable(priv->plat->clk_ptp_ref); /* reset the phy so that it's ready */ if (priv->mii) stmmac_mdio_reset(priv->mii);