Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4818234yba; Tue, 30 Apr 2019 05:02:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVVThXlstetjLaRC/b+vLWWy1/sgFpXEBeph+rulL2PwGBWcHftJtC36tRYWJAIIHI6F2x X-Received: by 2002:a63:c601:: with SMTP id w1mr16503818pgg.190.1556625721309; Tue, 30 Apr 2019 05:02:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556625721; cv=none; d=google.com; s=arc-20160816; b=uDmqlX5hv4vQQL81pXqyG8gSlGc6E68ujXdnUAmxEZmxX6/XtVkzCDUxjK9cQa8CWM +kb1+7OURhXLOdXwyeuTk6RmphXbt+DZUnxA3F4p9Upv9Aw11FfGjNSQhFZSw+efM2YV QUIBWFjU0zrUZXKSlNH+Lz2JxKMJLLgglXSodNkiMWt1wFh1FGJ6Iq/PpHVu6HkxAH+1 9kGAk4wvUbRZMR4Uu7tHlYOQQAEKIFD5ulQyu9NoOLg9Gdj4L3MnUJCgnzLiAVqxCOk0 5r6YGFmgcc2I7hmg/YzLJShztqR8vXCad2VoitOPgoErGyUKeKsDZUERxq/sPzpNqYSp /vXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:dmarc-filter :dkim-signature:dkim-signature; bh=zQDUS94xkcvcAoLNSBqq9darl+37MgJMRpQ+V2cnUPU=; b=GfcV8NySToiUazRARGsAk2TRwKFgjbLiG0zYCSCcunwVCoXVDKghEC5aD09cqvwl8s 3m9030wUwnpFIoZvuT7Jt13ZjjClnOwD99pktXPd3ju7iF0Btw8bMBbOvdFq+bHfPCVG KNL62bcQpBW+wrRWG9M+VcvNLAt/EGpKrd9D7REj2lcQbDTb2MUqX00Nnfn2utlnZmbF tHf5yrf7W6DGfBw8yFOx65/iszSk/3GlZqZg6S0AINfJjkRlrzSoaOl0ffuZa98uNcVO rhjHEgPUH6/QzhsOfUgysY6QGrF3/CD1/arG0J9zP9gkXXz6VCj7d59zQDXIr/lJwvHO VDSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=NXM+1bI7; dkim=pass header.i=@codeaurora.org header.s=default header.b=NXM+1bI7; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k25si7842447pfa.273.2019.04.30.05.01.38; Tue, 30 Apr 2019 05:02:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=NXM+1bI7; dkim=pass header.i=@codeaurora.org header.s=default header.b=NXM+1bI7; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727381AbfD3MAg (ORCPT + 99 others); Tue, 30 Apr 2019 08:00:36 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:42096 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727282AbfD3MAf (ORCPT ); Tue, 30 Apr 2019 08:00:35 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id C7B1A60A44; Tue, 30 Apr 2019 12:00:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1556625634; bh=LbqOttWCDNF4UpbUtc7p4YaKq8WmZv2WxQcrvtfdo28=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=NXM+1bI7fQr5eYvjPLT91hjZIbyDlVmFVXKMOQ/ptuIV0rpkGQ2Av3oBtjcd9hbs9 doPvmt69iOeXwPv3O62eWvzpu1npAogUrXDqemsuV8OsJUJl5m7MpjjNdmbC84LyxD kCS3pZ2CLzt6NGFAhm4BpDfSt169PMCO70gKVWdQ= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from purkki.adurom.net (purkki.adurom.net [80.68.90.206]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 8FB9F6074F; Tue, 30 Apr 2019 12:00:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1556625634; bh=LbqOttWCDNF4UpbUtc7p4YaKq8WmZv2WxQcrvtfdo28=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=NXM+1bI7fQr5eYvjPLT91hjZIbyDlVmFVXKMOQ/ptuIV0rpkGQ2Av3oBtjcd9hbs9 doPvmt69iOeXwPv3O62eWvzpu1npAogUrXDqemsuV8OsJUJl5m7MpjjNdmbC84LyxD kCS3pZ2CLzt6NGFAhm4BpDfSt169PMCO70gKVWdQ= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 8FB9F6074F Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: Cc: , , , , , , , Subject: Re: [PATCH v9 09/14] rtw88: chip files References: <1555653004-1795-1-git-send-email-yhchuang@realtek.com> <1555653004-1795-10-git-send-email-yhchuang@realtek.com> <87d0l3rdpp.fsf@kamboji.qca.qualcomm.com> Date: Tue, 30 Apr 2019 15:00:29 +0300 In-Reply-To: <87d0l3rdpp.fsf@kamboji.qca.qualcomm.com> (Kalle Valo's message of "Tue, 30 Apr 2019 13:26:26 +0300") Message-ID: <87wojbwvmq.fsf@purkki.adurom.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Kalle Valo writes: > writes: > >> From: Yan-Hsuan Chuang >> >> chip files Realtek 802.11ac wireless network chips >> 8822B & 8822C series files >> >> Reviewed-by: Stanislaw Gruszka >> Signed-off-by: Yan-Hsuan Chuang > > [...] > >> +static struct rtw_pwr_seq_cmd trans_carddis_to_cardemu_8822b[] = { >> + {0x0086, >> + RTW_PWR_CUT_ALL_MSK, >> + RTW_PWR_INTF_SDIO_MSK, >> + RTW_PWR_ADDR_SDIO, >> + RTW_PWR_CMD_WRITE, BIT(0), 0}, > > I see lots of arrays like this which are not const. I think they should > be const. And I'm seeing even more of these while I review the driver. So basically all static variables should be const to make sure you don't accidentally between driver instances. IIRC there was something in cfg80211 API which prevent to use const (maybe the channels? can't remember now) but that's just an exception to the rule. -- Kalle Valo