Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1581100ybv; Thu, 6 Feb 2020 06:26:31 -0800 (PST) X-Google-Smtp-Source: APXvYqwwPc2myKMWRiDHs3AR9UmwNf26dDbi9HUbxREaRJRmUXE/IiS4JmVnkYyJJYA5dcUobW+X X-Received: by 2002:aca:d507:: with SMTP id m7mr6792520oig.48.1580999191120; Thu, 06 Feb 2020 06:26:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580999191; cv=none; d=google.com; s=arc-20160816; b=wRuSWOZLD85t34v3LiervjWz+7cZ/6KTFwNoDtguYHtw1jx49jj2puSqIbIi3muxhp 9/KtAC/5T/LWgIUM0bR/ud/yIxv9Noc4zF6PuVjH96FCXGFF+l+TCiomKg76FPuioDtX BP4DqH8FOF4uWLhlfqR/HAhFGlO0YPbIO6Cd6vMy6uIb13F0+VzQNyn8J+G1GctITviU AfxNcqVDliAtA13cTdEm5MA9zvY4qG9bJF/7LuazMPat+yh/fedsX44jfCvypBeF3FX2 MrNa0LSIk/Y8RHCiyLjfDGfHZDALRT7vfzwYEAWpNslGuwrHXCJWFsTY1lM1oBjwfotO +G2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ujphz3B+s46aEe7JvGGM1Ne2ZXEsoldLhyDrK7xK9Ko=; b=TVLHy1BYezBxAN9vZpCeXQv1ZPkVWyDO2VJ4Nkc5Hj3HSWWik4U4g1Iff7VQ/RHsoL xwVHLKbJDwySQ3oxH0sAZGwpbITyhtWyPujTpcIDFJjEchvHGtM+JIHo4UCkTyJQvC6B Ewo93CySilVNBF/3Vqtgjzfi5atrmDeoAmpAAvBXPxnVDMYcj2UhXrrM2kC7Y7geJpy3 kkyUjNWegPAKRc5BKAVoRSTti0Oit55f8QktXlfHUdQL+xrfsoUPCIbNT7rS2LXCjF/V YUBO/5cHpseRKt2i0DQ1832W/9MWWqhsWc4ItrdyDdQgBXrT9AqDDFlxaQsqVqxgKhIG xy9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="r2fc3qi/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 7si1957666oix.49.2020.02.06.06.26.18; Thu, 06 Feb 2020 06:26:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="r2fc3qi/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728070AbgBFOYU (ORCPT + 99 others); Thu, 6 Feb 2020 09:24:20 -0500 Received: from mail-pj1-f67.google.com ([209.85.216.67]:39768 "EHLO mail-pj1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727415AbgBFOYU (ORCPT ); Thu, 6 Feb 2020 09:24:20 -0500 Received: by mail-pj1-f67.google.com with SMTP id e9so43438pjr.4; Thu, 06 Feb 2020 06:24:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ujphz3B+s46aEe7JvGGM1Ne2ZXEsoldLhyDrK7xK9Ko=; b=r2fc3qi/9oNBxawfqNV0KXua36nCnXKLMdct8mDNook6eYV55lHztSV5xJ90MWYldf GQDjpa2pqjDN/R6JQwv933Zfvw/ePlhJandlvdwup1MujP/V4rd0jVWQErbPOdC/xghr IXDkRz0Qfw2uuZO9HEyg5aOlSMidW2brqKSnkLkFZIeh6dIzQCNCB8ZbPqVqA0s1DS6m yKcqYX3Qvo6bdZZmQtrz/tLC/u1qH5MPBtlXeWqx/zXLlLNyZ4zaxTtbPCmqTZMacg1Y yMiZypbiuqU+5hShOi+yn7yKlw/zZ3beb2KBtcTgZieAKFb+tvG7XgWGtbvmXtrjgoFD vKOA== 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:mime-version :content-transfer-encoding; bh=ujphz3B+s46aEe7JvGGM1Ne2ZXEsoldLhyDrK7xK9Ko=; b=TdOjbgvnOonVlcuBLJyd4i76Zw/5sy4mOw6WeR3oJWLg5soGaGLLI3LytxRYB73+sF L3vH+woWwjhyvTNnULms3+Z/rbrGFmeCdQ+2f46u6JKAW8dBGQ5+YVypGg8TADVj5qoA Miyrw5au0YJP0OF+MDGzjkQ+ZiPpS9pNZ2uEFOZ7jW/vemPL0CN1LRXtj5ylIg7MmMII QPXvnm6WAoYYvluL6uRtxa0kLogQoaSFcD20+gexPNossdHVkoDcnWoKYhn8FL3brdIz KD5Arhc+cBTafEJ/bmkvYpzCrZU1V8Ci5iM2mMiXEQZ+1jCp7rZthtSudTXj66oahr6X W2mw== X-Gm-Message-State: APjAAAVuTOiGKUQoR1xo3uJzd0T6V3pOQp40AJAwILz8vJ6mBnPKmPos Y/Tx5iMehurFyXPMdtn1hkAQ65Yn X-Received: by 2002:a17:90a:7784:: with SMTP id v4mr4688042pjk.134.1580999059559; Thu, 06 Feb 2020 06:24:19 -0800 (PST) Received: from localhost (104.128.80.227.16clouds.com. [104.128.80.227]) by smtp.gmail.com with ESMTPSA id q66sm3942259pfq.27.2020.02.06.06.24.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 06 Feb 2020 06:24:19 -0800 (PST) From: Dejin Zheng To: peppe.cavallaro@st.com, alexandre.torgue@st.com, joabreu@synopsys.com, davem@davemloft.net, mcoquelin.stm32@gmail.com, netdev@vger.kernel.org Cc: linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Dejin Zheng Subject: [PATCH 0/2] use readl_poll_timeout() function Date: Thu, 6 Feb 2020 22:24:02 +0800 Message-Id: <20200206142404.24980-1-zhengdejin5@gmail.com> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series just for use readl_poll_timeout() function to replace the open coded handling of use readl_poll_timeout() in the stmmac driver. There are two modification positions, the one in the init_systime() function and the other in the dwmac4_dma_reset() function. Dejin Zheng (2): net: stmmac: use readl_poll_timeout() function in init_systime() net: stmmac: use readl_poll_timeout() function in dwmac4_dma_reset() drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c | 14 ++++++-------- .../net/ethernet/stmicro/stmmac/stmmac_hwtstamp.c | 14 ++++++-------- 2 files changed, 12 insertions(+), 16 deletions(-) -- 2.25.0