Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2874821pxu; Sat, 19 Dec 2020 05:01:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5DGvSoxK3n++WtD6Y2El7n+aZstek2heicFzS8AqyEYBQAp4ZhFI/kDuRoLzDOmrdrCOk X-Received: by 2002:a17:906:6606:: with SMTP id b6mr8157799ejp.151.1608382913364; Sat, 19 Dec 2020 05:01:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608382913; cv=none; d=google.com; s=arc-20160816; b=Y4yW9i4mcWY4313pja055SIoxOQw2uczVldtdM7Qw104oyXsWcdKP3miSEubr4OS8q 7t314UFRkcEqYA3sLKszk+UOESVqS/8Cch06TMxgsIJnypE+CZW4gbOtpIr4/fVATbaK 6k17dVVv9akp8b9BFLDVb5OXrFmOcEU1zQSfNMcCROHcd7vOp+BJxT39cPRck6Qwzdrc oWKiJgtsuTFdYHuM2xMwVDrXs0NlMwibZ3Gms6o2DK7VYqo9msIg2m92P8iGOZPE3OiO IP4MnFDHLZ9NTaAatJJsgus95eygmals7h7B6Jzn4AaS3SoigA1fyLEIutgmmPflhhsU yFnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=rSpakOafhYIXvXh9w5sfD797EkiDMi5Zg/ICTGj8O9Q=; b=sQ+CGdaDRwA0kakOp4iIlbUZ9EpuDkJmcghMR7O8BX8ztokksbc2wFqoDouUCPM1wB jKSeRJdl6bSata0gOfnH4DmRac9+NwEaLXQZ0izLwriVMO0Y6n9EMEanSqO451I1Z0bF 1W1+UeEyvBMtyU8YinekPyWokwSF0yKQCUgQZ1zzw8rtkvnzDhD7lkQWKiyd9dR9k7iF /wE5dJpHdnaroJSQknuoVPXLUJjgdmxat0NStbbu5CfMrDlNGhwE+Ne27LuHTTfgznmK CFZChAc5HTFAUbfrErzRJoWDK0lLx6RFoYqozJshLtl6BwoJgKetYTBx8DCbdvgahMr4 BCXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ov28si5528421ejb.512.2020.12.19.05.01.30; Sat, 19 Dec 2020 05:01:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728473AbgLSNAO (ORCPT + 99 others); Sat, 19 Dec 2020 08:00:14 -0500 Received: from mail.kernel.org ([198.145.29.99]:47166 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728354AbgLSM74 (ORCPT ); Sat, 19 Dec 2020 07:59:56 -0500 From: Greg Kroah-Hartman Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Fugang Duan , Joakim Zhang , "David S. Miller" Subject: [PATCH 5.9 31/49] net: stmmac: increase the timeout for dma reset Date: Sat, 19 Dec 2020 13:58:35 +0100 Message-Id: <20201219125346.194761917@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201219125344.671832095@linuxfoundation.org> References: <20201219125344.671832095@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Fugang Duan [ Upstream commit 9d14edfdeabf37d8d8f045e63e5873712aadcd6b ] 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 Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 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 *ioadd 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)