Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp837465lqj; Mon, 3 Jun 2024 02:14:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUTkNpntdvF94Idub0lhUW3JObSEVQObfeWS1Bf7BH/6fufG1Cgh55tf/vc/RkfUaKTnPBoGz9Vs/pu7mK8otUfdENujSHrceCmoa6hMw== X-Google-Smtp-Source: AGHT+IHwaA1s5lGkyt+lPIh22tgA9ePs9W3xs1fpTqiwY6RJoKlj56pYYmYGAlrFj0quiUXL0UMq X-Received: by 2002:a05:6122:319d:b0:4eb:12da:14c7 with SMTP id 71dfb90a1353d-4eb12da23admr4328054e0c.6.1717406080272; Mon, 03 Jun 2024 02:14:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717406080; cv=pass; d=google.com; s=arc-20160816; b=izeDxqedn4rlh7Yh5q2m1EfA4FzLG8A7IcYpIRmeMlZ5ELcGw+orruUHBz1mfWGmkZ izuIUBL9jaPKnnChTrhw6sZCIyLsMJX30vu0ni8sjE1gKRl88H7C33gJt9JwnshWFf2P LSfuqu5wo63bTanlvLe75nohEvVz/8zQlkq8z/WFME2DCav67EUMJnLJlfcfbnkdrDGA HqT2yckFzgQI8eFwAMfT93j3tXoZS/zGQjnenE+jXPYZXs5Rz5jdJqFuwrEJZZgY7McU q9W27DsS4Iymxx2lrN+yCLWzMX1CfyOR2T5MzDZEQ2At7kswh+GQxmQ6uwcWKJ5bjBZa oS2w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XKgy5bUhoqEsyEYjFqyDngDqgkVT2ZCqd/BPLRjzkQQ=; fh=iy29NWqipxoS+cCxwcELosrt3OlGBq5xwDbc/PNzevE=; b=UvxV5ftdx03ExI9EWv0ky2D+ZgCSSyr3I92v2Nf0Q5lY5Osjj0csuAw9c74nFn8/Xb lpFTqEa120CbGxrIycxVMhujc7gfc5Py0oGaqp2CxtRuJnuxrnTFbj82hZL0FdMKYQ9f k/aYagezeXc+ARvs9T5ODaydjl9Fa3kUpPCUtwwlkYZGbVSWe+HKQZ1msowIP7YoCfg2 iZ2qZZNGSBaXxh4MK/WqcyP2aUDBSNwi92Jmk24V+GL8Tt4UdVMLgnQhzxHgZRiRtdVc 0ubDMW9zJQwiPxKKRFqpdQgpC3M6tV3kj8mvsEHwAlPqyJAtoea1IjsZUCI2OLH7T88w JQmQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JaT8tNYq; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-198844-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198844-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43ff23ae81fsi80359051cf.6.2024.06.03.02.14.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 02:14:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198844-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JaT8tNYq; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-198844-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198844-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C14EA1C20B69 for ; Mon, 3 Jun 2024 09:14:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 35C6E7EEE7; Mon, 3 Jun 2024 09:14:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JaT8tNYq" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4BDC858AA5; Mon, 3 Jun 2024 09:14:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717406073; cv=none; b=jumGwkFmtWtc4Hg9uYKaqS95iCJn4EWJuqaj8cmrDqdFW1q66uv8yIpWfhBuihmWw4R3ivrmMX5KzXdrDSw0vJTnwNL0QGRYIyAxGd9QbdkAaH38KYVVNLBNypZa4GeBVVZCIPy9BOWUL0uoceZRHvFqIOJlZGyHi9MSl9t3KdQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717406073; c=relaxed/simple; bh=kRaKkGVAxc9uve0nW7HSdUn07QqNL4yoUYMpcu8Ag0I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=cUU2tYyT49dhCLwqwFHAE+06xWg1dULDWkykJtrKTule/NFQl0k/fkDlePWLXlT9wMuhwYnQB4xvfOG/h2PSQ8/Duqk7Ebr37gJq4puSvKS9a3SI42L2XLQQCfiT7gfuR6aR4UStL7rA+f0t77guZptorvSOhuxRQ2dpPQmqtnM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JaT8tNYq; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5334BC2BD10; Mon, 3 Jun 2024 09:14:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717406072; bh=kRaKkGVAxc9uve0nW7HSdUn07QqNL4yoUYMpcu8Ag0I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JaT8tNYq6tChS62uoH5HkxxvhHNt0fq4UqSqXZ2BQ2WvvFHv8FDhVBKzak7GMUXZW l5oYvRL15/zrdG+1W+v7aU/YY2gfPZu4GTJ272+854ztdXAADOBnuikBvgtfVl8A95 1Mc4udT/IXB2iDuvG/DTa7kP8dqHN/ZOTEmE7oWiSi/xCcjSTUG9D6pKh2L3AxkqnL B65EAooMZ3t5HXfuCRFz7U329MIdWeTDw/PYVmXdmBKuK6ocIESTkaQ2WXRToAh+g7 7X9cBgt0BDBPmBr1WbeLrVwhX2mMXFO1O5Dc2b8f/aTY6wT3WTXT/DdJxXtPT6yKVQ /3jcIQvCRvedw== Date: Mon, 3 Jun 2024 11:14:30 +0200 From: Maxime Ripard To: Dmitry Baryshkov Cc: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 3/9] drm/bridge-connector: implement glue code for HDMI connector Message-ID: <20240603-proud-caiman-of-fertility-ceb36a@houat> References: <20240531-bridge-hdmi-connector-v4-0-5110f7943622@linaro.org> <20240531-bridge-hdmi-connector-v4-3-5110f7943622@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha384; protocol="application/pgp-signature"; boundary="gko36zr2ozjx53lj" Content-Disposition: inline In-Reply-To: <20240531-bridge-hdmi-connector-v4-3-5110f7943622@linaro.org> --gko36zr2ozjx53lj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, On Fri, May 31, 2024 at 11:07:26PM GMT, Dmitry Baryshkov wrote: > +static int drm_bridge_connector_clear_infoframe(struct drm_connector *connector, > + enum hdmi_infoframe_type type) > +{ > + struct drm_bridge_connector *bridge_connector = > + to_drm_bridge_connector(connector); > + struct drm_bridge *bridge; > + > + bridge = bridge_connector->bridge_hdmi; > + if (!bridge) > + return -EINVAL; > + > + if (bridge->funcs->hdmi_clear_infoframe) > + return bridge->funcs->hdmi_clear_infoframe(bridge, type); > + else > + return 0; > +} > + > +static int drm_bridge_connector_write_infoframe(struct drm_connector *connector, > + enum hdmi_infoframe_type type, > + const u8 *buffer, size_t len) > +{ > + struct drm_bridge_connector *bridge_connector = > + to_drm_bridge_connector(connector); > + struct drm_bridge *bridge; > + > + bridge = bridge_connector->bridge_hdmi; > + if (!bridge) > + return -EINVAL; > + > + return bridge->funcs->hdmi_write_infoframe(bridge, type, buffer, len); > +} Sorry, I didn't notice it before, but I think it would be good to try to make clear_infoframe mandatory just like write_infoframe. It wasn't possible for the main helpers because we didn't have enough info for some drivers, but I think we should try to make it mandatory, and be prepared to relax it if needs be. With that fixed: Acked-by: Maxime Ripard Maxime --gko36zr2ozjx53lj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iJUEABMJAB0WIQTkHFbLp4ejekA/qfgnX84Zoj2+dgUCZl2JdQAKCRAnX84Zoj2+ dnx8AX9XGJKgzSr6M5O5oiSn0kjo+G4+uANEp9GROPwPZJXKhHgP5Cc1hApfYjTc T5Sf7Z8BfR0cMmOS87bWO4k0zBEaJatMc7o2FVqt26H48mFflPAiip89PYJdUOZw f+QP0ptGZA== =D3hE -----END PGP SIGNATURE----- --gko36zr2ozjx53lj--