From patchwork Wed Dec 2 08:59:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joakim Zhang X-Patchwork-Id: 11945237 X-Patchwork-Delegate: kuba@kernel.org Return-Path: 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 46E2DC64E8A for ; Wed, 2 Dec 2020 09:01:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E0786221E9 for ; Wed, 2 Dec 2020 09:01:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388008AbgLBJAn (ORCPT ); Wed, 2 Dec 2020 04:00:43 -0500 Received: from mail-eopbgr50065.outbound.protection.outlook.com ([40.107.5.65]:54606 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387643AbgLBJAn (ORCPT ); Wed, 2 Dec 2020 04:00:43 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n3TS53VAoPlDiqbYvCm+ZdLYyMYIc2d7ZUXJ+62SUZGQ84KbjhJiadxcPR+eTtrD3IoPjKVlzAqhU0TAa3IxAItz7gRbY738k6C/dNe9KL9GKA7Q0SAqQ+3e/GmYXDAHT5eWAfvZJFC71ee8k3pLIZ4K6rYa7nvxwCz70ayhFB0GRsYwJRmd/m2pHOUL6wDWM7teLi3bN7KqyPWYj5C7hVtnXGv9CjnOnIlKSv3ggRa5iytXCHQ+GwALga2XkW28N6lqUUaWIXRv9ulEE7gjO22QXLb9Z/znpDKO3sSulwAhJaxIaSIK+DTTBrft3G53i99tu5picapBaJMo1+aNrg== 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=i3fvrFeNCKOZe1LfevmI8lb66EX3HQ/9xsBhU0yn488=; b=gJBMKowFaHBEHkdzRngBXkM8TEVgFY0/uY5Qmv2vHcNuN4U16AuUkmjwR26eBGs5nP8w/tO8HhmRgaVvqPp6CeA2IE3u+0BkIBnGZ8siFHE94DOvg1bEs0Iki423RELQad6aKwqkwZugzImUYaeF9Ai2E+fh8m4tnpuKtoqdKkLiWZ4037/IjVYMhZpwlTiXGen0gI7kuD3E/ashmaeJN4F0zX4++PuSJ0KwFNHPCH5aI1SeFFyaPOPClUsod/94waHKQnZCfhWi8wa8xv7i5pc6cP1x0ZUXAtsTSLCpK2fa37Te+nqlYL7p3XEVFGV6gBxTtrSVtfj3yN/ajbC2Og== 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=i3fvrFeNCKOZe1LfevmI8lb66EX3HQ/9xsBhU0yn488=; b=MduFhEO/biaXp3b5Hturksmh96tPKRjD6eqYzJsGKiQsyRt3fwQygIOY0Aolk+pjdDkEFfqY2rNceuCcFIfjZi8C48iBriC6EtfCxM3wm6Lg/vgWofqKDhcf7/TW8ZDItiQB7HYUpGBJncEu4jHUM+UrJCWWzeWxh6XYuIvuKz4= 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 DB7PR04MB4107.eurprd04.prod.outlook.com (2603:10a6:5:1e::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3611.22; Wed, 2 Dec 2020 08:59:52 +0000 Received: from DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::b83c:2edc:17e8:2666]) by DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::b83c:2edc:17e8:2666%4]) with mapi id 15.20.3632.017; Wed, 2 Dec 2020 08:59:52 +0000 From: Joakim Zhang To: peppe.cavallaro@st.com, alexandre.torgue@st.com, joabreu@synopsys.com Cc: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, linux-imx@nxp.com Subject: [PATCH 1/4] net: stmmac: dwmac4_lib: increase the timeout for dma reset Date: Wed, 2 Dec 2020 16:59:46 +0800 Message-Id: <20201202085949.3279-3-qiangqing.zhang@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201202085949.3279-1-qiangqing.zhang@nxp.com> References: <20201202085949.3279-1-qiangqing.zhang@nxp.com> X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: SG2PR04CA0132.apcprd04.prod.outlook.com (2603:1096:3:16::16) 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 SG2PR04CA0132.apcprd04.prod.outlook.com (2603:1096:3:16::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17 via Frontend Transport; Wed, 2 Dec 2020 08:59:49 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 78b91c14-5514-4036-6a59-08d896a0a14a X-MS-TrafficTypeDiagnostic: DB7PR04MB4107: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3173; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: I+eXJ8J1HLxvsfMm6IkFbad3HlRmL6/aGal38VPnld8JDP2OffujgVSng9sixmc5p6zJyddld73scjoCZ29i87euupNmr5JJQK8duOSTX4gE73TZq8jXHee/a/vvI9upox/Up7oXexOl69EUqnPPcOeo0eOW7Vm8nxyddfsOwrWFDSwU2CKOS6QH6Xw9TZ9l4Y3MUeMvIXqK0rA2jkeDehRz9D3oUDARD8q19G1Ob5m81ZQdn364q2nXfDpHO1Fnuh/6JDSVkM9AyUEFlGE1u3aARb/Hy0LHtwr4bYucesDOedExqVafW2I3pRqgAXUVwWmTx6C4PYbxhKwyk5mFfMliNI8QiuCileH8pTDCYQ7by9wxefsSPZN3kSPBz6Eq 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)(396003)(346002)(376002)(136003)(39860400002)(2616005)(8676002)(956004)(316002)(66556008)(6512007)(36756003)(66476007)(5660300002)(4326008)(66946007)(2906002)(6666004)(69590400008)(478600001)(16526019)(52116002)(8936002)(4744005)(1076003)(26005)(6506007)(86362001)(83380400001)(186003)(6486002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: aLbJ9FngWUa95Tpw505wwxDcJyso/p36JnHebW18eOea3ZvMi7zxi4Ox1b1TvjSp9UY9NYQnuTgu7QcKfupxn77C0OctMZpcwwE2egEjiE+9gDW0CGyUmng6jZDYjm7oSjIeWJhFOQPuidVNiy3k2dUYfNBH+JFKhGTEofWFkG3ISQlLfv+gvWtiIpbnD4ehvcRdoqlVFfLmSvrtYh+OtGEfuDb2+7qveUrYoE/QpdG5HGOC1pHXl75G7Hltcq525Yi17nGoM0XrPMMVZFB87Xfi/xHAuNBnXt/uRQB/Z4kaomN7W8W7d51uuSW5J3i4L3NTOD45wQcsIYnoKJqAey1tKrcdzAxXUhlNbOUdKzkyiY+aXaZJKCoOSx8Z7g1wGkteaB42C/rheX+Mk6NvdUzaZqME82iS6xllAkX+dTMjx84xTz9w5AMpZXzwSsPGygMCOlJJWlSk3Sgy8Hw49VUyuVUlgpYt2gddI2/7jVh67w7Ns9SWwG0wiKh3dTNRNXGdKZ9SXKUse7g67cKJQtqL93j4o4YgfzqOGp3pjPh+YKau64lAwlMqals/gMQcBKx5rZLKGd/wKcfm67acmS4FFf0WiXofixjKvgrN5k5XExwDvtLauyNsVpM7vZNLtWIsdEnztk5vgZQIZ/TWSaTdvgVVpfvo9acm4D5v+EzfCkaFy/L4FD7/xZzbfhYFdU62rQRVIy4FqaYXxxdzwCMcrumxe5KuvFgLurB4nch0JGcFyrwSJfcRIa33pcwzEs3LZpRIOzg/fch+zHRtjUiBkO8Wb+q2c878/tmkg66UMufi3Mdhl6RJJ0dwkbG9M70tzz0lFVCdD425vc2vFpaWI4LfDdTdWaL8QxtJQAfp1BDydMkLzaWxjvVm23L8TiUUZCkoisoDvoaJ2DjLk+7+0bZIc7LzpCrMR5fksLRQ3yDZK4O4eUmbCw1+kJ3P/ghH7PrnLyRFJStp8SVz4V9KV3+0zdraG9MwSC3KBJLBm8hVlkNJGzw+clUeV/lK X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 78b91c14-5514-4036-6a59-08d896a0a14a X-MS-Exchange-CrossTenant-AuthSource: DB8PR04MB6795.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Dec 2020 08:59:52.0914 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: LbGb6d5sJHdAhJ1i7MsBHFr5JH08WvgzPu/UojpJ/lbvE522ExOIgRZ8Yjcb1rXoYRlKTuG35DFt4rg8+KU+gQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4107 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org From: Fugang Duan Current timeout value is not enough for gmac5 dma reset on imx8mp platform, increase the timeout range. Signed-off-by: Fugang Duan Signed-off-by: Joakim Zhang --- drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c b/drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c index 6e30d7eb4983..0b4ee2dbb691 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c @@ -22,7 +22,7 @@ int dwmac4_dma_reset(void __iomem *ioaddr) return readl_poll_timeout(ioaddr + DMA_BUS_MODE, value, !(value & DMA_BUS_MODE_SFT_RESET), - 10000, 100000); + 10000, 1000000); } void dwmac4_set_rx_tail_ptr(void __iomem *ioaddr, u32 tail_ptr, u32 chan)