Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2929445rwb; Mon, 15 Aug 2022 14:15:10 -0700 (PDT) X-Google-Smtp-Source: AA6agR7cFnNSAS96oluyeb3tIcMPgW/SrIbU7a7TqIs3pc9mValGXgwYEZ2PXLE6uHPjQDNpdiTM X-Received: by 2002:a17:903:d4:b0:16d:bb31:f66 with SMTP id x20-20020a17090300d400b0016dbb310f66mr18950530plc.60.1660598110531; Mon, 15 Aug 2022 14:15:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660598110; cv=none; d=google.com; s=arc-20160816; b=UaK+DkM7ZYZLM5oc9ZU1piQGgWi54qvG8T0pH1ro66oe8Nj9FcRkO5GuRH7ztvWcaZ FQHXXbmKUM+EXxWGc/AovPvJFqva04pVDy27Cghc+O0oB7wOfasUxq2Edktao3cX2Mik Xz2ouLudDv9PFDV8W7kNrWkkl7/CXYIYhtbRYtlfxwtzv7Xq2pykKqgRnR9S2CiyM9/C KXE7qiiW2oFdpadf0OoJkPCx8KtllCoK8ysTSrTv5uNyXEFqV/nvBv7HSmM8uzqgrzx7 9JruUm6Dwv9+J+je8HWu0v46uQG5J7XIXs2ll8tB/EBgoLSaUAB/lRTme/mCFLrAzUSO h4zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=x9ELBRGFZ6dzBeUDh68gB/p0xrLrgo+PnRvPwM0kXLs=; b=wVp5YOP3E87tq1HSeXUeTE15m9oaDqdkJ5ouMD2n5cC3GoVSVHY70lq0DeagvNJjj/ gFUEbqM5/xAfWtCLLRbwvYQnc5bSMkMnT1NqTWaoey6T2jGjIs5Yn7+1oZrkUDPNiR5L BKKX33JvN8N3rNYXkhqddeeranbt1Pwiv1A8R9NUJA6XqhlmnPzKgFfS0kYuHZKB/L0a TuNROLpqFgOZuX8Bfkuxql2FxR/EFxkn85bYLhA9vIqMZ/dRZv/BJeZGgvXyIZxXHs3y nYyZ47jUd545u8mZm7ElmWCuKnJ3mYPwvhcJr22/J8xDS/CkcON4QApe1Gzve0O9Nvuh tH5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JD4PwPNf; 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 a6-20020a63e846000000b0041dd4ea5bc2si2354299pgk.272.2022.08.15.14.14.59; Mon, 15 Aug 2022 14:15:10 -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=JD4PwPNf; 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 S245173AbiHOUzT (ORCPT + 99 others); Mon, 15 Aug 2022 16:55:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346761AbiHOUyM (ORCPT ); Mon, 15 Aug 2022 16:54:12 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45197BE4DF; Mon, 15 Aug 2022 12:11:04 -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 ams.source.kernel.org (Postfix) with ESMTPS id 3AC32B8110A; Mon, 15 Aug 2022 19:10:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98A61C433D7; Mon, 15 Aug 2022 19:10:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660590651; bh=QZhC4OWnf79y4pgVUj71VLW5Nv7lL1FdigrexeGZP/o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JD4PwPNfldsNFxi18K02zzL/mjWHfCegrHmavUCrujpGOcgTrZkrbyzeBK36Wh8+/ BYjlQc1isGDTbw+GPN85QNxNve+KhpouR1ALh1dvpvQFjMiP+Rgv9uXD3V2TonzMzI 7nLBrk/Eu9Oh/FlqCJJMFA40SKdCe6PwSl+WuGwM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bjorn Andersson , Neil Armstrong , Robert Foss , Sasha Levin Subject: [PATCH 5.18 0326/1095] drm/bridge: lt9611uxc: Cancel only drivers work Date: Mon, 15 Aug 2022 19:55:25 +0200 Message-Id: <20220815180443.275948975@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Bjorn Andersson [ Upstream commit dfa687bffc8a4a21ed929c7dececf01b8f1f52ee ] During device remove care needs to be taken that no work is pending before it removes the underlying DRM bridge etc, but this can be done on the specific work rather than waiting for the flush of the system-wide workqueue. Fixes: bc6fa8676ebb ("drm/bridge/lontium-lt9611uxc: move HPD notification out of IRQ handler") Signed-off-by: Bjorn Andersson Reviewed-by: Neil Armstrong Signed-off-by: Robert Foss Link: https://patchwork.freedesktop.org/patch/msgid/20220601233818.1877963-1-bjorn.andersson@linaro.org Signed-off-by: Sasha Levin --- drivers/gpu/drm/bridge/lontium-lt9611uxc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/lontium-lt9611uxc.c b/drivers/gpu/drm/bridge/lontium-lt9611uxc.c index 3d62e6bf6892..310b3b194491 100644 --- a/drivers/gpu/drm/bridge/lontium-lt9611uxc.c +++ b/drivers/gpu/drm/bridge/lontium-lt9611uxc.c @@ -982,7 +982,7 @@ static int lt9611uxc_remove(struct i2c_client *client) struct lt9611uxc *lt9611uxc = i2c_get_clientdata(client); disable_irq(client->irq); - flush_scheduled_work(); + cancel_work_sync(<9611uxc->work); lt9611uxc_audio_exit(lt9611uxc); drm_bridge_remove(<9611uxc->bridge); -- 2.35.1