Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 25182C6FA82 for ; Tue, 13 Sep 2022 09:44:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231416AbiIMJoy (ORCPT ); Tue, 13 Sep 2022 05:44:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229828AbiIMJox (ORCPT ); Tue, 13 Sep 2022 05:44:53 -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 F204CE0BF for ; Tue, 13 Sep 2022 02:44:51 -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 88971B80E2C for ; Tue, 13 Sep 2022 09:44:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10818C433D7; Tue, 13 Sep 2022 09:44:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663062289; bh=skvVraM7srPfIkoWZ6q9hkoJ56QIEuw02+nE/Cr6Icc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IJcLpDVPQYoTsaLIa2Bw02A71s4zAIU/2K2mPrNcwIjbrggvd8Zys1RxGdqFH7dZ6 t+ETJjw2MBtdK2c9lb5a01S3gSmJdrqBKw1eaDu8UdRIowiwXLTfm1z6dJpszAPN1w tKVSP4KvPHz/atuJWecf4SCFsP8IbVI/zP5pOavv5GTgcJUYxpospxrIjDz8Xe/zP7 zk/hMtqoQKCTIDd/HbrnM0IqXozOmGDqLyC5/sXjmnosoiYLAxtSBdX3TUuPHNzYsj c1yMu6eOXUNUkoJoi1bZNmrPhQPTsX+VeYAAJ9CwWTDy8YvSqaQoYr/r7FgGV4cl66 2D18c3wQTDKPg== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1oY2TI-0002f3-2i; Tue, 13 Sep 2022 11:44:48 +0200 Date: Tue, 13 Sep 2022 11:44:48 +0200 From: Johan Hovold To: Dmitry Baryshkov Cc: Rob Clark , Sean Paul , Abhinav Kumar , Stephen Boyd , David Airlie , Daniel Vetter , Bjorn Andersson , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: Re: [RFC PATCH 0/3] drm/msm/dp: several fixes for the IRQ handling Message-ID: References: <20220901091527.1992208-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220901091527.1992208-1-dmitry.baryshkov@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On Thu, Sep 01, 2022 at 12:15:24PM +0300, Dmitry Baryshkov wrote: > Johan Hovold has reported that returning a probe deferral from the > msm_dp_modeset_init() can cause issues because the IRQ is not freed > properly. This (compile-tested only) series tries to fix the issue by > moving devm_request_irq() to the probe callback. For reference, here's an analysis of the underlying problem and a series of fixes that addresses this: https://lore.kernel.org/all/20220913085320.8577-1-johan+linaro@kernel.org/ Note that moving the irq request to probe also fixes the immediate issue, but that can now be done as a follow-on cleanup (optimisation) instead. > Dmitry Baryshkov (3): > drm/msm/dp: fold disable_irq into devm_request_irq > drm/msm/dp: switch to using platform_get_irq() > drm/msm/dp: move dp_request_irq() call to dp_display_probe() > > drivers/gpu/drm/msm/dp/dp_display.c | 19 +++++++++---------- > 1 file changed, 9 insertions(+), 10 deletions(-) Johan