From patchwork Wed Jan 4 14:03:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 13088608 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CA971C4332F for ; Wed, 4 Jan 2023 14:03:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234615AbjADODk (ORCPT ); Wed, 4 Jan 2023 09:03:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234778AbjADODd (ORCPT ); Wed, 4 Jan 2023 09:03:33 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 385DC389 for ; Wed, 4 Jan 2023 06:03:32 -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 dfw.source.kernel.org (Postfix) with ESMTPS id CA76261748 for ; Wed, 4 Jan 2023 14:03:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D6EF6C433F0; Wed, 4 Jan 2023 14:03:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672841011; bh=FemQbANe8NWaaWNKuUAdbcAGmdFKO8B+lqEq1I4Fhlo=; h=From:To:Cc:Subject:Date:From; b=ckmk42gDn+NAXN5cog7bDSQfIZq7InlitxghNFR6W7Pbf3WJ66D8lQT9O0URaFATD 818iYamq8IcxuHMZmxA0/OvDJMYwY2MYuJ8EvBQQcoSRBiGryEPNrx3dYN//u956lg 7dZcO7sDEjADhUFje2NxumdyOr+oq+ercBWCLLUR+hBXbRcM+nnoUTcK88nqiHaI5U tarDv/4Rw0G/lz4Y8iO8b+Edlg4OXuzScR+K5TBQeAKFKrnVoYDa57lR+XOmmoVdj+ BrhEhpnto1pHOB9UnQT2zlA/bO4Af+/xEySOK7j4V9E0TvLu4LPmeHuCDBP4s7vwt9 F9yENPW1nVhzQ== From: Lorenzo Bianconi To: netdev@vger.kernel.org Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, lorenzo.bianconi@redhat.com, nbd@nbd.name, john@phrozen.org, sean.wang@mediatek.com, Mark-MC.Lee@mediatek.com, sujuan.chen@mediatek.com, daniel@makrotopia.org Subject: [PATCH v2 net-next 0/5] net: ethernet: mtk_wed: introduce reset support Date: Wed, 4 Jan 2023 15:03:09 +0100 Message-Id: X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Introduce proper reset integration between ethernet and wlan drivers in order to schedule wlan driver reset when ethernet/wed driver is resetting. Introduce mtk_hw_reset_monitor work in order to detect possible DMA hangs. Changes since v1: - rebase on top of net-next Lorenzo Bianconi (5): net: ethernet: mtk_eth_soc: introduce mtk_hw_reset utility routine net: ethernet: mtk_eth_soc: introduce mtk_hw_warm_reset support net: ethernet: mtk_eth_soc: align reset procedure to vendor sdk net: ethernet: mtk_eth_soc: add dma checks to mtk_hw_reset_check net: ethernet: mtk_wed: add reset/reset_complete callbacks drivers/net/ethernet/mediatek/mtk_eth_soc.c | 288 ++++++++++++++++--- drivers/net/ethernet/mediatek/mtk_eth_soc.h | 38 +++ drivers/net/ethernet/mediatek/mtk_ppe.c | 27 ++ drivers/net/ethernet/mediatek/mtk_ppe.h | 1 + drivers/net/ethernet/mediatek/mtk_ppe_regs.h | 6 + drivers/net/ethernet/mediatek/mtk_wed.c | 40 +++ drivers/net/ethernet/mediatek/mtk_wed.h | 8 + include/linux/soc/mediatek/mtk_wed.h | 2 + 8 files changed, 369 insertions(+), 41 deletions(-)