Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2814730rwb; Mon, 15 Aug 2022 11:54:17 -0700 (PDT) X-Google-Smtp-Source: AA6agR7TZUwm7opS1q1T0R2SrDJXgUd9OfTEaFlUfOc01oetw+UwyvZ7RHeZxYC+tuqWrYW00LA/ X-Received: by 2002:a17:907:1608:b0:730:5ad0:ae1a with SMTP id hb8-20020a170907160800b007305ad0ae1amr11328367ejc.222.1660589657413; Mon, 15 Aug 2022 11:54:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660589657; cv=none; d=google.com; s=arc-20160816; b=WtgV8/eHzfBjyOImN2+LAKVD98MwHm8zFy6CM5A57lhrJ5aTWxYTYNAEKc/1JcESQf 9AMGf/3Oj0gEMNPFF/lgAh4qIz9PwxR3IYk5GhHjYzdQ79is7cXerKx3O968iBpuowAQ uoLm3S9AxAZzn4G7RU4R/BtxGkgYHhGzsBFbPllJqznaxu+NrGnOmYWUUDO5lCSeaORZ ljv7KL7fuVruFk6BsEZpc/iMHrn+Rzioorja24fXqvXByxag4lXsergXSlkjjWCKMy7C ahkqYZ0f6ryP97kvdbFEytSpbqK/gAwSgkY2o1YU1z2oy2VejMoy965H4rbu3F0T/0bh PbsQ== 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=PCztpkyiQSKksI6de2rIuYkj8h5K0IMND7u4GDRbNms=; b=KYqRd4/Qza/zLf5JHHxJk14E3EDlDPWgAS2mnfjxOpmRGP649d5BEozO+0L5p6sWx7 wafGnD/068MNmU89XGaHIz4Tt3rB21woXvBcwWG4eitO8MRRN9KEJvQrY7FrJKKnug30 wXEG9jb/KF9Cj1MF9m9ZzsGGKkLTZI/NhN8hAX7N/L85dJB9gVqhbkBErflbCR1aSU4G 1eux1VmyKcLliFbi1tdkYXAQVC/spka8rPHu76ZJXTAmsH466mjnqGcS7DQQx5mU3IVa TLEWN/qC17DJzSZ04qsCyfM/+5U70P6QOPD76zSGXVAGeq1DI2dxACn+hSmXRqGklAO8 nWfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=smrvQfbc; 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 qk37-20020a1709077fa500b00730a530954dsi8450064ejc.901.2022.08.15.11.53.48; Mon, 15 Aug 2022 11:54:17 -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=smrvQfbc; 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 S243515AbiHOSrF (ORCPT + 99 others); Mon, 15 Aug 2022 14:47:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244104AbiHOSmJ (ORCPT ); Mon, 15 Aug 2022 14:42:09 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 872D42F3BD; Mon, 15 Aug 2022 11:25:59 -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 32480B81071; Mon, 15 Aug 2022 18:25:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 635A9C433D6; Mon, 15 Aug 2022 18:25:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660587956; bh=Z8QdnvFIXKN5jemo17wpQnROqTwiw5XqL1IzUTYZcv0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=smrvQfbcCngFEN8JdM0cj6iF/AxwH9QGpbBCga9pUZX7SYOob6f07BhFl5enmkwyp j7tHUO57tycr96fmIgBNfa3U8YIKcUskOOFpumLCSWxGQtmHTNlT7ade0lbJYk0+PV tC/GIHvoZUQpIw8hzl2TxGCDNGq+4s7zQ2QHpKug= 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.15 249/779] drm/bridge: lt9611uxc: Cancel only drivers work Date: Mon, 15 Aug 2022 19:58:13 +0200 Message-Id: <20220815180347.989861665@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@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 010657ea7af7..c4454d0f6cad 100644 --- a/drivers/gpu/drm/bridge/lontium-lt9611uxc.c +++ b/drivers/gpu/drm/bridge/lontium-lt9611uxc.c @@ -997,7 +997,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