Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3086881pxb; Mon, 4 Apr 2022 07:30:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0+QzQCVej2z46hnAldk6RYBZlhJJyBn3EcYlRWayqKdB953xrZLwk9A06cf+e9ZoaADAp X-Received: by 2002:a05:6a02:106:b0:36c:96dd:8c17 with SMTP id bg6-20020a056a02010600b0036c96dd8c17mr160937pgb.190.1649082605610; Mon, 04 Apr 2022 07:30:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649082605; cv=none; d=google.com; s=arc-20160816; b=OtP8Hv/AudVv8NoagFppK1DTknep7RxCSGO4w8K6GTYL3nAXn4WaIIIXLo8Lr1fKfl gxY2RBzAm4FH8jV0L9X0qHeKoJKhz/QdGEnnjJlW9qjzQUbkKvynSbNLxsCHwn1qrpLz WuUhGjjgqvQ+1I8nuxiotI9om69cxLtYqTZIQDTXEmumyfaM8gu1nN1nwVr37KwBihjf tf4Ix9S/3TTOF3mzE8MwFm1gZVPlQlC0pDtNDygRyeAUbPKBQxkXrLo4s/62mzS+T2Rq /pRHncYqHqeP8XMNOqbFkEYSmtAcgI7d8Ub52JObKgJQOp2z8DBo7hhqcNZ4zizSCj2x wKHQ== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=oOTGeK/fBBSylHFUjJjIrij7LyMZ635R4iqHI9V3GZY=; b=gp5d9md0xkmT7K7TO0Vo2ktQDGglvsn/qXhrLM38iEbhO8+8iGzsz+X0tjJ9hbnMOM UR+3LSvO+pzkC2YDK3/kmAeny2/RdnUUg8G5CvRCnR0TSxATNJvwgSsekdWdLy33k1gK owKq1rBO2OjIfheUGDxun9E8YwSNTsMU8NMUTCwSj2oS6IL1HEtiQ8yc6Lfw3GQhrEtL 1PjDwlQwVbddV0JgpdpTcq0e4zKgGQB6ASzFERjNVDzKtFtQzmMEg9/EounOq3drqSwl m8lOxVhBGJdftqCHYOXhNyoJ8w+NgKO8VEOShN2yICsXkgpNjCe65N5TvnroKFvb9egO q6Mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=J7RUYuRu; 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 bg12-20020a056a02010c00b003816043eff0si6044611pgb.485.2022.04.04.07.29.49; Mon, 04 Apr 2022 07:30:05 -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=J7RUYuRu; 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 S1357165AbiDCLub (ORCPT + 99 others); Sun, 3 Apr 2022 07:50:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238327AbiDCLua (ORCPT ); Sun, 3 Apr 2022 07:50:30 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3768F2B0 for ; Sun, 3 Apr 2022 04:48:35 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id d5so12412582lfj.9 for ; Sun, 03 Apr 2022 04:48:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=oOTGeK/fBBSylHFUjJjIrij7LyMZ635R4iqHI9V3GZY=; b=J7RUYuRuK3gLqIL3lh93xMbkwaevjEZCFPh6ZVQKhFkbS40MZZZ7DhyVXYQvRe4QF8 awH8zLfUYrbRhS3brpLGDloe6rXsr9oQcniBE2HEib4md7GR5OsIqqqS1CH2OnvRxkJ5 F/BOGASxXEe2QMwzKx1zRDlUojaMiqXeGkIp58F6Fti68zsaj5Q6x6oZoFveBnwDQ0Li FOm011adxpyaK+qvC+aGqxc6WQkTRdA6ZYEQmEpr7XRvL2++R6VOO3RqZ85JxDJd97nt YjGpIYcv57m3au5DE47p05yfhJTyNzLoEiYz9lEGOyyEtHVbVXWIDTTlrZUeT9DMk6zA fE6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=oOTGeK/fBBSylHFUjJjIrij7LyMZ635R4iqHI9V3GZY=; b=DnF3MmQchImtntXgrNRrSZndhLxyJ01bx2S+9XjRj+vuv1VSE4QPpLlZ8zCuG8MBrd hQEtG/Jmd+ySrRqnbqSqtfyItZy6s5zmHLkRT9NwYochcin+pYMhKZHw5+kBBlrUzvF1 J3TsN1W+A/BNPIp96lmwAPi2QoTmcj38VVrKs/v29cVf2S4uxZGhZyreA4mIDBfG8/pH v2rZVwSr1IodkzwvlXfhbZqQybzqI6nTTwJ1QljrE+jgYUf04rhozL0qdi7ThK/xaR9x df7HVLIk/QYlu29/4vn5PdJEeLG7V3UckVHwuznM+db2TapxWKyjU74XcL8d2Md5y7v3 stUA== X-Gm-Message-State: AOAM5310FJS9680pzaluurciXIyvnYb3XmXwqahIcfhDeS4cCjOBEJF6 iAl063VIgP+n4fNk0gSPnwk= X-Received: by 2002:a05:6512:3b81:b0:44a:d39c:6c7f with SMTP id g1-20020a0565123b8100b0044ad39c6c7fmr9929114lfv.129.1648986513458; Sun, 03 Apr 2022 04:48:33 -0700 (PDT) Received: from [192.168.1.11] ([46.235.67.247]) by smtp.gmail.com with ESMTPSA id 11-20020a2e154b000000b0024967cd674esm757347ljv.35.2022.04.03.04.48.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 03 Apr 2022 04:48:32 -0700 (PDT) Message-ID: <3fb13fee-a605-7f2e-81ad-45148082a733@gmail.com> Date: Sun, 3 Apr 2022 14:48:31 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: staging: r8188eu: how to handle nested mutex under spinlock Content-Language: en-US To: Michael Straube , "Fabio M. De Francesco" Cc: Greg KH , Larry Finger , Phillip Potter , "open list:STAGING SUBSYSTEM" , Linux Kernel Mailing List References: <356c24cf-625b-eea2-2c04-ce132d881cac@gmail.com> <1813843.tdWV9SEqCh@leap> <942bbcb6-725d-9b47-5dfe-f105d30ea6b7@gmail.com> <7365301.EvYhyI6sBW@leap> From: Pavel Skripkin In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Hi Michael, On 4/3/22 14:41, Michael Straube wrote: > > Hi Fabio, > > wait.. > > rtw_set_802_11_disassociate() calls rtw_pwr_wakeup() only if > check_fwstate(pmlmepriv, _FW_LINKED) is true. > > > if (check_fwstate(pmlmepriv, _FW_LINKED)) { > rtw_disassoc_cmd(padapter, 0, true); > rtw_indicate_disconnect(padapter); > rtw_free_assoc_resources(padapter, 1); > rtw_pwr_wakeup(padapter); > } > msleep() cannot be called in atomic context: drivers/staging/r8188eu/core/rtw_pwrctrl.c:379 if (pwrpriv->ps_processing) { while (pwrpriv->ps_processing && rtw_get_passing_time_ms(start) <= 3000) msleep(10); } With regards, Pavel Skripkin