Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2100734pxb; Fri, 24 Sep 2021 20:46:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRjfZa8efunPZjhaxsp5TBk4q5jVwcZM55z42uqvX68wT8+RtXJaWRrCJimgXpb3whxAJb X-Received: by 2002:a05:6e02:1a4d:: with SMTP id u13mr11093011ilv.4.1632541571628; Fri, 24 Sep 2021 20:46:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632541571; cv=none; d=google.com; s=arc-20160816; b=nzqRyqxG8MxZnpYLShhYCizJurtJV0xI+qtOE684vt81uoE2VwjAC+gx83KzIbgIHR kK+ZLHGQ+Dan/hNmL+f18alP7TsRFyHn6enCfFTfrW4arB5QGUQKqRLqbOFwpo1AYsLF OHoH8rUWmqsqZzDgZ98Qm3VlZt9faqg7CvGzwvslJr8K+llnc3QU+9m93QUlhMkoN3OT hcLGMkaUx1J2fy7ThVbu2wB7iiML/lWZJc+ncZ6a1zc2Fhp7C+FX+GcnAPFv3m71uUQu OtaPHUN0XqL4J09ZQ2yFKreA6/zv8Tekkcy7NBSsrHB/0tkbiZBvIy11PDSrRgET/qvD R5hg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=6WakdUbiWZn3GzMR84xbI52pTQWpDwrFi/U0te25GWA=; b=zozY8qHBMissfAr8TMhEw1p4S6n2ND1Md22Ymu/dJOTj5djy2aFz5USuTrMvcikBre UStfaPNNVRmxlXKXxvA01NesyYw4b4sV1ZcrTN0sn+66YzAnQRYRQHOvtAGDrTaX7reZ FI3Hnn7FN3aG+gKdhILHB0Mit1BJX1E7HV71OxDiYBg1LAsqWn1h/yfnHK+jEkN2Qyte Y5JjPB+Zo8u4vvm3g0D5RV0saHjw12GqYvy4lwHWcSuL0IBWWxF7leePKbmGQiZR2/fP /V2vofAI4ek7soZ7CiCpGn5ekr9/tMxshjfSvmjqF0anjOEHCmXoHx83wLBH0R9BL892 YPfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=HVeZxJb8; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Q+aKfJtP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l3si12189778jas.73.2021.09.24.20.46.00; Fri, 24 Sep 2021 20:46:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=HVeZxJb8; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Q+aKfJtP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344819AbhIXRyn (ORCPT + 99 others); Fri, 24 Sep 2021 13:54:43 -0400 Received: from new3-smtp.messagingengine.com ([66.111.4.229]:43181 "EHLO new3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344909AbhIXRyf (ORCPT ); Fri, 24 Sep 2021 13:54:35 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailnew.nyi.internal (Postfix) with ESMTP id 95CFB580AB3; Fri, 24 Sep 2021 13:52:43 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Fri, 24 Sep 2021 13:52:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=fm3; bh= 6WakdUbiWZn3GzMR84xbI52pTQWpDwrFi/U0te25GWA=; b=HVeZxJb8O3xsKKWQ RnV5/R/0oG8RG/TaMY3R+KnJ5yFbRPNVo+qUllpvH94M1ldM1qQM3IDEM9iKLWnX Uek1Kjs/od/hoiE8UEc0Uwo8M/YpU8PQ3Y6Ycx0sBn5dutKAaKchZH6Sh0bE+azl fU05O/cd1RyQHFutmdPrGNpxIeAQToeO84pRIn2f0Gy0NTcBx6iXtzTCXBtCOLir ewbtMf86mGBnB1GZ/3CXxsMIEkWAufIXZ3aN1zfFtAsD96tT1nfKQa6s0fv/z9Xn 4cpsP4tJiEfo5zXsiyOk5UCdw7YfXj/KR8+ZYi4AJpbRXSUm7aUMBTy8NIRTpeKv iYIW2g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=6WakdUbiWZn3GzMR84xbI52pTQWpDwrFi/U0te25G WA=; b=Q+aKfJtPy++1s8uPjo+8sFuHcbwlORBMHTBvCswoB+fAmoPlPfmel67vY fwbT9ws0SDyu593B5SQKubfwtlBUEqHsSpCD7elTw6UNxgTX5WKIJLaPuU7RyMbM HjQ2ESVsgUSRoQiZm1/XvA8R57icuFGeZ0SAbO66j8H4veCsil8T0Nl6zdIiXoWs +gFVCnhXJ8TLi8LGWTz9sDpn2GOvbaAtoTn+Uhje5g4uaBCJFcTCJeHnBgljxy9s U7p95lczoL3urNNRU+0XI5rGlOSfxsiaJE0tirrKm1YdCw28MZyT6pjHG5ZQYX3C oavhIRbE+ibbV56H9knMU1+cppBcg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudejuddguddujecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufffkofgjfhggtgfgsehtkeertdertdejnecuhfhrohhmpeforgig ihhmvgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrf grthhtvghrnhepjeeugfegkeffgfeuvedtvddufffhjeffjeejvddvudduteehhfefhfef geeikeeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epmhgrgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 24 Sep 2021 13:52:42 -0400 (EDT) From: Maxime Ripard To: Thomas Zimmermann , Neil Armstrong , Maarten Lankhorst , Thierry Reding , Daniel Vetter , Laurent Pinchart , David Airlie , Jonas Karlman , Robert Foss , Andrzej Hajda , Jernej Skrabec , Maxime Ripard , Sam Ravnborg Cc: Chen Feng , linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Kyungmin Park , Rob Clark , Xinwei Kong , dri-devel@lists.freedesktop.org, Joonyoung Shim , Inki Dae , Xinliang Liu , Sean Paul , Seung-Woo Kim , John Stultz , freedreno@lists.freedesktop.org, Tian Tao Subject: Re: (subset) [PATCH v4 04/24] drm/mipi-dsi: Create devm device attachment Date: Fri, 24 Sep 2021 19:52:28 +0200 Message-Id: <163250593261.1360097.8686151745001327070.b4-ty@cerno.tech> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210910101218.1632297-5-maxime@cerno.tech> References: <20210910101218.1632297-1-maxime@cerno.tech> <20210910101218.1632297-5-maxime@cerno.tech> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 10 Sep 2021 12:11:58 +0200, Maxime Ripard wrote: > MIPI-DSI devices need to call mipi_dsi_attach() when their probe is done > to attach against their host. > > However, at removal or when an error occurs, that attachment needs to be > undone through a call to mipi_dsi_detach(). > > Let's create a device-managed variant of the attachment function that > will automatically detach the device at unbind. > > [...] Applied to drm/drm-misc (drm-misc-next). Thanks! Maxime