Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp89275ybi; Thu, 11 Jul 2019 15:18:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxd2XlbLqFX7Zq/mT7yqxTZG5jKW8RJrQ3Fpzq+Mkuf7LOJw42MWE8GSfwzm8evHzx4ji1G X-Received: by 2002:a17:902:f095:: with SMTP id go21mr7414806plb.58.1562883515094; Thu, 11 Jul 2019 15:18:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562883515; cv=none; d=google.com; s=arc-20160816; b=knps/x9WzQ7bRBihhDCTtztTt+0pPcWQwCSEwGz6j8yqw+AbVcRNjW4xGOS4tef6e0 YAOlanVQfTJep+l3khRQGEDBe9LgBg8BaX8byusU/BSXNZ0pxaOv8K/vQBus3NKi5rdN 1jQKySyh0Axr63c85L8CIGf/roZEuiGzHkxuySwYuhDJmJt+b28oVI3h47Kh7iJlsqer eEEeZgX0Xav6FbBTIz1EgRCcQ7C2mBgiWAGIcp+sXmQ+3DQG36DPPscxd8iyOUxsPO9G CmaN/r45rSZ9ECak7iarTbSw+OpFHXBAAdVlpKTLkGvjCmawwVxdgb9IwbZMYzP7dvcR 4/zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=TD2ywJIPeinUw5E9fc6j8ZzoAMc7kstGSVhGV8PrPAU=; b=Eq1uE+xyv4bS8dLF+bNoBBr5YHtaAlNnS7ewZ9EBuPn0ivOVuXaqe5CieR5KP7u6dk bL/uBoXjEKIlF1QlvppTJZEtbGm3XeXIHeZSKplytyt/bJYAM0ZSwtzIzrZuje7n7id4 HQEJARGxxIyOwhu00twariytxVdeuV/11R0hg0/piDsjGMp0ilnpGcX3KIu9taYoZlak vHcfG3LEkBGmemNj9zj/MjdC0jL1P/A3xANypJuGYeCi7Zd3UWxIH6F/fetnMMq54ABH Hm089FDqcuOM7nHdmiwqLt3kAy/6ga6OTxUQhr25+iUJPIiietcJ8PakL5aCJ4hhbu9I IfPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=DdpJQGZw; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q32si6224857pjc.2.2019.07.11.15.18.04; Thu, 11 Jul 2019 15:18:35 -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=@chromium.org header.s=google header.b=DdpJQGZw; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728827AbfGKWFx (ORCPT + 99 others); Thu, 11 Jul 2019 18:05:53 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:33450 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726181AbfGKWFx (ORCPT ); Thu, 11 Jul 2019 18:05:53 -0400 Received: by mail-lj1-f193.google.com with SMTP id h10so7354469ljg.0 for ; Thu, 11 Jul 2019 15:05:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TD2ywJIPeinUw5E9fc6j8ZzoAMc7kstGSVhGV8PrPAU=; b=DdpJQGZwMGFOHsPWBkpYWS/ovNyi70mFYHpyUvM4lg79BuSR5EhbQtAxS+zVdrMz99 EhMB7u8hzLuN5YzsA8SuTtMCOsWwd2RLZgTNHFV4QqYl5KtCKqjGkGkt6hGWiJ2hsEaN lX4YDRHaGijPIUffJhU20aeIp0PM9E0+MvL8Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TD2ywJIPeinUw5E9fc6j8ZzoAMc7kstGSVhGV8PrPAU=; b=GSNYL6pxQmRuEsgy3ap+yDVX0BUukx2u5gmqM/VLtgAvFYc2VbvxPXan/JuxGsEA6V B+y4kpuvH/NT3Z9mSt6OhtG3N+dvjQf6Dczby4LoMyPU3XUZSsRGsmVEOpG8+cW5G1w5 FTjIg09PyE84SN0PrB+gjHf3ZTF1m7tePgoRoZgxtabD8SJhhG7Uh7rZ5QUEk1Qu5DmE y4Bdc2J5X7muBWkr7pNP+inmYDfR6/b6haggQM7zSdzEi56vd29Ss7SQw+M8HfOrTD6n b2RDzAA1ul2yhQn3T2Gop6BIMK6hrPvwpuEy2QmlWg0YBTqbxUfYzmV25duus31BeNYh xvNQ== X-Gm-Message-State: APjAAAU9QfRikgIoLXFxZ56OxakDOppjOhdOHSHUaw0gZGB2vi2NaVHZ FjFTgEskH/z5QwlGtoxpDAUk3RJGShk= X-Received: by 2002:a2e:9758:: with SMTP id f24mr3921170ljj.58.1562882750674; Thu, 11 Jul 2019 15:05:50 -0700 (PDT) Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com. [209.85.208.177]) by smtp.gmail.com with ESMTPSA id u13sm873328lfu.37.2019.07.11.15.05.49 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Thu, 11 Jul 2019 15:05:49 -0700 (PDT) Received: by mail-lj1-f177.google.com with SMTP id h10so7354402ljg.0 for ; Thu, 11 Jul 2019 15:05:49 -0700 (PDT) X-Received: by 2002:a2e:2b01:: with SMTP id q1mr3797286lje.27.1562882749331; Thu, 11 Jul 2019 15:05:49 -0700 (PDT) MIME-Version: 1.0 References: <1559116487-5244-1-git-send-email-yhchuang@realtek.com> <1559116487-5244-10-git-send-email-yhchuang@realtek.com> In-Reply-To: <1559116487-5244-10-git-send-email-yhchuang@realtek.com> From: Brian Norris Date: Thu, 11 Jul 2019 15:05:37 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 09/11] rtw88: remove all RTW_MAX_POWER_INDEX macro To: Tony Chuang Cc: Kalle Valo , linux-wireless Content-Type: text/plain; charset="UTF-8" Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org I realize this is already upstream, but I thought I'd ask here, since I was going back and reviewing some of this: On Wed, May 29, 2019 at 12:55 AM wrote: > > From: Tzu-En Huang > > Since this macro definition has different values in different chipset, > the current defined macro value is for 8822b. This will cause the > settings of 8822c be incorrect. ^^ Is this actually correct, that 8822b was correct and 8822c was wrong? Because I see RTW_MAX_POWER_INDEX used to be defined as 0x7f, and rtw8822c_hw_spec.max_power_index also appears to be 0x7f. Which would sound like 8822b (*b*, not c) was wrong, as it lists 0x3f. Anyway, I'm going to assume you got the change right, and you just mis-spoke in the description. Regards, Brian > Remove RTW_MAX_POWER_INDEX and use max_power_index in struct rtw_chip_info > to make sure the value of different chipset is right. > > Signed-off-by: Tzu-En Huang > Signed-off-by: Yan-Hsuan Chuang