From patchwork Sun Jan 1 11:53:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 13086361 X-Patchwork-Delegate: nbd@nbd.name 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 7D553C4332F for ; Sun, 1 Jan 2023 11:53:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230103AbjAALxo (ORCPT ); Sun, 1 Jan 2023 06:53:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229929AbjAALxn (ORCPT ); Sun, 1 Jan 2023 06:53:43 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78A2226E6 for ; Sun, 1 Jan 2023 03:53:41 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 21248B8091A for ; Sun, 1 Jan 2023 11:53:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 670E2C433EF; Sun, 1 Jan 2023 11:53:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672574018; bh=zGhv7VUBExUx7mSrY0FyCkLxLdsxJEL9M/HJ8SYZn6Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UJqBwH1ovoak0ZQIkod5288tMTOttg7qE5Mm0z5cJ1+zE/qulNcU6UV4qD7AeagKp oIwc8chjv3hTII3OTnI7NLZTlTn/g0TtIvzw83EaHEUXcisEuv6Y2Xy3Pz+PmHiXC3 D3KOQzgrCbx/war5GukoLFY+uWxlizIAKIFMA5SbhMVwQw4sFveI+B88FyZtzkR7OD 1qh0wl0ZeRurfSp71LoMIbbMygdHAJsem+6GNYnPM7UEqtAnDPHZgPgXCbTAtptoHz 5krfAEgSXxnqTDMY2PQ7Eje8G0cJeCSI1GBXpoGRvzgvbu4MOC+tg3Hdbfxad0D9D3 1fplFj8pjhwog== From: Lorenzo Bianconi To: nbd@nbd.name Cc: lorenzo.bianconi@redhat.com, linux-wireless@vger.kernel.org Subject: [PATCH 2/6] wifi: mt76: mt7603: avoid mcu_restart function pointer Date: Sun, 1 Jan 2023 12:53:19 +0100 Message-Id: <2eba74f7d407cef21bc773fd4192702df468d9cd.1672573894.git.lorenzo@kernel.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Run mt7603_mcu_restart routine directly and avoid mcu_restart function pointer whenever it is possible. Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt7603/mcu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7603/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7603/mcu.c index 7884b952b720..301668c3cc92 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7603/mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt7603/mcu.c @@ -221,7 +221,6 @@ int mt7603_mcu_init(struct mt7603_dev *dev) .headroom = sizeof(struct mt7603_mcu_txd), .mcu_skb_send_msg = mt7603_mcu_skb_send_msg, .mcu_parse_response = mt7603_mcu_parse_response, - .mcu_restart = mt7603_mcu_restart, }; dev->mt76.mcu_ops = &mt7603_mcu_ops; @@ -230,7 +229,7 @@ int mt7603_mcu_init(struct mt7603_dev *dev) void mt7603_mcu_exit(struct mt7603_dev *dev) { - __mt76_mcu_restart(&dev->mt76); + mt7603_mcu_restart(&dev->mt76); skb_queue_purge(&dev->mt76.mcu.res_q); }