Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp945147rwb; Wed, 28 Sep 2022 11:02:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5RCTMrEgTgBdYZZxWR8NPpGtfPdBT4rw0DK4XiKYI87AcdNfvHOglk01FlA+Pue3vbVyh0 X-Received: by 2002:a63:1a51:0:b0:43b:e496:f2f4 with SMTP id a17-20020a631a51000000b0043be496f2f4mr31028319pgm.99.1664388160881; Wed, 28 Sep 2022 11:02:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664388160; cv=none; d=google.com; s=arc-20160816; b=ufPmMYYxcvdSJe6OZb0fQrxZOxOfJqysomI7Q25mtet/O1+eZfm/O+0drR/RoCvFOm ntawq15bknUzMLoQ08jd8IfXsR+tbSK3pvTP2B7VgcrtCA0gsZUe8WEvTs2PeK1XZ0zu PCZKrjozjdDv2ublj7/qZYoXrtIGziBkKb8wNDRpuvI24nfkUS2dsA1CcytHpHgqSvN5 zpvNnRnC6iTU8WKDGFHJF3MvG+YpAa8QvYK2wb8u2syrl/zfu8ry4xWk4NUmDwiVDImg ngkpgR4p/5Ns2Ep5zApTgEeMXNjSiE1p0ZcJsLnm34hGHc0rdbWM+rxVRJ1yET6IBLZA YL+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=DPorE9KZcNPg4WdfyIukNzavjt8jeCSzabQCG/Z5/sk=; b=l42EFkTZqjVUBbLJDlD7TxUR0KRnUOz45lg0cswT6h/5eH0H0u1GnFzHTuMPq+DvXB iqH/uwWa+Alk90FLXIdG9R+ZyTqY/U1Lca6TesyuS2pLToxPB/PC+a5EYfB+MBbCGPXA m2hMbJRvr5ov6DKymj6O2oQ6QDX+8loI5+pN9J2ra4eYeXHOExi3frCgb9Hzq0o1FhDC anGAkXo6iTaKscdyX+20ny11JJyMe97BuUKhMF/SLQ+agIUz5KPPp6mhupkOc6Ns7NoC EhZOfJEguDCxtjxcAt9aqtoxK0mZs6aMdSe7Fy2sapi6Kb1aw1vlzfj5CbToyLWsa1Ys +XAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jefaBmBe; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w12-20020a1709027b8c00b00178b7f8c5c5si4083600pll.598.2022.09.28.11.02.28; Wed, 28 Sep 2022 11:02:40 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jefaBmBe; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233060AbiI1Ryg (ORCPT + 59 others); Wed, 28 Sep 2022 13:54:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234713AbiI1RyK (ORCPT ); Wed, 28 Sep 2022 13:54:10 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89F69FF3DC for ; Wed, 28 Sep 2022 10:53:41 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id f20so18275780edf.6 for ; Wed, 28 Sep 2022 10:53:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=DPorE9KZcNPg4WdfyIukNzavjt8jeCSzabQCG/Z5/sk=; b=jefaBmBek4cjFK7DndB/j04WX2ZC/OF4tI0VSxXs5U+9OFoqF9TAjdQ6qtXr+Is1sc fzHRsZnQUKsyQKVrt7vuQ5KTMB/dU8+P6AFez8UVEu6Lse9KU1TMuxS5/RtvonI0kH++ 5nInalnD9/sZ+qpT4eZoAQIQsYbHtw5OGjVR6pqKpjNrC2vbetxmGHKn8/FQNt0cRpKX TNlqED2H1Wl1ObwJ8m/NFazGrkTQJDuu/eoDq5TCi3XWk6ibGLiBCGOKCD/MafLLWGcl e5iH24HVf8dpNrME+1aBaULFy7flfsUuoR0xEYjaqfNGeSNXdBu3ncYaF0hU6grlMgvj 04Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=DPorE9KZcNPg4WdfyIukNzavjt8jeCSzabQCG/Z5/sk=; b=ckrpJ7uvkrY5cJ8CuVfdF2axfUuJu5wtGzlFzS8Zl5NCMyRrJw3cIGvQlDwrb81+kD jHEC0uWEFMUY36wwQWBBKk60WB74hRZ5MAZFMaabMb93+BgugoGoyvbxlO7DYmvN/oQQ oyZadlumGK4ySfnkYRDtxYazCCAuvGowFF7fDJyjlpSaaEtvcL3DdJT3TDMQ0ZpOU5mv USpWewDydmx4YyF+j8aOWKOwPdr2GlArFIGJIWClcOwVn9ZhGwX8+zLbRtOvSaAoQ3HR B+EeVnKqxFInkuUwtreSeNKcKET2rmhlNmyPsXP5jwsDYiVIpnj+GpWCvCf1egaahW5J auZA== X-Gm-Message-State: ACrzQf00Gdv/rPYYdLwAMp0s5eIxeTVhQnZX/noOp3nq1wKsQzElk3wq SbxxxYgO15R/BthWT6XbCb8= X-Received: by 2002:a05:6402:518e:b0:452:49bc:179f with SMTP id q14-20020a056402518e00b0045249bc179fmr34905025edd.224.1664387619458; Wed, 28 Sep 2022 10:53:39 -0700 (PDT) Received: from [192.168.1.50] ([81.196.40.23]) by smtp.gmail.com with ESMTPSA id 18-20020a170906219200b0073de0506745sm2694467eju.197.2022.09.28.10.53.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Sep 2022 10:53:38 -0700 (PDT) Message-ID: Date: Wed, 28 Sep 2022 20:53:36 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH v2] wifi: rtl8xxxu: Support new chip RTL8188FU Content-Language: en-US To: Kalle Valo Cc: linux-wireless@vger.kernel.org, Jes Sorensen , chris.chiu@canonical.com References: <87bkr27amy.fsf@kernel.org> From: Bitterblue Smith In-Reply-To: <87bkr27amy.fsf@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,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 On 26/09/2022 12:22, Kalle Valo wrote: > Bitterblue Smith writes: > > [...] > >> +static struct rtl8xxxu_reg8val rtl8188f_mac_init_table[] = { > > [...] > >> +static struct rtl8xxxu_reg32val rtl8188fu_phy_init_table[] = { > > [...] > >> +static struct rtl8xxxu_reg32val rtl8188f_agc_table[] = { > > [...] > >> +static struct rtl8xxxu_rfregval rtl8188fu_radioa_init_table[] = { > > [...] > >> +static struct rtl8xxxu_rfregval rtl8188fu_cut_b_radioa_init_table[] = { > > Can these arrays be static const? > Only if I modify the functions rtl8xxxu_init_phy_regs and rtl8xxxu_init_phy_rf, and the struct rtl8xxxu_fileops. Otherwise the compiler complains about discarded const. Perhaps in a future patch? I implemented everything else you mentioned.