Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1202504lqo; Fri, 17 May 2024 14:15:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVFtImmJXfMqg3C5XyJs1vzMc0Lk8Z93d+vo+wUM4TsVrgPhPqxwc91zbanPmiVWb8dZDtvWQZ5lqQ5NU9ifu2X+FHcLvlh1250SPPX9A== X-Google-Smtp-Source: AGHT+IG1l6f16ROHZrVA3L9RCYxddqpPtAwqJbST1V3fHpZBW+Rocjfi7AKnBMv5fRSpczd+jgF4 X-Received: by 2002:a17:902:ce01:b0:1e2:a61e:47fa with SMTP id d9443c01a7336-1f2ed2e43aemr4126715ad.15.1715980532690; Fri, 17 May 2024 14:15:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715980532; cv=pass; d=google.com; s=arc-20160816; b=LDzznYU6nQoJTsBmQmvNEs8lM9aWs++EGvXbdPkZoI4PeQ1fBf5XPvkmJffPNIIsL1 sBYanIKcqKfAdCYJmzCUnDgh6WepyuWkq8G5cioW5aqNRLy7D3blrntanNQWlEyVb1lW LRmLU+4E3GzdA6EB4zsyHVtgsKQ5RhKkI69TBzHFBxBYXynWb2why0kctsXyMHwdcvwB X4E9lFc1xYv6vlBQnm+GCIIaxT9ZwpDejM5Gg4ZWZ5gmRX6OR7hVEuCjfnBnzomeQau+ R+qg/V0BVd4kNGBMUU+p2NHXepLETvFKCmRUt9rWBwT7ukAWoCTxjyuqpDY47AIS9Q4+ VGJw== 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:from:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=7uhv22KFywiyksSinX4TQcoL6wKBthzAn+1mBtunJZw=; fh=GVnelbfE/v+aJ1A3hiU26TlnzEfbdVxjje3TgjMIPHs=; b=wMtthSLujlpZ7vlX7whQZIY6phN6r3sCu4WQT2mkZkUNcOLbSPwnjgupKuHsM3DsK7 MjhpvMzXQywgTx8k81hPk//K+Tvp0iIagQDpIDSZSrYd323RhNhb25aLs7McoxN3qOc+ ljToEf3a9WqvYrLepp73wjViUvMKu6dzi2iXMXiACFzJNFaD4uZuqG6mcceWlKkrJX8Y wfu16IsYw2YHzZflXkIKMnttEr54iobD4q2OPVillVh+8lnU7rs3GgD9Ec/xjHqobXyr J5TW9l4IutdV10QW7C6IitDCK5hn/zCTdCWFvOlb+9raabIBdvBFCWrHWQUnUkVh5NHX MHDw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HfMu6Hx6; 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-7803-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7803-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0bf313a1si24295745ad.325.2024.05.17.14.15.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 14:15:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7803-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HfMu6Hx6; 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-7803-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7803-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 4BC11B22273 for ; Fri, 17 May 2024 21:15:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 769422208F; Fri, 17 May 2024 21:15:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HfMu6Hx6" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (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 C18621CAA9 for ; Fri, 17 May 2024 21:15:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715980515; cv=none; b=mvICoiPbPwiGcMihawjXPyN6LJpdIVUwF4gRtByEWP5hFlzGtuLaEukjXu+KyA3W2sVqhsrS38ZuKOzw3fFSdH3dUfbhoaGKqIEnuCaHHaTp2wzGAAHCKguk+m6h7TCZM7tRvB6dR00vNVvHO3wp4zP8DeC1hUKwRkb6vK+7hC8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715980515; c=relaxed/simple; bh=N/36exLq4mBUZgL+uR2xVvYiOSDE2yGnebSwyFiSG/I=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=MELsX2pixilmItEEYcsqFoxYOXAhYL8DPK0owHgqhjNRnIFbuY+PzrzE0qv1FBvE0K0Bi3nK/O+3PWY18ECBjYvH50D9XomIOYah2nqZdjVy08ru+qn5ulHjrJOlpzvT1aLzSIfHHSsAaoNVph29QadplasYUT50vyHMgJyaDG4= 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=HfMu6Hx6; arc=none smtp.client-ip=209.85.221.47 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-f47.google.com with SMTP id ffacd0b85a97d-34eb52bfca3so516788f8f.0 for ; Fri, 17 May 2024 14:15:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715980512; x=1716585312; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=7uhv22KFywiyksSinX4TQcoL6wKBthzAn+1mBtunJZw=; b=HfMu6Hx6SHTRiDZMBAWMUiViHEJ08WbZ3k/z84MPXkfujzPiCI23eIhindTlaGx8qg XZGmn61KEwhc3YY2UfjpbsLK2gv92xUvHmFUlepjhVpMX3qjcIBfHYqqxQHgyAxCFFc1 gBTdfNe7Phg3RetlMOm0YHa8j5jbgbhgoIthXJD4tJJjJvprJDaXdmWbnSQSGhgiS8GN N2dCNVa+70BFDQHy8NjjNVQ79JfIhzmPn1bYlyVzWmhGXatq4GQOFbzm/sV7RR6/g/2H niU+vhu4+WmWPDft8jY07qh0UY/JBhG3BAkDhYhA/M7kkfXqBu8Q1lJyJscMZBjJL34s oWfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715980512; x=1716585312; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7uhv22KFywiyksSinX4TQcoL6wKBthzAn+1mBtunJZw=; b=rRccWa+US/dRiykCXQRkbEhNDuuHsRsuFKKYTeHx9AlA9rcSxBm7RDNZpcLs6PJhFD 6PVUBhJPODZiFR+OaJOUBNWzOAozAoW0CDPDvvpzEhPZ4DaqTDxeygbJRc8LyGna59ON H/SSPoSeub9piFyjAr9OeiNPni8fehldFms+PTazXEsJeVjnFEgAOZYQVt9OT6I/kcen ME1/cdSPr79b8xU/voHxmz9XMI+1v4bp7leJStCD9N7Vi53HAjdImGXDfZqU8ZMRTT0P 9SPvrVpweJ6898Iy2NRErliPqwHvg36E33Ye3AfKGPUgJCJIGMb9PJ4U1vxFAM2zqy17 OcVA== X-Gm-Message-State: AOJu0YxiTuyOBYUHGSdbMgaRsJpjjoATnV0Hf/S7wuXmNBrWDFm0Qxvg ueKPCXkBLPv4tRZjQtZS3grqftgfAiDvpjsc3jOdMVlYd9Kdo20C4yeBop9A X-Received: by 2002:a5d:6711:0:b0:352:2700:3f3b with SMTP id ffacd0b85a97d-35227004083mr3669299f8f.34.1715980511975; Fri, 17 May 2024 14:15:11 -0700 (PDT) Received: from [192.168.1.50] ([79.113.154.240]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502b79bda6sm22689773f8f.3.2024.05.17.14.15.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 May 2024 14:15:11 -0700 (PDT) Message-ID: <9e515071-e77e-42ca-a5d5-59d41e43c707@gmail.com> Date: Sat, 18 May 2024 00:15:10 +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: [PATCH v6 02/11] wifi: rtlwifi: Add new members to struct rtl_priv for RTL8192DU From: Bitterblue Smith To: "linux-wireless@vger.kernel.org" Cc: Ping-Ke Shih , Larry Finger , Stefan Lippers-Hollmann , Christian Hewitt References: <0c22c048-c372-4596-b2c6-612c6ec7ab77@gmail.com> Content-Language: en-US In-Reply-To: <0c22c048-c372-4596-b2c6-612c6ec7ab77@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit These are needed for the dual MAC version of RTL8192DU. The two mutexes are used to avoid concurrent access to the hardware from the two USB interfaces. The two arrays are filled by one interface during LC calibration and accessed by the other interface during channel switching. Signed-off-by: Bitterblue Smith --- v6: - Add more information to the commit message. v5: - Patch is new in v5. --- drivers/net/wireless/realtek/rtlwifi/wifi.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/wireless/realtek/rtlwifi/wifi.h b/drivers/net/wireless/realtek/rtlwifi/wifi.h index 442419568734..6a8212fd36af 100644 --- a/drivers/net/wireless/realtek/rtlwifi/wifi.h +++ b/drivers/net/wireless/realtek/rtlwifi/wifi.h @@ -2746,6 +2746,12 @@ struct rtl_priv { */ bool use_new_trx_flow; + /* For dual MAC RTL8192DU, things shared by the 2 USB interfaces */ + u32 *curveindex_2g; + u32 *curveindex_5g; + struct mutex *mutex_for_power_on_off; /* for power on/off */ + struct mutex *mutex_for_hw_init; /* for hardware init */ + #ifdef CONFIG_PM struct wiphy_wowlan_support wowlan; #endif -- 2.44.0