Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6371484rwl; Wed, 22 Mar 2023 09:43:34 -0700 (PDT) X-Google-Smtp-Source: AK7set8lweUOHbEIT8iVTxYxqOuY60uQasKIlDS/04Hh1zCVdM7fr2KKc5wVJu9+u2+vqkCz2uTv X-Received: by 2002:a17:90b:1bc6:b0:23f:aa16:bdd9 with SMTP id oa6-20020a17090b1bc600b0023faa16bdd9mr4285958pjb.44.1679503414282; Wed, 22 Mar 2023 09:43:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679503414; cv=none; d=google.com; s=arc-20160816; b=QgtwS/sgu4dxi++MxmSkEuwK0nhnWqvWFE9om88DdzvUrBnZ5nWLxQdxeJTO/bCiZ4 AaAq0+/0eeEv6eixOyUP3Rl+/r7gP+ad3UvIjwu4lYNOFZ/jUVKva376wolxCKWQu3zq UCSx5cokrtUlHY+7At/UJiyp5l8093WctAtEGMCTAKJVGxZ5UnYNgVRHUhFFQutsH4T6 xw4f8uZi3JTT8C8a/mHNZOMtf5huUuuO7bcZoi9uA9VC894spjdWFpjFcAIlVxupVkOD 7Cao9J6ZWguCSKYySG6OhHFtDAjppaW7oaUz6DWuQU6LRjH+agcJXpRpG5dh3VCEWqsw iTFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from:dkim-signature; bh=q1NVd5T/CLksYwRK/8qkxTBoSUTcQ3jCe6kRgPbmAEA=; b=XKHmJFJMxgY3MfPsftEro1Ewi8iTyfPEuNc8DuKssaUtypI9JCx7lSx5kX4F7k/Qe6 zXLo4ezoP8AOxScHnO8dRVkc9e/vOpccBUuksHoqz4UmZcXzepWFI9P8BOnHDIc553Ek oexPIxrS5lyohdRGEtji1EnBBq7wg/XIEewupDvq68BL4nUrjxzv0aJpiOfENJC6L6Hk DIJe+x/KUFYmsEzTojm5WjJBsWpjJZpKgaoA2Z+cRxDygprLJJVEaFEepZwv+72KL3ZL uBHKP8ScP5TdbCy79mqtLj+PQVw5R++aZWTbF4nv9dzfHVF22kuzVrEsGUdv+9WXucbX efzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iBLxbntt; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hk2-20020a17090b224200b0023d282930e7si23401905pjb.76.2023.03.22.09.43.22; Wed, 22 Mar 2023 09:43:34 -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=@intel.com header.s=Intel header.b=iBLxbntt; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229786AbjCVQ3E (ORCPT + 99 others); Wed, 22 Mar 2023 12:29:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229990AbjCVQ3B (ORCPT ); Wed, 22 Mar 2023 12:29:01 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9782453739; Wed, 22 Mar 2023 09:28:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679502509; x=1711038509; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=KfUvgiz4DVLzFaYO7oEOLPOOhMl2JyBbYso8oKRbz/4=; b=iBLxbnttfPgbBL+Hn6mJCMQwPWgQpUpPd8Hu1O9g9KJ3fRzidD/eoUsX G1h8DhvoAZZGvVFzc4dLyYtAB1T87PHCnnsKqxkVCSJLHs0hWEJEkIu6b 3+YtPCHMfLH6JrboGeoay2c7wzI1E//R9skB6CHyUJ4zFpN+C2wzpnQhd kXeMePv2JwUGsEoz5qvh54z8gevBFFuXb8VN9JKVp6iP64zyH6KqswbrL v2wzPX5hLMAHaxYZwjlSfpZiErMoopSQJNbFdMkxZ4fJHKZUo+chgmWV+ QnvxLNVTIJg06YD+HFLMNg/M+F17ShfwMfZYgKLZBh71dlwb+6y5n4e8P g==; X-IronPort-AV: E=McAfee;i="6600,9927,10657"; a="339300029" X-IronPort-AV: E=Sophos;i="5.98,282,1673942400"; d="scan'208";a="339300029" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Mar 2023 09:28:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10657"; a="771102926" X-IronPort-AV: E=Sophos;i="5.98,282,1673942400"; d="scan'208";a="771102926" Received: from jprokopo-mobl2.ger.corp.intel.com (HELO localhost) ([10.252.61.221]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Mar 2023 09:27:59 -0700 From: Jani Nikula To: Andy Shevchenko , Pin-yen Lin Cc: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Daniel Scally , Heikki Krogerus , Sakari Ailus , Greg Kroah-Hartman , "Rafael J . Wysocki" , Prashant Malani , Benson Leung , Guenter Roeck , Xin Ji , linux-kernel@vger.kernel.org, Thomas Zimmermann , linux-acpi@vger.kernel.org, Javier Martinez Canillas , AngeloGioacchino Del Regno , Hsin-Yi Wang , Lyude Paul , =?utf-8?Q?N=C3=ADco?= =?utf-8?Q?las_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, Andi Shyti , Dmitry Baryshkov , Douglas Anderson , Imre Deak , Linus Walleij , YueHaibing Subject: Re: [PATCH v14 03/10] drm/display: Add Type-C switch helpers In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20230322104639.221402-1-treapking@chromium.org> <20230322104639.221402-4-treapking@chromium.org> Date: Wed, 22 Mar 2023 18:27:56 +0200 Message-ID: <87edpg7nub.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,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 On Wed, 22 Mar 2023, Andy Shevchenko wrote: > On Wed, Mar 22, 2023 at 06:46:32PM +0800, Pin-yen Lin wrote: >> +#ifdef CONFIG_DRM_DISPLAY_DP_TYPEC_HELPER > > Ah, maybe this should use IS_REACHABLE() ? Personally, I think IS_REACHABLE() is a build-time band-aid solution to a problem that should be solved in Kconfig. :p I think it always means there's a configuration combo that shouldn't exist, and it's a surprise to the user when they've configured something, Kconfig has deemed it a valid configuration, but they don't get the feature they want. As a user, how would they even debug that case? Double check configs, don't see anything wrong. BR, Jani. -- Jani Nikula, Intel Open Source Graphics Center