Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2431549lqt; Mon, 22 Apr 2024 10:25:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUhVrinBXVTemCaj6PtkuxvO+ncf/9/nRpp72jWZbocwan4SGyOnn8E0vi4ihwkUi17oQRvbYS2PRfxHrAJF7GRRQhkYYJcO56bWYvhMw== X-Google-Smtp-Source: AGHT+IGign5xeRlOvEDNggwZWMcdxSMsxgUT7nZNcFbpo6tnyCm6fHklr6M7ZR2mWqoCCovgwhrS X-Received: by 2002:a17:906:34c5:b0:a55:428d:5de9 with SMTP id h5-20020a17090634c500b00a55428d5de9mr6512959ejb.28.1713806711978; Mon, 22 Apr 2024 10:25:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713806711; cv=pass; d=google.com; s=arc-20160816; b=zWfsxH6PGIulsJh7xP8gYDOim859eculLA4yD6JzjtCfTBLeOddQhHp2MeH8TG6Iys wgAOmwe4LjUhEGHeV+CrPxffZVhI7q+02+biGfJs5vbuABVmqXGLIgiddqN3adlsx/vQ YbE3de4owvPz8E7mOmQOysSu8cf8AxKAA1NdzoE15/j7s7ow8BZ+N223ooMmqaiTAncB 0I1gdLtyvAo4kLniZ/JG5j0xz0Y2yp3QBv6CNk3csy4Me2BXKRlxpQSUWB8YWFxQOjeU YKEt36GkzOoQA2u9lx3QsxQGWD77WBQxwna0kJAa2nAsvTw/MryqXnA9/38BczlwV1BK smMQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=FmiBryrvqKrNbkCzf4o4d6sE0hBrYpo3F79VTyWBcC4=; fh=XTFZtfprrPS/odPlsflsV68JiRDj7Ezs4cRwG0jvoWU=; b=iK7hyhJ2gixy7FMyP8Ma6OOs3Pf6wKE5FQNn2iDssx2J8ab2cArdLMWcZiFATuyd4p LwGKj7t5OqnjaArPDQqGw+1Y8qOHOs0Jxyp0KrIFkXLBRQIrhpOhgujRc/wH5y+RtKem 0B6lt/vyg/lXvoqA5dlVundFnXntpcLV27FIP73AcqV73LcrWi/khhxn07lBndLljEmo die7XbiaNA799m2cdDZO+DA7W6dir6AYHmPZ/dDG3OCUZfh6aSBCfEgyY+426n6vQMtI KxCt8wTjKq3QfseLMhvmMRZ+mm/G1iKNobOtyeiMAYQtBOTvyNS3WaQ5dycEKsChPAty WHOQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=D4toDFpL; 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-6680-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6680-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 bw17-20020a170906c1d100b00a474e6a5726si5967248ejb.574.2024.04.22.10.25.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 10:25:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6680-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=D4toDFpL; 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-6680-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6680-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 A62391F2246F for ; Mon, 22 Apr 2024 17:25:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 030221534EF; Mon, 22 Apr 2024 17:25:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="D4toDFpL" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (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 5A1CD146A6A for ; Mon, 22 Apr 2024 17:25:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713806707; cv=none; b=XQWRyBXu/oPcmrQRqLri2FGy1akiQ2gJXj0tBifwiX9hR2Vaso6LaxZ1LCEX3TZPHcmnkE7R8Z0iriPLa3Zi/NL7nvUax5r1SWai5JhS31+z1TetY0XYYVNY5EtXY2bQRxJtR4DyxNYT190Yk/MXRBclml2UsDLbTEv+0j1aRnw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713806707; c=relaxed/simple; bh=7eJ7TQkbfD3YTD4LF10qmURKt0hnPyOFJ7iMKFqBwuo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=uKtkN6hJjdguhnIbsfO2ajInkT/HaJAnsp7WU0LHb/dNLFZIKBe5F+wytE4bODK2/D+cnTXBjqdSOJ2jEhiB0uuZTJkr4Z0186fOKyYvoTy7UN2DiNnTLs4GCTOWVMfCLauV4BlItZzX6SX+7yvYf0MnCQhU/6cHUsdr8G9VFT8= 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=D4toDFpL; arc=none smtp.client-ip=209.85.218.53 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-ej1-f53.google.com with SMTP id a640c23a62f3a-a52aa665747so568945666b.2 for ; Mon, 22 Apr 2024 10:25:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713806705; x=1714411505; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=FmiBryrvqKrNbkCzf4o4d6sE0hBrYpo3F79VTyWBcC4=; b=D4toDFpLCQ+4Q1Dnkq+DpPMYiLVcnK45tRn7FfXrnuThTTKI4bd4d772iRmQE4YbMx 4AV5Owj/HLJq4dQe+yNq0ULYwESB7cBspIE2DBoBq2SnOy1B6tfwnixWRdQkL8HyNVlG bprro5Q/bXBs/o1ACDQr3r5LL2qbaaupipfjqpeWMosKCGNP78+8YS2VMAWXb+K+uXwO vgnL7aefS7r7kZQdNqgIkQZHt8ALpRMFjvcdAB5pmBTVDfLxXLm6+7wgoiKHVfjhHTY8 DwrlrwxFTIbLNfTBwZmNP/roYn8Q/xwJwCLyRlT+xta2PFo6g0G43ake5WntvK694P4y LeCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713806705; x=1714411505; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FmiBryrvqKrNbkCzf4o4d6sE0hBrYpo3F79VTyWBcC4=; b=MpHwAKAYqVRSDgLxtw3c93nAtYsFHm+3l7Sj97bfsx2ppL/yaB9VUpLHJWUIqKrFgl NaOn2ngwSftGj2Nu0BLIfmA03GJN0P+5/sm9AiIOin8wHrzVm+kjK/fnKaixjNfwjhTm EJLz30KOVPOjET0vdlA47xL2wSEmylfC9F2nLPSHo4aE/9iv+hDSaJaI6EPzkPZhCdY4 OpdYu41iAZiN9LVMnDYZSvACpmKXkNiBGEJk/6CRPrzZwCoNW2ngbQrZMQQxduABWzse AZQmZ7jcqdkrX+eyqMwUBRpgGKXSvKiBCd95+GOIHo+Iy7NFuKpAw6eYauqTviyEfzbm RqRA== X-Forwarded-Encrypted: i=1; AJvYcCWECcuHSYkwax8Sm5lW34sUpf9uLVJd7MSXBuWjBlK3imriWlTZK8hhbsHOGVACh9Yue5ZwdD3QQvynP5NuKwovYiOiqg56wmq6fAQ16Vk= X-Gm-Message-State: AOJu0YxVkDtGJvgEqZt6W8B66wtuM2raGlPPXAbaYkVR9MCcq2sHODA/ P+F0PB4AQDE8u8eDcHdKTpLtDF4zujMxdEmWOrnKDraKdk8X0UDJ X-Received: by 2002:a17:906:c144:b0:a55:ac00:63f7 with SMTP id dp4-20020a170906c14400b00a55ac0063f7mr3805679ejc.15.1713806704434; Mon, 22 Apr 2024 10:25:04 -0700 (PDT) Received: from [192.168.1.50] ([79.113.154.240]) by smtp.gmail.com with ESMTPSA id qs29-20020a170906459d00b00a5197fa2970sm5976593ejc.25.2024.04.22.10.25.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 Apr 2024 10:25:04 -0700 (PDT) Message-ID: <509ded5b-6b31-4750-9f87-4d080ea4f71a@gmail.com> Date: Mon, 22 Apr 2024 20:25:03 +0300 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 4/6] wifi: rtlwifi: Move code from rtl8192de to rtl8192d-common To: Ping-Ke Shih , "linux-wireless@vger.kernel.org" Cc: Larry Finger , Stefan Lippers-Hollmann , Christian Hewitt References: <9d54a192-d389-4a56-9286-2e7721cbbc27@gmail.com> <459a193c-ce2e-4b89-827c-ff6721c470e0@gmail.com> <4e7bb78f7dad4383bc98f4a94a2c9b48@realtek.com> Content-Language: en-US From: Bitterblue Smith In-Reply-To: <4e7bb78f7dad4383bc98f4a94a2c9b48@realtek.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 22/04/2024 05:55, Ping-Ke Shih wrote: > Bitterblue Smith wrote: >> Create the new module rtl8192d-common and move some code into it from >> rtl8192de. Now the rtl8192de driver (PCI) and the new rtl8192du driver >> (USB) can share some of the code. >> >> This is mostly the code that required little effort to make it >> shareable. There are a few more functions which they could share, with >> more changes. >> >> Add phy_iq_calibrate member to struct rtl_hal_ops to allow moving the >> TX power tracking code from dm.c. >> >> The other changes in this patch are adjusting whitespace, renaming some >> functions, making some arrays const, and making checkpatch.pl less >> unhappy. >> >> rtl8192de is compile-tested only. rtl8192d-common is tested with the >> new rtl8192du driver. >> >> Signed-off-by: Bitterblue Smith > > [..] > >> +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8192d/main.c >> @@ -0,0 +1,9 @@ >> +// SPDX-License-Identifier: GPL-2.0 >> +/* Copyright(c) 2009-2012 Realtek Corporation.*/ >> + >> +#include "../wifi.h" >> +#include >> + >> +MODULE_AUTHOR("Realtek WlanFAE "); >> +MODULE_LICENSE("GPL"); >> +MODULE_DESCRIPTION("Realtek 8192D 802.11an common routines"); > > Not sure why you emphasize '802.11an' instead of just '802.11n'. > > I saw somewhere a dual-band chip described as 802.11an. It seemed like a good idea. Should I change it?