Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3114860rwb; Mon, 15 Aug 2022 18:28:30 -0700 (PDT) X-Google-Smtp-Source: AA6agR79RVHQxW35gu4ygpq3ET9VnT1CZdgOVKUoTBJH8jABllycRR7kOLgXZvMR5Zr0IdkWvjLJ X-Received: by 2002:a05:6a00:2387:b0:52f:17a0:628c with SMTP id f7-20020a056a00238700b0052f17a0628cmr18804572pfc.17.1660613310601; Mon, 15 Aug 2022 18:28:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660613310; cv=none; d=google.com; s=arc-20160816; b=CvtS5fjPow+NdnMMuEsglw9Ltc9CvkV8sLFl50WywIxkR0Uy7FwPtfYOyUxrMw0Z8+ i+nDUYczOdaImhepBfLv+8MoRYB0dKVzkFLnLTcQjhla6a0i8OoCF+1y8gjaui0zWded /ec4Kgmg10b2dttKslJWsh4FmpGkawwglFSzFq2QFftMNoqhJcDIxwHXux4OTLxB4Q3t Nynye52Ln0Whuo6klW7uq7DnwzR719F5Dvc9hmLGfEGWRDcfUSSXQlpt7yHdzUKjr3yd +WxyCqr7Nxr5sjOe5bpwqZ5ynA7UJOh6e1DuesAPwUysqdEVLmYkroNRHgyyMnCm3JM6 J7fQ== 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=JdJ94Nvlq0A9t9MYh9W/ahACc8oCBATUoabD+UQWtOJ8uQz9O55+5eH0US8SghQ0rr 17mC9nyM4i2ffWFNwaTl7Gpgis14JUoJk2bq9t+pc01Wh7xH4dRqyH13Kg3+3H3fBFGz Ai89SeA2iiKgYDS5jvJBTDqNQGhB1Sx6LOSGYIgoMNRrTvEEJ7X8dstKNgKkCHUjIWU0 SIRIhN3QNrsdwFWbXofomxrpx4sOpKA80DIwVqnMeVRfam47JLCKvdH7dM9+NJwyCMLN fQr9A5jHbQEtRqeNvtySWZRjFz9AjDsYjaOtfTWAbhQYwFu5FwfRpnNX+f+Xt4/VTtr5 vUVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Uvo6GOLr; 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 s34-20020a635262000000b00419dc0c2d71si12217230pgl.115.2022.08.15.18.28.19; Mon, 15 Aug 2022 18:28: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=@linuxfoundation.org header.s=korg header.b=Uvo6GOLr; 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 S1353763AbiHOXgS (ORCPT + 99 others); Mon, 15 Aug 2022 19:36:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345716AbiHOXaP (ORCPT ); Mon, 15 Aug 2022 19:30:15 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6644BB921; Mon, 15 Aug 2022 13:08:00 -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 00B5CB80EA9; Mon, 15 Aug 2022 20:07:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B578C433C1; Mon, 15 Aug 2022 20:07:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660594077; bh=QZhC4OWnf79y4pgVUj71VLW5Nv7lL1FdigrexeGZP/o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Uvo6GOLrxntgHwN4H/QgQNsYeTQVQyHzPppVU0Ai6EYsoYi/FEckUj6P8uzQVcjxF zW6o1AwwM4ajFerv75H9S1+5EsulIfcw93CYZ7ryNcFUEH4gB+RFRbB2MP7cjIuB8V EdxGyNPHFijuZuyKYu9hJG24W5B7OZPNSW9NIDcQ= 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.19 0342/1157] drm/bridge: lt9611uxc: Cancel only drivers work Date: Mon, 15 Aug 2022 19:54:58 +0200 Message-Id: <20220815180453.375636905@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@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