Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1045199rwb; Fri, 13 Jan 2023 07:18:03 -0800 (PST) X-Google-Smtp-Source: AMrXdXvrxUFb7MMj/Zv+gS8g69RLXXPO2LeZssV8ZX1c+W7trH66L0C9m082H/e7omY9EpU9LqZ0 X-Received: by 2002:a17:903:3311:b0:194:5c74:4bc7 with SMTP id jk17-20020a170903331100b001945c744bc7mr6824176plb.23.1673623082915; Fri, 13 Jan 2023 07:18:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673623082; cv=none; d=google.com; s=arc-20160816; b=JtrtwhGObRvp7d8SEtQKtCDFaB5CDnPnejXf+Hy6qceZBPjpljxym1HFS08ZElF8DV VZrkEHSggD8Vb+1kLD1ivaLGClcb/TzloBJfq1tE9pWqsgRLVxC3mi88s4RhoVg348TD 12voCn7sEOmZboZmZf9T8BumnEIQjTMaRJcsPQnJDXWnAc7cJ5eekKY0IpaJv3zGnX10 Rn8nvDPNReqsgD65O1JMA90AxfeQV1btvh2AxB8jL4uteiGjxO2QCgQ3iUzg8MG4+gHw qUWAVQsAVFf3k9QjNDT1ifoeMIDh0hCoJmel/qx20tlw/e/LT4XFfuP47V91knxaGGYt 3Qag== 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:date:subject:cc:to:from; bh=gy3H7/cm6qwaEzsvZ6Ibt0qAZNE5wC8oiAsqhQvvNa8=; b=u21YUrl+a680fkbR/XSUlLqqMsI73wHdT2hNXT2BDskOlO4CSOKV/aEP8hfO4V7hGD BEm4LnMHrbMpr01ynHQ3DRlnZ8oKqPzpqs6KQgpzzYClY+CPIYxcKaTEbnjjkV9ABE6d HeteZu+Z/mNQSSkAJzsbBiyMO7hlAcEeXE0bgXbpzg8JMtLPoWKlx3ssPoqypvKJkRp1 SMss4aLontqwtDsq19Y2qOFINnQeMTlC2T25NuvdGSjDvjND+R1WyDz8kvy7A9C8dVJo PUIZlAdHVsaDvS1KOcYK1fN6mg7pTGEzahLlAwxGfD2TpGNUgEkDxSN3sTKbVbEIgXSb x4Cg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bg12-20020a1709028e8c00b001747ed48ee8si19254808plb.150.2023.01.13.07.17.51; Fri, 13 Jan 2023 07:18:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230083AbjAMPOs (ORCPT + 65 others); Fri, 13 Jan 2023 10:14:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230185AbjAMPNl (ORCPT ); Fri, 13 Jan 2023 10:13:41 -0500 Received: from exchange.fintech.ru (exchange.fintech.ru [195.54.195.159]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE91D43A1F; Fri, 13 Jan 2023 07:05:00 -0800 (PST) Received: from Ex16-01.fintech.ru (10.0.10.18) by exchange.fintech.ru (195.54.195.159) with Microsoft SMTP Server (TLS) id 14.3.498.0; Fri, 13 Jan 2023 18:04:52 +0300 Received: from localhost (10.0.253.157) by Ex16-01.fintech.ru (10.0.10.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Fri, 13 Jan 2023 18:04:52 +0300 From: Nikita Zhandarovich To: , Greg Kroah-Hartman CC: Nikita Zhandarovich , Felix Fietkau , Lorenzo Bianconi , Ryder Lee , Kalle Valo , , , , , "Alexey Khoroshilov" , Subject: [PATCH 5.10 0/1] mt76: move mt76_init_tx_queue in common code Date: Fri, 13 Jan 2023 07:04:45 -0800 Message-ID: <20230113150445.39286-1-n.zhandarovich@fintech.ru> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.0.253.157] X-ClientProxiedBy: Ex16-01.fintech.ru (10.0.10.18) To Ex16-01.fintech.ru (10.0.10.18) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham 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-wireless@vger.kernel.org My apologies, I should've have explained my reasoning better. 1. My issue with 5.10 version of mt7615_init_tx_queues() in drivers/net/wireless/mediatek/mt76/mt7615/dma.c is that return value of final call to mt7615_init_tx_queue() is not taken into account when returning result of mt7615_init_tx_queues(). So, if last mt7615_init_tx_queue() fails (due to memory issues, for instance), parent function will still erroneously return 0. 2. To correct the issue, I turned to Lorenzo's patch in b671da33d1c5973f90f098ff66a91953691df582 which solves my petit problem as well as rewrites a single mt76_init_tx_queue() function to be used across all mt76 drivers. 3. I was torn between writing my own little patch to fix a single mistake or use an existing one that increases code readability and uniformity. I settled on latter. 4. As for this patch exclusivity to 5.10.y branch, I have an incentive to prioritise prioritize 5.10. Wasn't sure I should be the one to suggest the patch for other branches. Thanks, Nikita