Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp983970pxb; Fri, 22 Apr 2022 15:58:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsXbUfA1CvHcTmKKNE+sFjAInn7/HPeS/8ncrRr5nBemoCRMJlPTb/zeUlnfPQmMzEiLuz X-Received: by 2002:a17:90b:2241:b0:1d2:54b2:64b2 with SMTP id hk1-20020a17090b224100b001d254b264b2mr18963336pjb.225.1650668321667; Fri, 22 Apr 2022 15:58:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650668321; cv=none; d=google.com; s=arc-20160816; b=K23l6fqeP6rKGgcjCIKGDJtIHlu4g1cvM9RQ22X1bEGn0KkMD0Dpg7b7zfqpiqWTKP 9rzXbX1/0eN5Dhb58pabENMCoawTgdLj8DYlD6X+ll/77euHmYcIEAOUL4/1ob8byMh5 TqZaCTGGka+Fuk/QEgQpjWU+Ccg77mtqJ2oxzQ8ycSlR9/MQ/qEH/Q9vPUBit30a7Sd3 WZ483zGKLgPT5tYzm0S22NmLuPEAVzttpXMr53OD81RfTpCEB+TJPkgg0dPSnK2k9q+3 wqIAiTAjnJHN4++rSuAIWZw1aJESBW/lE8S0hkGbbzfxLVm/BIiX1Bn29svi08Si8EK+ n6CQ== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=xN2TT2giRziTYzxkSRV3HAksGNGWVBKa+uXJBNXkzg8=; b=0YCV6pT9TGf8xK7hYOV7/dDzKAfoQ+xbfXKbqsYcDPgFGT+jRN710s8c15Bq/51Sgx prM/ywbY7z025yTO3DAJ/JuGe00YPO2Ddqn6fl6WnFcrIMRUyLjTLZHsqP44lhRYQ2HO iJbIeKROGwxvBuURgjMg90bEvTeZ81GYpJ/qgavRSGL/WTBwZvAZq9M8eDcpACBoyDCM JqF/A9/VR5CtsZZl7RrfbFKvF2m20c+9hmqBgP7hcvdaLk7C6dWs55yHuxja6UY/syh+ +6LGR9y1NhEeHbj+GwjeB4Mib+jFnnZgX4febif+s8rChkJe8hN3Ks9pMo3wxVwxFaeh UNyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@wp.pl header.s=1024a header.b=OaGiXdxu; 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=wp.pl Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d8-20020a63fd08000000b0039956e51e13si9320643pgh.592.2022.04.22.15.58.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 15:58:41 -0700 (PDT) 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 (test mode) header.i=@wp.pl header.s=1024a header.b=OaGiXdxu; 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=wp.pl Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id ED5F1229ED3; Fri, 22 Apr 2022 15:02:30 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231322AbiDVWFE (ORCPT + 99 others); Fri, 22 Apr 2022 18:05:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231302AbiDVWEt (ORCPT ); Fri, 22 Apr 2022 18:04:49 -0400 Received: from mx3.wp.pl (mx3.wp.pl [212.77.101.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F22BA20BDF2 for ; Fri, 22 Apr 2022 13:47:15 -0700 (PDT) Received: (wp-smtpd smtp.wp.pl 29161 invoked from network); 22 Apr 2022 21:47:12 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1650656832; bh=xN2TT2giRziTYzxkSRV3HAksGNGWVBKa+uXJBNXkzg8=; h=From:To:Cc:Subject; b=OaGiXdxuDtJlr6gXKJMqvpfHpw99AKST0JhzfU229DzbMl/J+krQWmDL0JaMn3wZ+ nLYzvdrGHvHszYhPrBHs6aXhFXMAhayra5vhItjEqeLtXIx/Awutg9aHIuu0eIUDfd DolY4LgU+nV3ARsdp1tJC43865542AEiY+9HqATk= Received: from unknown (HELO kicinski-fedora-PC1C0HJN) (kubakici@wp.pl@[163.114.132.6]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 22 Apr 2022 21:47:12 +0200 Date: Fri, 22 Apr 2022 12:47:04 -0700 From: Jakub Kicinski To: Bernard Zhao Cc: Kalle Valo , "David S. Miller" , Paolo Abeni , Matthias Brugger , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, bernard@vivo.com Subject: Re: [PATCH v2] mediatek/mt7601u: add debugfs exit function Message-ID: <20220422124704.259244e7@kicinski-fedora-PC1C0HJN> In-Reply-To: <20220422080854.490379-1-zhaojunkui2008@126.com> References: <20220422080854.490379-1-zhaojunkui2008@126.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-WP-MailID: 9321f50bc9e4db09d6c2149ef2c2edd3 X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 000000A [UYOE] X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE 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 On Fri, 22 Apr 2022 01:08:54 -0700 Bernard Zhao wrote: > When mt7601u loaded, there are two cases: > First when mt7601u is loaded, in function mt7601u_probe, if > function mt7601u_probe run into error lable err_hw, > mt7601u_cleanup didn`t cleanup the debugfs node. > Second when the module disconnect, in function mt7601u_disconnect, > mt7601u_cleanup didn`t cleanup the debugfs node. > This patch add debugfs exit function and try to cleanup debugfs > node when mt7601u loaded fail or unloaded. > > Signed-off-by: Bernard Zhao Ah, missed that there was a v2. My point stands, wiphy debugfs dir should do the cleanup. Do you encounter problems in practice or are you sending this patches based on reading / static analysis of the code only.