Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp523771rdb; Thu, 19 Oct 2023 10:53:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF81iJUBqT1JPOuHcLhzSaaiXbyr2g00tS+xommnkq/IsZ8jRbbi7SBGHwKJkVZNnN14Cgt X-Received: by 2002:a05:6a00:2daa:b0:6b4:d17b:25ab with SMTP id fb42-20020a056a002daa00b006b4d17b25abmr2933241pfb.25.1697738024848; Thu, 19 Oct 2023 10:53:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697738024; cv=none; d=google.com; s=arc-20160816; b=ANIDzcCW86TTJQH/xh89kjdWvvjdBJgpN9uaz45KQTXQxWwTwgsPjQuDntZTPgeZDd d9NziJqIYorb82mch9FXRfiXQfJaSBCDkVsObjt9FPzozQK2r4OLPxIf0tpYLQSeFD5e YLpqO37QJTYZG/MuPycSBukK1YEYkLIlzF5hvyPrF+c1tEdumLRic8XoQTFXqsdh7XjM dW9Lqw3AI/UKclAyY3agQzlWyxMR1tjZQ1PElKQfg92n+hCMre0cEvjGFqgG3RC+8SIp aCoFBk9qPPSMkQT/W/xCBUL9SVHY5l0KYWPHfxNQHX7S+ggmtuXCfJ2y2a6LS+KgboKw jnLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=2+rAyM9M/Mvxutl5GHk2fAK8bFZXXD6Ce8sUEHiFKio=; fh=JBzi3mT2LrwzDMXX2e1nEwKC7MYIzhp4qH2EjRMfnlE=; b=f5WYa+ACIMjrnhA93a1JN7w/62NmCRIZWFlcYHOiIar0UMpgQoWpYbJHfeLa6HjSHC ThRKc9Fh9Z4+E5bD2bHcGE3Ub9VCEyk1kJGGZbR73VUZeGDgyHjxWSTeZsePXL8AJcyf 9O+PQF2JDyASJYLCeljfTNZp87L9zNlNayZ12sZg/XV7YgQaOXG2DM9ByGCgXfTQoo39 kdRisyOAiAVbBOgwbEF6ysSFD3BYegGcF8n/RC6c1nIp/e96OIrHdoF/6td/vvYbcuH+ e/vObgrSw+NlLBogrUF/dIp6yuL7y6yeFxD6J7Mw5owXxbGkIFTfKsqM9bNi9kKHNQoW 9otw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@wp.pl header.s=1024a header.b=DlzZ5ETn; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wp.pl Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id a21-20020a056a000c9500b006bd2084d6ddsi158473pfv.100.2023.10.19.10.53.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 10:53:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@wp.pl header.s=1024a header.b=DlzZ5ETn; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wp.pl Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id D2218835D2F4; Thu, 19 Oct 2023 10:53:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235501AbjJSRxg (ORCPT + 52 others); Thu, 19 Oct 2023 13:53:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235491AbjJSRxg (ORCPT ); Thu, 19 Oct 2023 13:53:36 -0400 Received: from mx3.wp.pl (mx3.wp.pl [212.77.101.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C547114 for ; Thu, 19 Oct 2023 10:53:32 -0700 (PDT) Received: (wp-smtpd smtp.wp.pl 7621 invoked from network); 19 Oct 2023 19:53:28 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1697738009; bh=2+rAyM9M/Mvxutl5GHk2fAK8bFZXXD6Ce8sUEHiFKio=; h=From:To:Cc:Subject; b=DlzZ5ETnhYF6Z8ZzLcFDlrCyyYlhzXL5xA5XFl664MkyrfNr9oKVWAGFg37WhS6iW 83ZAl/L99TSslc9TKvNCCfY9xErN2Kl5kOJ8SnGboFpvHaH9ZNeUjhjnlyAhNFMKCv GOfnIFYxlvqruAH6d9UOOYIyE3MRxksqCWz4tUN8= Received: from 89-64-13-175.dynamic.chello.pl (HELO localhost) (stf_xl@wp.pl@[89.64.13.175]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 19 Oct 2023 19:53:28 +0200 Date: Thu, 19 Oct 2023 19:53:28 +0200 From: Stanislaw Gruszka To: Kalle Valo Cc: Shiji Yang , helmut.schaa@googlemail.com, linux-wireless@vger.kernel.org Subject: Re: [PATCH] wifi: rt2x00: fix rt2800 watchdog function Message-ID: <20231019175328.GA512047@wp.pl> References: <169769882877.117236.15856778587852752332.kvalo@kernel.org> <87h6mm20vl.fsf@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87h6mm20vl.fsf@kernel.org> X-WP-MailID: 73c6b66a9abc78415fbeca0f90fae148 X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 0000000 [wTMR] X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 19 Oct 2023 10:53:41 -0700 (PDT) On Thu, Oct 19, 2023 at 04:33:02PM +0300, Kalle Valo wrote: > Shiji Yang writes: > > > On Thu, 19 Oct 2023 07:00:30 +0000, Kalle Valo wrote: > > > >>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 Acked-by: Stanislaw Gruszka > >>Is this patch ok to take? > > > > > > Hi! I think it's ready. I've been testing it for a few weeks. > > That question was more towards maintainers Stanislaw, Helmut and other > reviewers :) > > That reminds me, is Helmut still maintaining this driver? I haven't seen > an ack from him since 2016. As we nowadays try to keep the MAINTAINERS > up-to-date so should we remove him? Yeah, feel free to remove him. I can post a patch if needed. Regards Stanislaw