Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp790781pxj; Wed, 2 Jun 2021 11:29:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz48KGr10/D47DClon8u7yEfUkQhxyw26GEWxXzbvg6BSiDBhvo0ZyGxhNFot5QrRnMsTD5 X-Received: by 2002:aa7:d78d:: with SMTP id s13mr5217577edq.208.1622658548685; Wed, 02 Jun 2021 11:29:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622658548; cv=none; d=google.com; s=arc-20160816; b=j++cWs83GIw1zUtp1T/LyYQHinqPZRO6QPwNoc9ct5MDkiwEoonBzIMLrV57xgTR7F d0DYU61An2xMsNcCXH0oxMV1+VPMcHB1/cJA6nX0ghqx+FTww3QD0DFVcWj0FYYOgTRy DyiL7TpXKs8HVcj1PyQokZfo3KQz/ATiD2dc7ZvkQlJivCufkNhYvplDlsKcjqi8IEcc NEPSpE3WNBcLJ+Gkh7LgAFf2OnJYTK/FMcfGoe+MahJs7BATBhlpSe2Tsh36Nrdqjuwf 5DcwdVdXvbujSCTCS8niAjwPMx18ZpoG4RnRVHd7qnCXRzc1paHVoOkhSGRy+DgxTjN2 fR4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=46li9VZtJl6BBTVp7XJrgX+c1iLy/lAF8MWuxVkhzXc=; b=Kzhdq1LyvPVLARFp8CdbqSFykTCJ4V4mLqDevMlWnBQc7Of4V9cMe2ONosTYTZTX2R 4+RbzRh2QItT+nSl9GlwLFO6lS3BLpIsHN+34GqbzjrYvJYLEA7FCZuRp1JX+uv6+d+h s3Ur11SmdFHM/nKZmaRtspoonSVKCJZEOokWpv11KTcZ6JAkDvhtLzmvLLM+KMX9sXzJ 8AeIp5mM6KuW3M0DifSH+0TAdb2acf0ptBzk9CdkiOeZrkTDMvkgr5fGpvgAkIC9Ngr0 OcXpbb+YeavwrHZBVZMrjTa/yuyI2sc9Q9qganL+13+pcjT9p3Oa6knOd6GxeJHTIfXm 3LfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xs4all.nl header.s=s2 header.b=X2XBmdxR; 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 x9si497578eje.114.2021.06.02.11.28.44; Wed, 02 Jun 2021 11:29:08 -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=@xs4all.nl header.s=s2 header.b=X2XBmdxR; 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 S229641AbhFBS3f (ORCPT + 99 others); Wed, 2 Jun 2021 14:29:35 -0400 Received: from lb2-smtp-cloud9.xs4all.net ([194.109.24.26]:46717 "EHLO lb2-smtp-cloud9.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229467AbhFBS3e (ORCPT ); Wed, 2 Jun 2021 14:29:34 -0400 Received: from cust-b5b5937f ([IPv6:fc0c:c16d:66b8:757f:c639:739b:9d66:799d]) by smtp-cloud9.xs4all.net with ESMTPA id oVaklGpIBEXL0oVanlzEVK; Wed, 02 Jun 2021 20:27:49 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=s2; t=1622658470; bh=46li9VZtJl6BBTVp7XJrgX+c1iLy/lAF8MWuxVkhzXc=; h=Subject:To:From:Message-ID:Date:MIME-Version:Content-Type:From: Subject; b=X2XBmdxRFsvM4T2br68L3ySwt6qlOaxE+Jn0f3JrCyPfIzbsUiMxlq3p+WFTzbBHK 9wa1FmnF+gChIuk0CutmNgR4PzULrqncGOK5Mz6nHilW1imqZ5pR4k7aXmjpLnvjAh B2/mwfoQQ4vU+jPXqN6ZzuZ+SMU7mK9CqEqYhDnsdPau0dUr5o1MjL95mh4zEPW+Yv JIoxYSY30zPqIFIUH6k4YwnxWxt5eKWjw4jRpQpzcGBsuWbwnr8dDy4D5s85pwhJvw tE9pITAOm7edHiPpwvU67GZEJrwF+PRJseF5YXBVrK5Qst6ka9EGu7Bq0ryIf5DoRv Ttc2klPKisj4g== Subject: Re: [PATCH 9/9] media: dwc: dw-hdmi-rx: Add support for CEC To: Nelson Costa , "linux-media@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" Cc: Mauro Carvalho Chehab , Laurent Pinchart , Kishon Vijay Abraham I , Vinod Koul , Rob Herring , Jose Abreu References: <86557797e979ce29ed97dd1ed0db8499a6ccbc34.1622631488.git.nelson.costa@synopsys.com> <746222a8-4b3f-2655-c5de-15d25e8b8852@xs4all.nl> From: Hans Verkuil Message-ID: <5ef03a9b-01b0-5401-9db1-65c5e9b24cea@xs4all.nl> Date: Wed, 2 Jun 2021 20:27:46 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4xfMsl20ho2O+O7fB1eFdEiI8HfPyFMFHFP6u8Fo1stq729gn0uYALfgb8U2mZF8YulRppIURKGThsBMUPDb5tTbrK0S+j5neZAClyourURyQsJxbfBn6Y o8//8MJ2brfjP6aZT+gQZtv9xuuxabxxHMhAPcX1pK8Jpe3c1WWKvLZUi3GUTc8z7T+F6GRXhohYdwMoXqWgXKwNkiJEBMwIwAiSqt2mNzDlV6DGbOo24iGb WTorzMPyIuPHQYsux0Kf93UjHga2ihNGr6pHMi7sWCOGCBlwACVUZxNb4n7yr0u6vJGIENaF7/2cMH/mhrySymx83UXOi8HqdoJFkohkp/8gBtUfa8x6vf3A fnoxI/tOdUEQDlq09S5CKk6+0gLU5JQSD42x0a7Z/bf8JCLH81Ih0GmH6+mC9djS1LxBwc4UilBcG+GaX3gXsiABdycNPxBTe0AKJmMXV4UVFP5W0iUeTsb0 lkHC0iFuy0Ajg/R9wtnwoy0hrnc8z7WTpoBB08jPWxoq/Ap0E3rSRZEyfok= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/06/2021 20:20, Nelson Costa wrote: > Hi Hans, > > Thanks for your comments and feedback! > > From: Hans Verkuil > Date: qua, jun 02, 2021 at 13:45:45 > >> On 02/06/2021 13:24, Nelson Costa wrote: >>> @@ -3194,10 +3428,29 @@ static int dw_hdmi_rx_probe(struct platform_device *pdev) >>> if (ret) >>> goto err_phy_exit; >>> >>> + /* CEC */ >>> +#if IS_ENABLED(CONFIG_VIDEO_DWC_HDMI_RX_CEC) >>> + dw_dev->cec_adap = cec_allocate_adapter(&dw_hdmi_cec_adap_ops, >>> + dw_dev, dev_name(dev), >>> + (CEC_CAP_DEFAULTS | >>> + CEC_CAP_NEEDS_HPD | >> >> This cap makes no sense for a receiver. >> > > This cap was added in order to overcome a scenario that we have when > there > was an hot plug. The driver performs a main reset that cause the loss of > cec controller configuration. And in that case in order to reconfigure What do you mean with 'there was an hot plug'? Are you talking about the HPD signal? Or when a new source/cable is connected? Can you point to the code where that happens in the driver? Regards, Hans > the > cec this cap was added. Because whenever there is a reset the physical > address is reconfigured (invalidated and set) and with this cap the cec > configuration callback function (adap_enable) is called again allowing to > reconfigure the cec. > > Does it make sense? > > If not, what should be the best approach in order to deal with this > scenario?