Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp165565rdb; Thu, 19 Oct 2023 00:01:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEboq1jfNzZkLQEsLuXu4s+OZSnKoRKLRmMVbYDpV130+kz2IrcCcGAqS/WMadhe4I020P4 X-Received: by 2002:a17:903:32d2:b0:1c6:d0a:cf01 with SMTP id i18-20020a17090332d200b001c60d0acf01mr1575831plr.11.1697698883441; Thu, 19 Oct 2023 00:01:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697698883; cv=none; d=google.com; s=arc-20160816; b=hxNwoYo4KoNVEKiXwlLK7kUa//JXU113pssM3hvezdUL7k9VNh7RmNKo+4XXjR5pD3 BVZTPtXkZUJ07DKhCGVTDtfCgBcoy9ZLFa/1PWnrer81+T0nNAVP4kbb0jkTd/VYs/mQ 6dLuc3JxUDHU+a5AWGxEP2H4ybiafXfWKfk+ywaRZte98+l2XQBHwKmBJC8QqFpPoEIx zgKm3jD0F4+w3hIiyzGAsxNOcMFD8qkZx6W3KGpY3KDVjNcixnQENNH3FonQKWkwoykL ksb+jH/k7LmmrIKvXv20zaowHmTtVrupdVAXdbe6Zp0yZ2AHlnNhuJxyFBkbu0uGX50Y 7csw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=2zGaBIhTAw6/LQbcofaxIQ5yimBEObBcC7NnAOdDqNg=; fh=rMViRUXMcpwts00tnWIqSaDpfyZ7i6w6Qd30cdc6wgo=; b=XDMLkfQG7dILJ8oUH3Sof7r6X8rHS20RBU26qEFXTtOz0YfklKPqYeaxNo3zZ1684K R/0FqrfGCG0a0U9jBKuYA4/MjNyXEWZXrZseRgsWe/dYYcccSqZ78vvqLyjOd/Cg1oeQ HeK9Np/dRaGo791fRXR5q7pyysVD3o3vGKVDWe2Ueo0CByCFagOXLTII1Pfuzk2avBlH tTf0c7VIsjhvtp8W3E6zRML3dMMAei1rcVcQnsUnNFL71wl0zxvi49+ATwmRVGhBZ7zX 8wCqNqpAfp2CboZP2Eaz8/1mUIaEyVHWCqoG9xkEAX29Zz4ENxLs0jSSd/JxkJmozxL3 8HHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Y6SWEhP/"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id cm20-20020a056a020a1400b00578f23273a3si4058902pgb.738.2023.10.19.00.01.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 00:01:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Y6SWEhP/"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 505128061397; Thu, 19 Oct 2023 00:00:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232824AbjJSHAh (ORCPT + 52 others); Thu, 19 Oct 2023 03:00:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232583AbjJSHAf (ORCPT ); Thu, 19 Oct 2023 03:00:35 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98E88130 for ; Thu, 19 Oct 2023 00:00:32 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 182F4C433C7; Thu, 19 Oct 2023 07:00:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697698832; bh=f0idU1rN8nBKPLQhg1YiOq6yFlzG7w5zL0x55nSdUFw=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=Y6SWEhP/5hqWN+0Uk16Tkg6AZ79maKrWnxFnkVnEFo9bfI46bG3t4W2KL9VhdxfrE af9RkJv5X8TV+ypnE27g2VdFjciuiGgiMM64PosdohgXP4skfOsKrKp9NIwAcmdzaw 5f9255bdYe3ioyM2dgF7qA4LDiqCwhn8Hzo8yhA3msTGR9NffiB1RnEYNhu8diuS0K 3viU1dv2bxvmc6+GVgvwLYuQ+da5ihWhDmPGvHam6N+8xiYR55elQssIuzIHVlV3JO dAfRyvfirjvXbHfrDeF/tgWoGqhGpRNFNhJkAOWQ6oQLBQ7zax0htttEvbM9C5D4tB mcNcABTUUXQzg== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] wifi: rt2x00: fix rt2800 watchdog function From: Kalle Valo In-Reply-To: References: To: Shiji Yang Cc: linux-wireless@vger.kernel.org, Stanislaw Gruszka , Helmut Schaa , Shiji Yang User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <169769882877.117236.15856778587852752332.kvalo@kernel.org> Date: Thu, 19 Oct 2023 07:00:30 +0000 (UTC) X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Thu, 19 Oct 2023 00:00:38 -0700 (PDT) Shiji Yang wrote: > The watchdog function is broken on rt2800 series SoCs. This patch > fixes the incorrect watchdog logic to make it work again. > > 1. Update current wdt queue index if it's not equal to the previous > index. Watchdog compares the current and previous queue index to > judge if the queue hung. > 2. Make sure hung_{rx,tx} 'true' status won't be override by the > normal queue. Any queue hangs should trigger a reset action. > 3. Clear the watchdog counter of all queues before resetting the > hardware. This change may help to avoid the reset loop. > 4. Change hang check function return type to bool as we only need > to return two status, yes or no. > > Signed-off-by: Shiji Yang Is this patch ok to take? -- https://patchwork.kernel.org/project/linux-wireless/patch/TYAP286MB0315BC1D83D31154924F0D39BCD1A@TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches