Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2202792rdb; Thu, 21 Sep 2023 11:19:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGsYua18mSKD98r1JnDFtYjBllyJGZ1+CIntgpJ4/WzRrxrH/18Le94e74Sr+ugGaTxm6f2 X-Received: by 2002:a17:902:db09:b0:1c4:65d5:34ce with SMTP id m9-20020a170902db0900b001c465d534cemr549335plx.31.1695320387101; Thu, 21 Sep 2023 11:19:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695320387; cv=none; d=google.com; s=arc-20160816; b=rKfLMRMAv1kxP3S75cDVjKJ5vOfVPrgABwRJcf4kG9DEKvJgAVjA9h9K7hBAxIyYoQ XLRBk8/Q5H3xrWQ4sZ0W4hqoQiayW5bzBTx0A32TrIF+3LlRUe7AeqO5K9XjB+oNkosI p0NIC3ZFLld5k/RiWDMXZcAkQk4v1NorRJGH3ExYC1wgRl2vIizFrmDFHWeLnWv/4ZF4 0lt9CkvnSH9GbwB96Xo0aJLWBQ5q3YexdZBSbh+OtYzcLjQQLWlqObZJ/ThN4XLDJLEm 3ae/tOtdW8Cx+a1DDJPfhme2uA72NRB5F8uqrdX3C5bpLjHdK7uAhdFcbaktcEfLwSFt czYg== 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; bh=mXoPStJwSArQiyXGsgDEokw2lSj2hEqp9RYems4dhLI=; fh=QEC5+0XzZahAaxTDFGJyqtOM922j53BCgd/9NzEJt7o=; b=HUBEZ/nQl9DzCKWyxcnvr6qakYCfWmT+3vpk2JBACtmDZaX+a0znz5R4B9cIoFLwYi eNmD0PLzpOG+93J2L1TpJsRR10sjmZdBDdV2LGGMJSbdrD7JN4rzwwN3nXgMZRqy2Dc0 5Bs35vYYazag83v3i55f7zQSDfUopMGcgykX/LsIG4+MpvGf6oQgoJb4j/NYImWDVadN 1HDL1nuxmQrMWxIyCFIs3Qrm/gA90ArYLtFfExpVcIkd6JaY0zLxxJdrIiANXzRlPhrA vm6pas+2D7SpVyOo6Y0Dvvj79fTw00B/PGGEkokznJllOuHgswD1qW6lnuwgLs0+5nSJ wiSA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id p17-20020a170902e75100b001c32d285db8si1947048plf.308.2023.09.21.11.19.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 11:19:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 050AE832EB11; Thu, 21 Sep 2023 11:16:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230237AbjIUSQb (ORCPT + 99 others); Thu, 21 Sep 2023 14:16:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230266AbjIUSQY (ORCPT ); Thu, 21 Sep 2023 14:16:24 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 28F8D720F1 for ; Thu, 21 Sep 2023 10:33:34 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 9C055809E; Thu, 21 Sep 2023 11:35:46 +0000 (UTC) Date: Thu, 21 Sep 2023 14:35:45 +0300 From: Tony Lindgren To: Tomi Valkeinen Cc: "H. Nikolaus Schaller" , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Andrzej Hajda , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Laurent Pinchart Subject: Re: [PATCH] drm/mipi-dsi: Fix detach call without attach Message-ID: <20230921113545.GR5285@atomide.com> References: <20230921-dsi-detach-fix-v1-1-d0de2d1621d9@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230921-dsi-detach-fix-v1-1-d0de2d1621d9@ideasonboard.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 21 Sep 2023 11:16:36 -0700 (PDT) * Tomi Valkeinen [230921 10:51]: > mipi_dsi_host_unregister() will call two functions for all its DSI > peripheral devices: mipi_dsi_detach() and mipi_dsi_device_unregister(). > The latter makes sense, as the device exists, but the former may be > wrong as attach has not necessarily been done. > > To fix this, track the attached state of the peripheral, and only detach > from mipi_dsi_host_unregister() if the peripheral was attached. > > Note that I have only tested this with a board with an i2c DSI > peripheral, not with a "pure" DSI peripheral. Thanks this fixes the deferred probe warning I've been seeing: Tested-by: Tony Lindgren