Received: by 2002:ab2:5c0e:0:b0:1ef:a325:1205 with SMTP id i14csp37743lqk; Wed, 13 Mar 2024 15:40:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWvM9j4ERYIzkrJnJ5AWyUMgiqyy99cv/1t6SaTrcShMMdeFVVBx/bB98SAVVlzVIKOlZDL8XWhmef5usm5so5SqJStLtwJEuWNe29XTw== X-Google-Smtp-Source: AGHT+IG0hwRsbboz5GkyueS9hBWhj2c9FktGckqnO2Nlqyip6nZfZBIGXOKDTGwB7hNq5uVwHOqX X-Received: by 2002:a17:907:a644:b0:a46:206d:369b with SMTP id vu4-20020a170907a64400b00a46206d369bmr7831064ejc.28.1710369631363; Wed, 13 Mar 2024 15:40:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710369631; cv=pass; d=google.com; s=arc-20160816; b=jpl+wTmB+FLY5cdaB4VV6irTP+qdkoBhpowu9Sdpdc0Sm0ZjIYXvekwgJJ0a2jo0yp tA5Q4NQkl+zofkITE0IL9w1zipQvic7qSbr9VTiDKHESP0/Qg/ZqvJBjZGFlD76tAn0I oWaf7VsLrxXKGSziVA24e9j8tV7PC8hreYa8KPGnpHtNY8U+85P22XdDU1yDhBNAPwlV Bw1ofpJRRVl7GEioX8ZckCXyBl+OX++ORi+3d+Mz1RAAgWfLzDlc206+LCpXL7ZJQPfE H5EeDKJTOnNFX9/yB4vYXCRTJTJck3N41fyS7hEnyRy3H9LNGOW4vG0+C43Aj8DmV6wM ulNw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=ueZz7929FxoEprIDsqieXIupVf3U6O8ESKwYDnzmPYw=; fh=0WBrceNo04vx660aFkQBmsef9UeG+M9qrFk1L+RUTvk=; b=MGPksLt38/08QoQvfvF3GbEXQjoFH4iinHLrd3K2oM9Rtjb7/2BsDayeV0utZ6rA+Z 65HGhjc9pOGk14hn7NvsMQqJiDfxt+jS62fUMI9+YT1GfwTPWMwU7NhReXsg9T6IRGCx pL1jpS5LGuMHsX2kj3f4a9kWu9iRtMKH5kfpZ5knGEbivPmsazDyScZ8dyOk1iM7kqRt 6B5vcq5jXpL9L/UkUANZdS0x0t2SXFXTeibm5CsA3Zdw+PzmzW4GfdQRL90XXG25AybU HDXhOVyL2lC4iE2OqrIG+rzmDH5FjmJ0I0tUhOAsOGI8cBeuo6pnm9ru4iz/1VKxiEAq jqxw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OCSJ8rau; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-wireless+bounces-4706-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4706-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id m22-20020a17090607d600b00a463625f8a2si90234ejc.298.2024.03.13.15.40.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 15:40:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4706-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OCSJ8rau; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-wireless+bounces-4706-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4706-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1582F1F23766 for ; Wed, 13 Mar 2024 22:40:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A2C2E59B4B; Wed, 13 Mar 2024 22:40:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="OCSJ8rau" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EBE705490C for ; Wed, 13 Mar 2024 22:40:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710369626; cv=none; b=B+MwgZNyxKzBt2q6NlwkuViD/4XX9Z7mCiJlRfklL/iG8AMrnZ6mWbM+E17PvCDg8aAV30erXbHWOiyBpeVt+N3xpuurGkkZXXCYhdCpgvECMp/p51cwzz6Y/ssaQjEZiHyu2sjE+NV7UjF99mOeAWvD+69gyTf7VJFnwyG3Vfg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710369626; c=relaxed/simple; bh=206kvk4cDvyrs+OwjczxwOLRRngcHHv6jzVaN1MY0po=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=VXSUtUKtApvo0zai3HweA/jP1BY7RDbHbFi8fRTl7EKtQ2F/pa8OSuDyYvmsCAKQhxY3qioJHQbrf1qaCR1yXHD6I5y6CsiboFrj8YMr5wqPbUpm1duTA4jSGRXBHYHPufzTUPgtlHoM+8z4xkkWH0RJgbdZtcWpUmllVddCpxY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=OCSJ8rau; arc=none smtp.client-ip=209.85.221.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-33e17342ea7so180304f8f.2 for ; Wed, 13 Mar 2024 15:40:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710369623; x=1710974423; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=ueZz7929FxoEprIDsqieXIupVf3U6O8ESKwYDnzmPYw=; b=OCSJ8rauwK/MuooV2+sF4Zi/pNASgUMJxcWWfEi3fDL20RM97cijiJyAKTZ/ND15K0 fr8orE/Vl5cm9qPcO8sdMPkcoJhQGwQ8/GLRJB86nULdcqh+lsRihsQe8F7IGpWtBwor MHqNg8i2SsXi0sIVAKnRERV0sFpkjbHrNkCNphlnhgTDJfciVfZdsTCU273JBWI1y7Lu I8RmuDZBd08fOSyPAMlSDMp8AlMrxy32aPrDW0LsylxOROgMkKqRMgSAz5PIcGwjd3R0 Y5O+O9sh8f+23Srowt7vFp9RrjKt/1UE8zcPQEV1fRjtBi6kgaWvC+c2GhtK1CgZlLKB u2Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710369623; x=1710974423; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ueZz7929FxoEprIDsqieXIupVf3U6O8ESKwYDnzmPYw=; b=jDHh+lMFY994emDZxK0IW/0Nu/F8diKsam+e3+GDiSTAfSrGJwfGEgb6L676ICqbR9 RLMGZwhpyN8cqt0nrxAtgUw7wnvdD2yUkHoFYFDfsD8suwxg5/XzPDayRdsdueT+Wa9q Z/rST7oU9h+lcBwi4sVL15yGyKAeYy7KGFL5QT3TU3VmC8llJG1q53Y0IItSN5q0R4wU ubr2yHLwBIo8yNMDWzZGXsno5nDGDBGdiR1ebfXqb1S3HqQ5aXzDThT8SJwQmo6ABmDh 870sck+zjNWOTL4w26L2zFAvfst+2kHRw2v4/SY2jPmEhyZqfTwZQZI984E5aO5AmZ8n Dz7Q== X-Forwarded-Encrypted: i=1; AJvYcCWsFZPLyZudgG4FEbAbBoHN9E/yQnu+hsGYdQZOIwngO7l/zmN715yXWqBu//NQbAIj6JeQAFY86SBQIOf7GmMy1RMpV8NQOi7o4l6zqNM= X-Gm-Message-State: AOJu0Yx+HEjiLGUi/Rzo2adkIT6cr4945kOl2Jc9KBu1Jq3gcUfKHvIT WSnZBJ0JP0jdg0bJQnXkixlPWVN9mTXMrS+VrscoxaBiX67oCnUsYxVZ1VZ/ X-Received: by 2002:adf:e885:0:b0:33e:c271:8ca3 with SMTP id d5-20020adfe885000000b0033ec2718ca3mr694wrm.10.1710369623328; Wed, 13 Mar 2024 15:40:23 -0700 (PDT) Received: from [192.168.1.50] ([79.119.240.211]) by smtp.gmail.com with ESMTPSA id bu29-20020a056000079d00b0033e456f6e7csm167144wrb.1.2024.03.13.15.40.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Mar 2024 15:40:23 -0700 (PDT) Message-ID: <198972bc-bed3-449c-b879-716d59f65793@gmail.com> Date: Thu, 14 Mar 2024 00:40:21 +0200 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Bitterblue Smith Subject: Re: [PATCH 1/3] wifi: rtlwifi: Move code from rtl8192de to rtl8192d-common To: Ping-Ke Shih , "linux-wireless@vger.kernel.org" Cc: "Larry.Finger@lwfinger.net" , "s.l-h@gmx.de" , "chewitt@libreelec.tv" References: <19743f05-5c95-41ad-bdb9-3694e5d2bb41@gmail.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 13/03/2024 05:53, Ping-Ke Shih wrote: > On Wed, 2024-03-13 at 01:21 +0200, Bitterblue Smith wrote: > >> > >> rtl92d_dm_check_txpower_tracking_thermal_meter() is actually >> unused in rtl8192de. Should I just delete it? >> >> I don't remember why I made it static, but that introduced >> a warning. > > > I feel we can set rtlpriv->dm.txpower_tracking = false, and then uncomment > /* rtl92d_dm_check_txpower_tracking_thermal_meter(hw); */ > That sounds good. > > More, this function appears twice: > > $ git grep rtl92d_dm_check_txpower_tracking_thermal_meter > rtl8192de/dm.c:static void rtl92d_dm_check_txpower_tracking_thermal_meter(struct ieee80211_hw *hw) > rtl8192de/dm.c: /* rtl92d_dm_check_txpower_tracking_thermal_meter(hw); */ > rtl8192du/dm.c:void rtl92d_dm_check_txpower_tracking_thermal_meter(struct ieee80211_hw *hw) > rtl8192du/dm.c: rtl92d_dm_check_txpower_tracking_thermal_meter(hw); > > I suppose you should move rtl92d_dm_check_txpower_tracking_thermal_meter() > to dm_common.c. > I didn't move the TX power tracking to dm_common.c because it calls two functions which are different in the PCI driver and the out-of-tree USB driver. (The USB driver is a few years newer.) * rtl92d_phy_lc_calibrate() * rtl92d_phy_iq_calibrate() I suppose if rtl92d_dm_check_txpower_tracking_thermal_meter() takes two function pointers, it can be moved: void rtl92d_dm_check_txpower_tracking_thermal_meter(struct ieee80211_hw *hw, void (*lc_calibrate)(struct ieee80211_hw *hw), void (*iq_calibrate)(struct ieee80211_hw *hw)) Or, struct rtl_hal_ops already has phy_lc_calibrate member. I could add phy_iq_calibrate too.