Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp3991166rwe; Mon, 17 Apr 2023 06:36:08 -0700 (PDT) X-Google-Smtp-Source: AKy350aJu75sFh7coFmx01X9IWhLsVfdL8YaxMr0VtJntoPqsEXomJ5g0aYpFlW+IHuUSKlC/20A X-Received: by 2002:a05:6a20:5484:b0:ee:786b:d6f8 with SMTP id i4-20020a056a20548400b000ee786bd6f8mr12818542pzk.57.1681738567783; Mon, 17 Apr 2023 06:36:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681738567; cv=none; d=google.com; s=arc-20160816; b=dsmg6k6cQRMp84pjke5AJmnIn4rL+F/t9OA3TorwzvjT8vfxMMGLKTyprPIKnOq2tB uF+GxDolTQ4TsUKhd8iwna/yzghUsQAqet4OVF0iCDSPzbvKEIsh7Uv7+d3epDWV8QVl bP9vm2CRu8NylW2I+tF5gR99vXFmNjhEIhMusqKmgShPEV4iBEE/t/yrj/kwTQO02Xgb Rt0RBGPpc0/lPTkkAln6bZm9fIvFRX3IR4zSdRXsS6PNwTICYCwuKr+UPyAOpU0cTmyf MxYYdFKiwF1nDnwcvpSvyoasjLXSoTZZT/1iEjbbUsXog3wSQ2n/ioTmkq+Hk/ZwPQl3 skSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=rWeYE2QlGhebOfbOgpqpS07WRbJAyBANDjy60iSyA0M=; b=qKABVcGnmu7fMqVXww5lZQk1jcobhOw5Lq0M6wShkAmwaAbwlG8kLySmct0xjBQIFP AMQtSr9F3AZbCAevdRW6xtFqixqRPJNxeb35ylpU9A5vXl8YxraI0voFKkobPshZymrw YMG9Qv8dXmp/hKouM0zf/LUogiuj3yk9pWjRVvYFs7N25X2gxCY/9e7vVhel9F/CKkLN kqWtDzdrusLXipRNhNR7FzTYEp7T/Od/0cA9sXGdy+G1FeN5pOKa73Z5TNgjplha8w0n aJ/e0kh+3ROCfa9eoZazRXi4U9XU9Jw97FVmySOB2QI7HSzyjgompFkswIu0wAi0uD/W nFTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=K+tF1m4C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u34-20020a632362000000b0050bf225ba32si11525465pgm.706.2023.04.17.06.35.56; Mon, 17 Apr 2023 06:36:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=K+tF1m4C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230257AbjDQNdK (ORCPT + 99 others); Mon, 17 Apr 2023 09:33:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229988AbjDQNdE (ORCPT ); Mon, 17 Apr 2023 09:33:04 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 383AD768F for ; Mon, 17 Apr 2023 06:32:59 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 78952621B2 for ; Mon, 17 Apr 2023 13:32:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5EB2C433A0 for ; Mon, 17 Apr 2023 13:32:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681738378; bh=YnO373PW8kFPYYEga0WKpnzfKPRu65AqgaMNSJcVERc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=K+tF1m4CWen8Pb45l6Ofuvy5jJZrWa5OkbOtta7j9xSL9G6y1gPoqts4Q7UuO4GIY vhukENSBwvZtBPGFtgwEl245KEawE/4qE3mlVHVJgDb5sUOUiYCAcJVEk/c6neLYTl gWZ+D5r+BhCMIH3FySxEc1RlW1VGUGCUhFO1J3cCv6Ok5U5Dk2R4prsB113sohqUqt nqBChqzzQf2rpWp0MJuiPL2aaKMhVj/aTsoWw5SNZn052dMEKL77RG5Ft0cQV0OkaG n8EkRY3W4SuI9QX8da2TQcMPdtePDgCAt7XK27g20SCvea4ea8RyHM4+SgxBlXm0Eq map3H+TcMyv/Q== Received: by mail-pl1-f179.google.com with SMTP id d8so421520plg.2 for ; Mon, 17 Apr 2023 06:32:58 -0700 (PDT) X-Gm-Message-State: AAQBX9d2bgrgtgND0/EOnM0miEyqrJUZ3m1jF6e9Yl6g+2O0plT7qUBi aPpWoh8EmtPU+Fn02wXSRbkq46NTbC3yE60QYHGJFw== X-Received: by 2002:a17:90a:2944:b0:247:2c8e:9911 with SMTP id x4-20020a17090a294400b002472c8e9911mr3535372pjf.5.1681738378299; Mon, 17 Apr 2023 06:32:58 -0700 (PDT) MIME-Version: 1.0 References: <20230415104613.61224-1-jernej.skrabec@gmail.com> <20230415104613.61224-3-jernej.skrabec@gmail.com> In-Reply-To: <20230415104613.61224-3-jernej.skrabec@gmail.com> From: Robert Foss Date: Mon, 17 Apr 2023 15:32:47 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/3] drm/bridge: dw_hdmi: Handle snps,disable-cec property To: Jernej Skrabec Cc: andrzej.hajda@intel.com, neil.armstrong@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, wens@csie.org, samuel@sholland.org, devicetree@vger.kernel.org, jonas@kwiboo.se, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Laurent.pinchart@ideasonboard.com, hverkuil-cisco@xs4all.nl, linux-sunxi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 15, 2023 at 12:47=E2=80=AFPM Jernej Skrabec wrote: > > New DT property allows to skip CEC initialization. > > Signed-off-by: Jernej Skrabec > --- > drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/= bridge/synopsys/dw-hdmi.c > index 603bb3c51027..e7e8199d2fb1 100644 > --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c > +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c > @@ -3615,7 +3615,9 @@ struct dw_hdmi *dw_hdmi_probe(struct platform_devic= e *pdev, > hdmi->audio =3D platform_device_register_full(&pdevinfo); > } > > - if (!plat_data->disable_cec && (config0 & HDMI_CONFIG0_CEC)) { > + if (!plat_data->disable_cec && > + !of_property_read_bool(np, "snps,disable-cec") && > + (config0 & HDMI_CONFIG0_CEC)) { > cec.hdmi =3D hdmi; > cec.ops =3D &dw_hdmi_cec_ops; > cec.irq =3D irq; > -- > 2.40.0 > Reviewed-by: Robert Foss