Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp851723pxa; Sat, 22 Aug 2020 02:23:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6DEp6YB7MJi6mwJBKUopZ0j8K5mh5sekjenCRtjmhvSZwVrwaEHTTQ/Xte7IEUbHDSnAY X-Received: by 2002:aa7:c49a:: with SMTP id m26mr6400151edq.153.1598088221612; Sat, 22 Aug 2020 02:23:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598088221; cv=none; d=google.com; s=arc-20160816; b=t8a9xABCw+0dvyDi+BfW2RI12W26KCF1A3khlyAFnpFmrbwy7w9oFSCACsTxkWOjXy r3aiZtve3cr1Z+qXbq5nq/nKlPUu1P6zMYQ0vQCm6cgd3Ylqy8upsNmP2v2JK9Emj8tQ nZZhp90fuRsfmbfFrOthUkgaa/DFrs8xAJK18AfyPEdG57nMw6bEZUiR2xwnv3p8Bw4T n3VlQZhmKI3swD+AOXv5TnZuSwyidni7SqInkvMA8n6fb1tOaCnoHEiQfJfg3Yc5ucjF difan7rhegfrECvPG2TGd1IdTYdkyiQK8JdmykEsma4JhUUAC7w/cjPhrJBRBvmFJOji cXrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=jcXbYZXB5ulNGGLW0kpKdfsPYXHSx4a2iq2l/2F1am4=; b=I/iRNkpqZgIMs8foWDCtA8YE6KE/ohZoM+FX4WSRf30TkKCqCq7X7MJs4iNfnaVdW0 XcXQKteX4Vnze8LxP83zdVoFcmecV7MKhKEaS863EGcpagKMbKNrsb3OslhZeOdDc8FQ s31H2v+r12/T+7atyWCV7m8SUWM4ZzlfMOJNEGppga47vb8CyZpDCGO8NGvLhUpoyKzF UniVgTRPaqEocyt0pt+VrDPsYfKkcFv4nkVcv858NSpbR4NuSUuo2Z1fm3aO/NFH9Zfx VYX39mejNq129yJPxXyAE+G1uY7riYNOpcg06KzZG7YzXohQyxf5BNkg10MG0ealhSSa lQzw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f9si3417421ejl.636.2020.08.22.02.23.05; Sat, 22 Aug 2020 02:23:41 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726440AbgHVJWS (ORCPT + 99 others); Sat, 22 Aug 2020 05:22:18 -0400 Received: from asavdk4.altibox.net ([109.247.116.15]:52966 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725864AbgHVJWR (ORCPT ); Sat, 22 Aug 2020 05:22:17 -0400 Received: from ravnborg.org (unknown [188.228.123.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk4.altibox.net (Postfix) with ESMTPS id 8958F80516; Sat, 22 Aug 2020 11:22:12 +0200 (CEST) Date: Sat, 22 Aug 2020 11:22:10 +0200 From: Sam Ravnborg To: Enric Balletbo i Serra Cc: linux-kernel@vger.kernel.org, Jernej Skrabec , drinkcat@chromium.org, Jonas Karlman , David Airlie , Neil Armstrong , dri-devel@lists.freedesktop.org, Andrzej Hajda , Laurent Pinchart , hsinyi@chromium.org, matthias.bgg@gmail.com, Collabora Kernel ML Subject: Re: [PATCH 1/3] drm/bridge: ps8640: Return an error for incorrect attach flags Message-ID: <20200822092210.GA430436@ravnborg.org> References: <20200615205320.790334-1-enric.balletbo@collabora.com> <20200615205320.790334-2-enric.balletbo@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200615205320.790334-2-enric.balletbo@collabora.com> X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=aP3eV41m c=1 sm=1 tr=0 a=S6zTFyMACwkrwXSdXUNehg==:117 a=S6zTFyMACwkrwXSdXUNehg==:17 a=kj9zAlcOel0A:10 a=QX4gbG5DAAAA:8 a=7gkXJVJtAAAA:8 a=e5mUnYsNAAAA:8 a=64DzJaDqLos1TpBtdjwA:9 a=CjuIK1q_8ugA:10 a=AbAUZ8qAyYyZVLSsDulk:22 a=E9Po1WZjFZOl8hwRPBS3:22 a=Vxmtnl_E_bksehYqCbjh:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Enric. On Mon, Jun 15, 2020 at 10:53:18PM +0200, Enric Balletbo i Serra wrote: > Bridge drivers that implement the new model only shall return an error > from their attach() handler when the DRM_BRIDGE_ATTACH_NO_CONNECTOR flag > is not set. So make sure we return an error because only the new > drm_bridge model is supported. > > Signed-off-by: Enric Balletbo i Serra Reviewed-by: Sam Ravnborg I will await the updated series before applying. > --- > > drivers/gpu/drm/bridge/parade-ps8640.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/gpu/drm/bridge/parade-ps8640.c b/drivers/gpu/drm/bridge/parade-ps8640.c > index 13755d278db6d..ce3e8b2da8c9b 100644 > --- a/drivers/gpu/drm/bridge/parade-ps8640.c > +++ b/drivers/gpu/drm/bridge/parade-ps8640.c > @@ -200,6 +200,10 @@ static int ps8640_bridge_attach(struct drm_bridge *bridge, > .channel = 0, > .node = NULL, > }; > + > + if (!(flags & DRM_BRIDGE_ATTACH_NO_CONNECTOR)) > + return -EINVAL; > + > /* port@0 is ps8640 dsi input port */ > in_ep = of_graph_get_endpoint_by_regs(dev->of_node, 0, -1); > if (!in_ep) > -- > 2.27.0 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel