Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp485442pxj; Fri, 14 May 2021 08:13:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxp9v+fOMRPkAbTSy+iqmTkMD0HCAqMEhuY1p3gEjx9yi3beqjAJ7pSYRc6ZVk60HUEFnBS X-Received: by 2002:a6b:14d2:: with SMTP id 201mr34891548iou.15.1621005202036; Fri, 14 May 2021 08:13:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621005202; cv=none; d=google.com; s=arc-20160816; b=kPSdoGIjdta+Opjh5u399smN5E7lesWUgfTZxwUzVO5rFFPPJhLEISOsPsU5czfGMt okiGP9IqSYoZgjUDlFBNQ7GQi42YKNmliLsUQlL/FbhfcGTdcJjPeZRSqBzi9OlcdXBF foRCnCd1KyHGr5GUL28GSOahAzwyP9r80kamH6ObmP+/pyG83YEN7MjYTY3UBYI5zURh SobLw9HCuj53pmt971/zNMeWFp2Ot+5bLQBvdJ3jz9vzSrn9dguNY/GZF5aqCB6GxnVh Q+upas8m5d1poVneNHOQ608fExvEFQaqnznWZ2Jt7s4QL77n8eX1r1ATDTvvR0Hsp8YL EbGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=BpfRmI9P4vpehWleRJqjHOmgGFaPys7I5ZwjGCPC8aQ=; b=ijzLDTNqYEJevpm9UEMu87HKR9oN02bHlWUIrpXStdEYo0dkmH1cGt+/O6mr72yllm NjZSKXC87CyjT08zTdw0PRbg8JA/A9BQlODYEL0yMP0qDcFtURpxhPyfBNDltY55lCcN feM/FEHYIWTx9jDB7qEMUtPVtPzdU89R0ZUKnbNSv5wj+JjNeHCLxYV7MQd01S+oSlqA TCk7DsUmwrrYO7YgyRTUzP8pg741opll2lS6lHA/HmE9xPz/7+/I4+lYQNAZP8x+quPU 82DKo+tw1nlwhTbx2sUhB660vAxrcJ+m7VstLEXqzcxrG09bYsFJe/e8/WY09I5G5Xwz HNUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YNkeGtBM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m20si9262179jat.70.2021.05.14.08.13.05; Fri, 14 May 2021 08:13:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YNkeGtBM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231752AbhENJQ7 (ORCPT + 99 others); Fri, 14 May 2021 05:16:59 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:28569 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230000AbhENJQ6 (ORCPT ); Fri, 14 May 2021 05:16:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1620983747; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BpfRmI9P4vpehWleRJqjHOmgGFaPys7I5ZwjGCPC8aQ=; b=YNkeGtBM3ndvmabk1nS8C8yWsI1E1/DoOe/Ew1fxNxGt6trbknAlu06o4+bfxy0t/+i3Yp yTHEgJ82GRB0AgJ6On9yPMuvE4aR014VWQuhUAy+gFr2ORk1toPhRyZJZ64KnGrHyfo3yC fQOy5AxZ8zJhnHRAQtlg3cKHdoy+ZP8= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-5-LP58ELdcOIeP_BQcXmfhsA-1; Fri, 14 May 2021 05:15:45 -0400 X-MC-Unique: LP58ELdcOIeP_BQcXmfhsA-1 Received: by mail-ed1-f69.google.com with SMTP id y15-20020aa7d50f0000b02903885ee98723so15985845edq.16 for ; Fri, 14 May 2021 02:15:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=BpfRmI9P4vpehWleRJqjHOmgGFaPys7I5ZwjGCPC8aQ=; b=GKz4TcMD2vnA1Qma2pS95Y0jJxl0AUCgDXJnGBu9iT48htKHCiXHR7oXsRzhdiNa7D vaWjMpxUZNdFQmGfmrRkq6Q/zznK7WstMRmPqhPicpQ+NDroCZsizRn9zavijGlXHlWe trfwliEiDODg3qSarsqRaGE/KjeAcyflTm1um9gYOuekvE7H982vPILk+oPe3d/cCjnw hj0TpCaYbz0OJDWmpzIi+ZRf9EkKlrQXnfbJUec2MKFTcsrlCLwOU3uJQYCJSO6f+Cfa 4hAqcPJV/vRDQND1w2BiHDREJSoosi5csbHI0III04PufbNr/lqIRbYsceGZXVyS3yz4 JtJQ== X-Gm-Message-State: AOAM5325hGJ1d1h7bGIFoyb+/z8nE50LwNN1pnKGl4NwgtDsMhQl+H+K 3gqbFY+ozCjM7kx7RR8wZNiJQS0L2era6LWQFLhhjonF3wDtHcIa3C1pBwj80gp9XIF+d4MrxA2 uKUdFhJ/jx40PLLjy0T45IIy/hrCLV71YSGhruBa6wmNDMKZe5R0f6OTjMq2NhmIWlvejYv8igj AK X-Received: by 2002:aa7:cb92:: with SMTP id r18mr25003693edt.246.1620983743849; Fri, 14 May 2021 02:15:43 -0700 (PDT) X-Received: by 2002:aa7:cb92:: with SMTP id r18mr25003668edt.246.1620983743639; Fri, 14 May 2021 02:15:43 -0700 (PDT) Received: from x1.localdomain (2001-1c00-0c1e-bf00-1054-9d19-e0f0-8214.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:1054:9d19:e0f0:8214]) by smtp.gmail.com with ESMTPSA id nd36sm3138539ejc.21.2021.05.14.02.15.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 May 2021 02:15:43 -0700 (PDT) Subject: Re: staging: rtl8723bs: questions on TODO list To: Fabio Aiuto , gregkh@linuxfoundation.org, Larry.Finger@lwfinger.net, youling 257 Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org References: <20210514083856.GA13800@agape.jhs> From: Hans de Goede Message-ID: <85289dbc-e986-9beb-f7d6-eca9e8750c8a@redhat.com> Date: Fri, 14 May 2021 11:15:42 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210514083856.GA13800@agape.jhs> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Fabio, On 5/14/21 10:38 AM, Fabio Aiuto wrote: > Hello all, > > I'd like to have some clarifications about rtl8723bs driver. > In order to make this driver ready for moving out of staging > I would like to know: > > - find and remove remaining code valid only for 5 GHz. Most of the obvious > ones have been removed, but things like channel > 14 still exist. > > is it possible to remove all 5g code, even the one related to power > regulation when on band 5g? As far as I know about this card is that > it doesn't support 5g, so may I just delete all 5g code or there are some > constraints I'd take care of? These cards are 2.4G only so any code of which you are sure it is for 5G only can be removed. > - find and remove any code for other chips that is left over > > Ok this seems clear, are there some suggestion to do it safely? Get some hardware and test that things still work, preferably against multiple access-points. > - convert any remaining unusual variable types > > Ok (but feel free to suggest anything) > > - find codes that can use %pM and %Nph formatting > > Ok (but feel free to suggest anything) > > - checkpatch.pl fixes - most of the remaining ones are lines too long. Many > of them will require refactoring > > Ok > > - merge Realtek's bugfixes and new features into the driver > > Please, can you explain what one could do that? I know that "youling 257 " is using a different version of the original (out-of-tree, non cleaned-up) Realtek driver code for the Android-X86 kernels he works on. You should probably ask youling why that version is being used and try to get a copy of the original Realtek sources on which the staging driver is based and do a "diff -ur" between them and see what is different. > - switch to use LIB80211 > - switch to use MAC80211 > > I think I need a few details for these last points as well. I'm afraid I cannot help there, you should ask for help with this on the linux wireless email list. > Do you think that one will need real hardware to complete > these tasks? I don't have rtl8723bs card at the moment, so > I think I will focus on those TODO activities which > don't need it. Yes you really do need hardware, even simple coding style cleanups are known to (accidentally) break driver functionality, so you really should ensure that you are capable of testing your changes on real hardware. Regards, Hans