Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1345563rwl; Fri, 7 Apr 2023 14:23:30 -0700 (PDT) X-Google-Smtp-Source: AKy350ZvOXra5z25XHdg5Dgt0FI511/fifTKm7+KVtyUw/HOv3afB5yJ2eXN0eXC2TNVQfo3qIJz X-Received: by 2002:aa7:9f9b:0:b0:626:dc8:b004 with SMTP id z27-20020aa79f9b000000b006260dc8b004mr3390189pfr.26.1680902610513; Fri, 07 Apr 2023 14:23:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680902610; cv=none; d=google.com; s=arc-20160816; b=Hpe5IcuK5v+7xgpKeKx2MZzM9831qVWPb37pCmIPvJ0s9zDOoBdGipQMGzPSgQtwvz ge3EY8m2X3y584Kr5VkEjhr1yZ2oGofj7ek97aGgETvtayY/X9/51W5ETLqhdLiTWOqg RmDNXUYtc5to27UT3VrfZWuUdN6LI3fYCuofG/Qf3lP9ZEVRsL7WHRY5Q121IwtXHsmM FQov19SKdI9/M3J4+nXS1o8HsfIlKOhnGRT4iApX9etCsRS4uQX/5vtX+lbqT/lD7Gx9 6sn26L3fytgECcZrjjUlx+ptSyuL0sKVHeyIG+3SzzzJloTHaKOhiG1WHODNoWQXJFW1 nTvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=YPcKdBRSdTG+FoVQj+kLiPvFB7VrPFru5LsqZmAmx20=; b=p2sf4sFruevmbB7u1C91gN7Hp/1Dn3IHXbDVXDlqIEDWdndJxm9T3QY55h7uuGE/DI hW++Nojt3v6euWEw9NNXjKhh61ADwSR422IyLKeEkYCW5cHRjvtaHGKVCC2yqtFyUfPg GTbMogHBhgL/gXbHVIgE8zTA/0j5+AT4wSZwCJ6u5DXcTvQxh5HUHscIm6zoN4jEbbsp Qtx1p60kkVMq9TyTiJdOjiGi4Y1IlvoGxAUD+n022W+MH80Z9Sac1sYC8df5dsQAgWDj bkTk6Ik2UoXjW4quKjolVITpi4G5+98XIzDU3FVXQDmIjwEHqpvERMM2vh/vcbRc3p2c tMEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="l4F/ErgZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w130-20020a627b88000000b0062538ff6bd2si4541163pfc.292.2023.04.07.14.23.18; Fri, 07 Apr 2023 14:23:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="l4F/ErgZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231812AbjDGVCk (ORCPT + 99 others); Fri, 7 Apr 2023 17:02:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231938AbjDGVC1 (ORCPT ); Fri, 7 Apr 2023 17:02:27 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09541A276 for ; Fri, 7 Apr 2023 14:02:10 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-947a47eb908so89715166b.0 for ; Fri, 07 Apr 2023 14:02:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680901328; x=1683493328; h=content-transfer-encoding:in-reply-to:references:to:from :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=YPcKdBRSdTG+FoVQj+kLiPvFB7VrPFru5LsqZmAmx20=; b=l4F/ErgZZ6pMP8I8zZc3yQHipp9CKB7I6l//amZdnTi84bFTdEUpePK+nAZnoJaHto UJhhWFDiuAXIaRrUy/NIlHF5V+JYyNjuRo5irbhxvTIPbo+kJB+5iKce2VKMAhSf/5Ij hKnIdNnBPw6IJU+xwM264fRHWIrOO0KirRGIyvDYyklVvbdVnHM7dVk0KiyHhc/9WRUH sJqoAPmrFe7mFgUMfkEzycqRDfLE/JAijMXKMenueVZ81YCRkL2zwNsdBSE+yB8rM1ga 0TerRYP+/lp96gMaFWbz7yT3TGsXmzmz2f/A13SgyNFw1gDZck9Tid7+VeUvRHKRyvgY dlwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680901328; x=1683493328; h=content-transfer-encoding:in-reply-to:references:to:from :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=YPcKdBRSdTG+FoVQj+kLiPvFB7VrPFru5LsqZmAmx20=; b=0ssf+XgrXF/a/U1gYilCsoLtAc4mGnfSn9ZHrtcPBZPuTevQXxP9sE59JIvs9teOr/ kF7zzso4knhdG69RIz2RL0xK54OEY8SJ/ggVDw2/WTk6nXQH9lPAmmvJ08taQ1EEm+AS f8AMAQsgvbvUqT1hvxY1HDQ0Nd/Cbpzdmsk2R9ct5EPzx0UA29+LIy68tkGcvDtMxSDo rjAskmfOq/OIDRrocZhdYOYyoN6KsADLMMm0RriDf0XGkTiw+OhghiI6vnoqlwd1Gu7b ZnKlmNkMStkOl1kkl5vkgd7gjR+B153JeoT2H/8tqXDLjC0sE0BJs+k/YCZi4AP233Hi vGOA== X-Gm-Message-State: AAQBX9cmPKp2pOVQJZMQNtH/l6dro9BIF0Urq/f0qWe2cGUsN1HKRcRX k1n8ziP+XDgGjJ3GXKrMdtc= X-Received: by 2002:a05:6402:4413:b0:502:465:28d4 with SMTP id y19-20020a056402441300b00502046528d4mr763142eda.1.1680901328081; Fri, 07 Apr 2023 14:02:08 -0700 (PDT) Received: from [192.168.0.102] (p57935146.dip0.t-ipconnect.de. [87.147.81.70]) by smtp.gmail.com with ESMTPSA id ek14-20020a056402370e00b005028e87068fsm2228219edb.73.2023.04.07.14.02.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 07 Apr 2023 14:02:06 -0700 (PDT) Message-ID: <248ec330-b4c3-aa7b-61eb-69ce8d333b69@gmail.com> Date: Fri, 7 Apr 2023 23:02:05 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: [BUG] staging: rtl8192e: W_DISABLE# does not work after stop/start Content-Language: en-US From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org References: <39dc735c-fd6d-e405-856c-788a52704d63@gmail.com> In-Reply-To: <39dc735c-fd6d-e405-856c-788a52704d63@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When loading the driver for rtl8192e, the W_DISABLE# switch is working as intended. But when the WLAN is turned off in software and then turned on again the W_DISABLE# does not work anymore. Reason for this is that in the function _rtl92e_dm_check_rf_ctrl_gpio() checking this every two seconds is an conditional return. if (priv->bfirst_after_down) { priv->bfirst_after_down = true; // PH: useless line return; } tmp1byte = rtl92e_readb(dev, GPI); // PH: GPI for W_DISABLE# bfirst_after_down is set true when switching the WLAN off in software. But it is not set to false again when WLAN is turned on again. Thanks for your support. Bye Philipp