From patchwork Wed Dec 2 10:59:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexander Pyattaev X-Patchwork-Id: 1409644 X-Patchwork-Delegate: ynezz@true.cz Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=yl-verkot.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=W9MgA1xA; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=yl-verkot.com header.i=alexander.pyattaev@yl-verkot.com header.a=rsa-sha256 header.s=zohodkim header.b=cHvJq9LD; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CmGJM3Yldz9sSf for ; Wed, 2 Dec 2020 22:02:11 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Reply-To:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date:Subject:Message-ID: From:To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=GozgRQGTKvggtTIiS0+7b+67CAS4Joz25oCtitB4WXI=; b=W9MgA1xAWcsGjl we8NpAkHwbFxsazwuc5Cs3caBxckzEsIWIhCT/q95Ixlr3KnknqSnuTsqq/yt4qndKmsZnqG+33lC upu7V48BJKLpXynkY689dKWtvDAeEwHpEz9ZuEiDfqEFqpgPqXv8ZHbL9r+M3553T13dBlJTV4lF+ Z449fBJ82u4sSN5SM7gltr4LDSpUpgxvK4XonsXzFecFWS+UsFMiMvGQxnhNkd5F2bIMJy3I2D0Bi SwbLssMbJ0fEMEf8TU104rHurusiUvj+kCtEswZppncvyFQsj8w69o3k4/9o8+BuqBS6vnf8QmNYr kPjNXLzBB5OucOlRlwVw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkPrg-0001Yq-Hw; Wed, 02 Dec 2020 11:00:04 +0000 Received: from sender4-of-o51.zoho.com ([136.143.188.51]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkPrc-0001XY-Os for openwrt-devel@lists.openwrt.org; Wed, 02 Dec 2020 11:00:02 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1606906796; cv=none; d=zohomail.com; s=zohoarc; b=gePWMNRjbvCSmxR6qsMuXGhaVdu0r2+NQ+CfBCHXpu/MP8USnKZ5vUEwMnmEVm9441rOk+Uby5iVlrrlcLKvXi7Ve1/DOKs22t5xIrGoEqDIjaSb9YRNMO4vB7uNK00271oWtD1bBbVn5PEgftICkoqJGopYFBwzpe2JqVFLh6I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1606906796; h=Content-Type:Content-Transfer-Encoding:Date:From:MIME-Version:Message-ID:Reply-To:Subject:To; bh=u/PgATFzbTYtPTU1QtY2/RC7AkswC82kCQZ3ZsVVyUo=; b=HZE7Abzxd0V3wFYzvfmUeulVcm2zyGxdOZFiISXgJ6DEo70/3tT7yUBMp8nbWkG9xGNeat+2bk3Q5xlPkBbJU6KPZwbiasmFYEILqOsAi5JQPTse1+pNTq/6w9UNlenF/fYfoiaeBCI4i+5BB3KV15kgsQ5iToPWgXgv4WyJg2I= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=yl-verkot.com; spf=pass smtp.mailfrom=alexander.pyattaev@yl-verkot.com; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1606906796; s=zohodkim; d=yl-verkot.com; i=alexander.pyattaev@yl-verkot.com; h=Reply-To:To:From:Message-ID:Subject:Date:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=u/PgATFzbTYtPTU1QtY2/RC7AkswC82kCQZ3ZsVVyUo=; b=cHvJq9LDjvJMXgh4b4V6gK3eFq8vAomcSGsgrLzgoKAoBTSm1FEBU1VbnGlRWkX3 Iw9OjqijHVhFBeEJ0GfmUzw7y7AUaUuMnydMFc62i9SNpg5gxhoNsc4/T5i3XpdM/NB T1mesc2ow22poDs68KpnNjITRiZ9fHG+O3JaN+RE= Received: from [172.16.1.16] (87-95-76-59.bb.dnainternet.fi [87.95.76.59]) by mx.zohomail.com with SMTPS id 1606906794078611.9091491335362; Wed, 2 Dec 2020 02:59:54 -0800 (PST) To: openwrt-devel@lists.openwrt.org From: Alexander Pyattaev Message-ID: <8ac32117-ab18-a266-da91-3f73bda68d0a@yl-verkot.com> Subject: Patching backported WiFi driver Date: Wed, 2 Dec 2020 12:59:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.3 MIME-Version: 1.0 Content-Language: en-US X-ZohoMailClient: External X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201202_060001_030117_057860A5 X-CRM114-Status: GOOD ( 12.51 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [136.143.188.51 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [136.143.188.51 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: alexander.pyattaev@yl-verkot.com Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Hi, I hope someone could help me figure something out about quilt usage in kernel build. I need to patch a file in a WiFi driver. WiFi drivers appear to be pulled in from backports, i.e. all relevant sources are in something like ./build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/backports-5.8-1 while kernel itself is in ./build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.4.75 However, I can not seem to find any package actually defining how that stuff is built. It looks like it should something defined in ./package/kernel/mac80211/intel.mk So based on that I dropped my patch into ./package/kernel/mac80211/patches, but it does not have ANY effect. It does not crash, it does not apply, it is as if it did not exist. Please help! If it ends up working out in clean build that should allow AX200 to work under openWRT, also in AP mode=) Thank you, Alex For reference, the actual patch is below (I have formatted it based on what Atheros patches look like)         if (iwl_mvm_has_new_rx_api(mvm)) {                 ret = iwl_send_rss_cfg_cmd(mvm); --- a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c @@ -1241,14 +1241,14 @@         }         /* Init RSS configuration */ -       if (mvm->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22000) { +       /*if (mvm->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22000) {                 ret = iwl_configure_rxq(mvm);                 if (ret) {                         IWL_ERR(mvm, "Failed to configure RX queues: %d\n",                                 ret);                         goto error;                 } -       } +       }*/