Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6012705rwl; Wed, 22 Mar 2023 05:32:09 -0700 (PDT) X-Google-Smtp-Source: AK7set+G6U3PykXYHudxEVJWzclSNJhOiiCOLoKcX40gxgHZUTBHXotF+Q4H5X+zpdrxKH2IbJ1h X-Received: by 2002:a17:90a:353:b0:23f:b369:c14d with SMTP id 19-20020a17090a035300b0023fb369c14dmr3794719pjf.27.1679488328760; Wed, 22 Mar 2023 05:32:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679488328; cv=none; d=google.com; s=arc-20160816; b=lKb5kDyfnbrl2AhHqzlxopfxQYKhQE0qYxRcEgWFEkcRpj43UFCiozpsHOql7Fbcou JOUIH8t6SIzUoLFbSDKuB3tpuds0qboa4ae6ZtrTNbE8Syv0odcvWQz6zGkKvf+BfWde KrDtAl/xP+FgJ13VSRWyo3XLyLFYzwZkmAj82RFc/F5/osp0nfX6b2qHxc4qfaZbsL9M TmzZyvWvHo0kFjOXlPzVtzGMC6ACEThhdn/MnZfh3NakYLZQhMY5dFM2+cFsls3o81PN re/tsSErQ6WCGbOfYT09vjsXQi+V2WHCkSNKXm9cBPrr8s6A8gaULBDcnSHaMkmzrIXf hmtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=bT9m/CQJRxfWYS7sBYrxC/QbwBOqd5Amzg8H+rp6Brk=; b=kgIBSFi1/Z+xgsh2qHVT1hXB9whiYtSplPoTigUL1btQvG8ZHtoAk1+ftMiqczL1r6 ByVSQU+tNpGR2OOKLN/SXipOnQJBhlokpn/peJT01LW6w9VvxUrY5lzePUMqsQze1359 ZuBoW6RjT4KSOVUOQMxu5zDLJ2/+Ws3qOaq6t1cuD7xQPyhTveXU/e+ncd4KuYNEttvr Z8qnHaPd5r+9H3Psp41a7afUQdCsMD2z8dpA8y0PomUhZYX/DZsvk2BHMMa2gTynNl46 YCwe3frKSipcL77v+qcLOiMsk8i5q41m553pYUGYIKf44F3rIGoVEzgEHVR0//lW7uQs MsnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Jt2g7cBA; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d4-20020a17090ab30400b00235dc16de3asi1259004pjr.16.2023.03.22.05.31.56; Wed, 22 Mar 2023 05:32:08 -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=@collabora.com header.s=mail header.b=Jt2g7cBA; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230224AbjCVMRl (ORCPT + 99 others); Wed, 22 Mar 2023 08:17:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230182AbjCVMRh (ORCPT ); Wed, 22 Mar 2023 08:17:37 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7C6B1C587; Wed, 22 Mar 2023 05:17:36 -0700 (PDT) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 1276C66030E8; Wed, 22 Mar 2023 12:17:34 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1679487455; bh=VAG6FUY3zGW8SQCCkjFoofi11QfIA9Yc4jJfJjx5wh8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Jt2g7cBA/bAYa4/FkjN0yppVj7IbIST2E4YPEJFxOpsdtJh5M9O8W/BwpQ2FxdoHE wmI1ANsM5TIaMnsMEwMXYRD5vSiPiMTegKM14+ILFFUfJ3isbDMbnXNkS2IquZujmu 7aIHqakWjBJ2uoF0yXPBGaaZ+uMnEF2U8POENSKg52R8KRQ4Fxcqk5gbis3KWypwb+ UMHZrEj0AzHod6kfIL03+F07oGbSxXdSuR3UM7FsO9Veneq3rNpfbYu7TWpU887o9H Tnzsmt+b8xClwxiS+aHuydAqyXuiA0kBwJaEamDsaz4zVcECRlZmqlKjfdfDC7JBQg nL1p6Tc3n+YwA== Message-ID: Date: Wed, 22 Mar 2023 13:17:30 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v14 05/10] drm/bridge: anx7625: Check for Type-C during panel registration Content-Language: en-US To: Pin-yen Lin , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , Greg Kroah-Hartman , "Rafael J . Wysocki" , Prashant Malani , Benson Leung , Guenter Roeck Cc: Xin Ji , linux-kernel@vger.kernel.org, Thomas Zimmermann , linux-acpi@vger.kernel.org, Javier Martinez Canillas , Hsin-Yi Wang , Lyude Paul , =?UTF-8?Q?N=c3=adcolas_F_=2e_R_=2e_A_=2e_Prado?= , Allen Chen , dri-devel@lists.freedesktop.org, Marek Vasut , Stephen Boyd , chrome-platform@lists.linux.dev, devicetree@vger.kernel.org References: <20230322104639.221402-1-treapking@chromium.org> <20230322104639.221402-6-treapking@chromium.org> From: AngeloGioacchino Del Regno In-Reply-To: <20230322104639.221402-6-treapking@chromium.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 Il 22/03/23 11:46, Pin-yen Lin ha scritto: > The output port endpoints can be connected to USB-C connectors. > Running drm_of_find_panel_or_bridge() with such endpoints leads to > a continuous return value of -EPROBE_DEFER, even though there is > no panel present. > > To avoid this, check for the existence of a "mode-switch" property in > the port endpoint, and skip panel registration completely if so. > > Signed-off-by: Pin-yen Lin > Reviewed-by: Andy Shevchenko > Reviewed-by: AngeloGioacchino Del Regno