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 C850DECAAD5 for ; Thu, 8 Sep 2022 07:45:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230239AbiIHHpJ convert rfc822-to-8bit (ORCPT ); Thu, 8 Sep 2022 03:45:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230214AbiIHHpH (ORCPT ); Thu, 8 Sep 2022 03:45:07 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 857BD9924F for ; Thu, 8 Sep 2022 00:45:05 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 2887idSD3014044, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36504.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 2887idSD3014044 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Thu, 8 Sep 2022 15:44:39 +0800 Received: from RTEXMBS03.realtek.com.tw (172.21.6.96) by RTEXH36504.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Thu, 8 Sep 2022 15:44:58 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS03.realtek.com.tw (172.21.6.96) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Thu, 8 Sep 2022 15:44:58 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::402d:f52e:eaf0:28a2]) by RTEXMBS04.realtek.com.tw ([fe80::402d:f52e:eaf0:28a2%5]) with mapi id 15.01.2375.007; Thu, 8 Sep 2022 15:44:58 +0800 From: Ping-Ke Shih To: Kalle Valo CC: "linux-wireless@vger.kernel.org" Subject: RE: [PATCH v2 3/5] wifi: rtw89: configure TX path via H2C command Thread-Topic: [PATCH v2 3/5] wifi: rtw89: configure TX path via H2C command Thread-Index: AQHYwpY1xY8pEeu5H0Kz19T0rtmGDa3VHjLjgAAJvWA= Date: Thu, 8 Sep 2022 07:44:58 +0000 Message-ID: <4c88051556a64011a0a59d962f1d5f45@realtek.com> References: <20220907084402.66480-1-pkshih@realtek.com> <20220907084402.66480-4-pkshih@realtek.com> <87r10mbazi.fsf@kernel.org> In-Reply-To: <87r10mbazi.fsf@kernel.org> Accept-Language: en-US, zh-TW Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.69.188] x-kse-serverinfo: RTEXMBS03.realtek.com.tw, 9 x-kse-attachmentfiltering-interceptor-info: no applicable attachment filtering rules found x-kse-antivirus-interceptor-info: scan successful x-kse-antivirus-info: =?us-ascii?Q?Clean,_bases:_2022/9/8_=3F=3F_06:00:00?= x-kse-bulkmessagesfiltering-scan-result: protection disabled Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-KSE-ServerInfo: RTEXH36504.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org > -----Original Message----- > From: Kalle Valo > Sent: Thursday, September 8, 2022 3:07 PM > To: Ping-Ke Shih > Cc: linux-wireless@vger.kernel.org > Subject: Re: [PATCH v2 3/5] wifi: rtw89: configure TX path via H2C command > > Ping-Ke Shih writes: > > > In order to support TX diversity, add a function to control TX path. > > > > Signed-off-by: Ping-Ke Shih > > [...] > > > + ret = rtw89_h2c_tx(rtwdev, skb, false); > > + if (ret) { > > + rtw89_err(rtwdev, "failed to send h2c\n"); > > + goto fail; > > + } > > + > > + return 0; > > +fail: > > + dev_kfree_skb_any(skb); > > + > > + return -EBUSY; > > Overwriting error codes is confusing, so it would be better that this is > 'return ret'. > Sorry for the mistakes. Fixed by v3.