Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6023157pxb; Mon, 14 Feb 2022 13:20:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJyZmXs6abW5LIaQ9NrJRHRsb8ebAQdPeYuU6FHRh9J5fA4nggxQE3ML8jzlXXE4T2/cOko9 X-Received: by 2002:a17:902:e5d1:: with SMTP id u17mr763603plf.70.1644873643628; Mon, 14 Feb 2022 13:20:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644873643; cv=none; d=google.com; s=arc-20160816; b=GAogIXNC91Cb2W11h2ZmJgXP9gTifeObsZUYHqsZN0+O9K9wvggMDNzqBNEpbVEbEe N1pqjGpff6DMMZP7QSMHaCOzyatvlyyQ4pPvdaOJI6Z6au0eBacw1FBxnxLVV9SexT1P /eb7mRwje3A/edXVdXfyOzBpnmBvBfF/dLzWM92/RPQNCSVuGqLYDK5R5rb6Ccj4Aab/ PWlHB6JRJCEK8QGZ9j/vI3TyzuSKVNpeIjlnx8R5UPhK61KHKfkFkotZOjFWbXDiZ1xl QwdDxHZOnDBHwtsN9XL++VA/G6XiF8W+eb7E6GWc19Q3/oKMqTOmM6kTGiU8+88MDT9/ rLlw== 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:dkim-signature; bh=D+Y28RptxIUipz8kXsPJHLGjBTwiSqSWvQO1Ofmyeng=; b=ce5AG32xuoCOkr4iCxGBsY40Z4FBePY44uZZkBpaQx5L9QKjYLBvTfVROdQpR33eMy 280+Ph5ZTqd5P9MKeneR2QMfbOvM0loZDuxPw+TJIdi/zbyFxVQB8s6bOCWtM6uCNeSL 80k4yFB3ezgSBZge58Ll3hy0ZCvaleQEfHS0hrjiUi+UzfhletS+rUL+TLTI8u1pi8VE wcR+DoeWwTkBlfN9zDoiSupkkIKuCwm0cdfRKup2DZfsrr8HFgXQU7S89VVKQ2+FnmDX v9K+U4ReBGb5JLg1jGvAXdkwxBxB28xIzwuuNvoHemDR7essxJ+u7jB979DE/JJXgYJH MbeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VxPh0ppS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d21si30587381pfl.97.2022.02.14.13.20.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 13:20:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VxPh0ppS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C58C0151C5A; Mon, 14 Feb 2022 12:37:20 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243118AbiBNJ3E (ORCPT + 99 others); Mon, 14 Feb 2022 04:29:04 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:42262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243131AbiBNJ2z (ORCPT ); Mon, 14 Feb 2022 04:28:55 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 719AE60DB1; Mon, 14 Feb 2022 01:28:46 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 1F117B80DC6; Mon, 14 Feb 2022 09:28:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 25763C340E9; Mon, 14 Feb 2022 09:28:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1644830923; bh=L+64FosT+u6ZVeqOqEziHxpJpKytKI0e34ddCBC1uyc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VxPh0ppSGAGzY6XoO70bZTVRmNwYJBKxXHVXPYd/9BpjAyDuEMjL9zFRCiP3o450I LkuCAiPBhXu6K79JG/izlvekUgw68BJ4/NkCxHn/nyeMa9uyDGTeC/SXhGvl/Mr0G8 LIB4CnbC6IMq8IH8Ua8ne1lD+XnMeuVRG6OX1z+I= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Guillaume Bertholon Subject: [PATCH 4.9 08/34] Revert "net: axienet: Wait for PhyRstCmplt after core reset" Date: Mon, 14 Feb 2022 10:25:34 +0100 Message-Id: <20220214092446.218435382@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220214092445.946718557@linuxfoundation.org> References: <20220214092445.946718557@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Guillaume Bertholon This reverts commit 9f1a3c13342b4d96b9baa337ec5fb7d453828709. The upstream commit b400c2f4f4c5 ("net: axienet: Wait for PhyRstCmplt after core reset") add new instructions in the `__axienet_device_reset` function to wait until PhyRstCmplt bit is set, and return a non zero-exit value if this exceeds a timeout. However, its backported version in 4.9 (commit 9f1a3c13342b ("net: axienet: Wait for PhyRstCmplt after core reset")) insert these instructions in `axienet_dma_bd_init` instead. Unlike upstream, the version of `__axienet_device_reset` currently present in branch stable/linux-4.9.y does not return an integer for error codes. Therefore fixing the backport cannot be as simple as moving the inserted instructions in the right place, and we simply revert it instead. Fixes: 9f1a3c13342b ("net: axienet: Wait for PhyRstCmplt after core reset") Signed-off-by: Guillaume Bertholon Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 10 ---------- 1 file changed, 10 deletions(-) --- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c +++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c @@ -278,16 +278,6 @@ static int axienet_dma_bd_init(struct ne axienet_dma_out32(lp, XAXIDMA_TX_CR_OFFSET, cr | XAXIDMA_CR_RUNSTOP_MASK); - /* Wait for PhyRstCmplt bit to be set, indicating the PHY reset has finished */ - ret = read_poll_timeout(axienet_ior, value, - value & XAE_INT_PHYRSTCMPLT_MASK, - DELAY_OF_ONE_MILLISEC, 50000, false, lp, - XAE_IS_OFFSET); - if (ret) { - dev_err(lp->dev, "%s: timeout waiting for PhyRstCmplt\n", __func__); - return ret; - } - return 0; out: axienet_dma_bd_release(ndev);