Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp787660rwl; Wed, 5 Apr 2023 07:44:34 -0700 (PDT) X-Google-Smtp-Source: AKy350bpxdRqElQb8El/Y89uy2Nf5/mWd65bs4Hh97TfRXqmWkU06c6tHlB+mJRrqN5/ZR+X0Hn0 X-Received: by 2002:a17:90a:e7cd:b0:23f:5fe7:25a1 with SMTP id kb13-20020a17090ae7cd00b0023f5fe725a1mr6933330pjb.13.1680705873674; Wed, 05 Apr 2023 07:44:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680705873; cv=none; d=google.com; s=arc-20160816; b=vXxD38cq6U+EzbW4fv3xAFu5u2lamcrr877g0TyGATTMgbmv5j6hjCb+lXxW79PoK8 AJuoBmpxBV3JvrGdswR35mvYrWlAOqA9KrSYGKObHSw/Jd0D9PZqf17M86LI9uilWDrG IBi+StcJkFgKoFrapHcRXf/1ZB5XxH/6+SUvuG77rsXfSq+MzcYtr8Bojane+HTTFTgq +h8oaxmx3Ca9q/ed8hGVR8jY3j1OxuC8mTZrG6u3rXrzV9YXhNmdBMpPhofAxXs088+/ 58YnqZfvnEvRQ4GsW6ZgiM1mj0z5YD7D9zHMAblnQPsc9vFW4pMghknQQqONDGmZKcEP GVQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=axXVzcpwO9gMJbkoQn93KgyjiTFA5UxywXSE56PV+Sc=; b=vFy+VwIhcZbqSRpruBF2nbgJXNX8MDT1DVOAjVoFmMgRBDs6jPZ+RX0ggRlmIEXjNA izQyJPP3Lk44kKvQ+cEpxJoHYVLz733EJz3SQfrFEuipzhZ42AGTzCRc/EvidnK/+Xsl 217o5+6c8lrGRwELHg6cj03EckjoEQIpnEddYa4dmlAe1oxvUMXPNU4qfZqMDaQA5Z8Z 85MGWfaU6ZzFvfb3iC9kQpw9aHJw7zSXKZeU2kl8U98B2T1XA20sEHwT2fcssNeL8qrm dF7YvcT9HPP6Kqk5APMjREYsGnDlDPRAAnekKShfa3Sob5cFH4z+VGox2Ztb10HyrJJa BXxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HAOcfidP; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l191-20020a6388c8000000b004c259db61fdsi12223171pgd.561.2023.04.05.07.44.20; Wed, 05 Apr 2023 07:44:33 -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=@linuxfoundation.org header.s=korg header.b=HAOcfidP; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238491AbjDEOiY (ORCPT + 99 others); Wed, 5 Apr 2023 10:38:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238315AbjDEOiC (ORCPT ); Wed, 5 Apr 2023 10:38:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E82675B90 for ; Wed, 5 Apr 2023 07:38:01 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 756E962993 for ; Wed, 5 Apr 2023 14:38:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E041C433A4; Wed, 5 Apr 2023 14:38:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1680705480; bh=TAtG4B5tFiggBEsy4rhkDWycj6tfQMutZHeZjsUAWWQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HAOcfidP9OBCM8O8X1pqT3yVrK/CjqtrpGu0qFaZzlWtFvqi66komKn+M0l/eYnUa gMsv8ORRrzfiV5i5CLKLbOzfUU0ZpB/iXxInWVUgfORRl25wPJsc32KHW/10QwR1Ol /arQFNgwUFg27BVZQxr9WLlPT7H83U/0obVTyXqg= Date: Wed, 5 Apr 2023 16:37:58 +0200 From: Greg Kroah-Hartman To: Philipp Hortmann Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [BUG] staging: rtl8192e: oops occurs when finding hardware rtl8192se Message-ID: <2023040521-angelic-emptier-1367@gregkh> References: <39dc735c-fd6d-e405-856c-788a52704d63@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <39dc735c-fd6d-e405-856c-788a52704d63@gmail.com> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 On Sun, Apr 02, 2023 at 05:00:13PM +0200, Philipp Hortmann wrote: > Hi, > > when I use the hardware rtl8192se the driver > drivers/staging/rtl8192e/rtl8192e/r8192e_pci.ko detects that it should not > run on this hardware and aborts. > But when the driver is freeing the resources an oops occures. Find oops at > the end of this Email. > > When I comment out the following lines those errors disappear: > cancel_delayed_work_sync(&ieee->hw_wakeup_wq); > cancel_delayed_work_sync(&ieee->hw_sleep_wq); > cancel_work_sync(&ieee->ips_leave_wq); > > When I do an init before the cancel: > INIT_DELAYED_WORK(&priv->rtllib->hw_wakeup_wq, (void *)rtl92e_hw_wakeup_wq); > The oops are gone as well. > > When I use cancel_delayed_work() instead of cancel_delayed_work_sync() it > also works. > > Can somebody give me a hint what the expected way is to solve this? Is this a new thing, or has it always been there? Why is the driver loading if you don't have hardware for it? Or are you manually loading it? thanks, greg k-h