Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3146343rdb; Wed, 13 Sep 2023 03:41:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEnYxsNoGAMwUCnQM8TiuNUakmqgr2qzPZZYizuBET6heIWYDRUkcxNKe/31duh/AstS8p0 X-Received: by 2002:a17:903:41c4:b0:1c0:bcbc:d5d with SMTP id u4-20020a17090341c400b001c0bcbc0d5dmr2362984ple.61.1694601667822; Wed, 13 Sep 2023 03:41:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694601667; cv=none; d=google.com; s=arc-20160816; b=RhQwrvyvN+2Zje12eOLxjlYwp+Ukg3xbtEdIa2CqjgXkbLLHVQTGqSYg9IwiyrFv6G /hvjeCCL7FirAbTA8NiDEDQbfIDQaZoySpTT3gTKBeXZaVsiUhuUJhaxBoyEQgjnHslO qGp3E7fGQF1thTE+8+NC325vNXmflJbHn60/z/cLA+RVllbV3zVfbwZAcKugqyAGdh4a 3KgdjRRFsPDVXWLMpUPTt2mnGpg/WE4iimcax5KE9nXNK0vID/onDa9o1wmrFOg2nK0C PfkIcl3Uf2nEN1bX4GsN7GyeEMox2Zg4InRxMVjFK7nrSjgn3FiVD5GnD0SGRAJALfmz 6LPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=2dlxVo/eRRyH7NkP3MGNbRrwEXhrq7k243MrUgVUN1A=; fh=6vHfIkUr9TnME1uUydV4pdOjvPqW9zZkKwSzZtjRGM0=; b=D4o7LYZDA1uVuWEybv6kXty65SVfhACzPVujE0DNK7kDDYSIygKT8qb5uY/czqQlAO ibj6sHL1jTyyC9fECPrNp/43z9jDQua3ywTf8MVqF/+7PaNWQ3LQbPwgINxbb1m5oQ2s EBO1G/odhutPf2mgE9ZukbixRzcTUfqv7S+Z2Ar7hcBJF5uidmHfmpA5a8WcRanx51A3 wnnqsB+4B02vmyZ926P6U8P1RkzYdrwZaRHMd+SOzN1Iy7a1iDheLRI9k3Sha1ZUmBxG vTGQoyN3gcmY6Y5NDuXpwzUyebv+9uSgFPVoPUJY/ld6KEiCm8dixTUQu9xgsiGCB5aT yK7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=C0Qmswud; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id m3-20020a170902d18300b001b53a3fbcc3si9691770plb.328.2023.09.13.03.41.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 03:41:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=C0Qmswud; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 0D8BB804A9FA; Wed, 13 Sep 2023 03:34:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239545AbjIMKeW (ORCPT + 99 others); Wed, 13 Sep 2023 06:34:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231643AbjIMKeV (ORCPT ); Wed, 13 Sep 2023 06:34:21 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD419C3; Wed, 13 Sep 2023 03:34:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694601257; x=1726137257; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=aSLZAhLlCUcLtEt71s9aVgFB3sPUO22k85ZuXX7lIvk=; b=C0Qmswudx36Cx1JSwSQi1JrAbNLUKyrE3OzO/BSKVw9soAN1W/S3bQcB eRkH66UHWXRHATsEaAXVhkNCMAx+khf52If5VuQpUn+hS+JbkyA5Dl+Iy 6TkXj7isNDZg/o+n6rrVlZfqr0IleNjdNUDkQB7ksbe6XXI04MagUfYz+ wB+DFgnH61/wBVsEzmEOqWp3YnzOeP8vpPiWMnA/La4DFtDqoKC5neRzf 70luKTEMlfZEQatf8zETCu/aqLpgpC4hHKT+l9hkDnwV8XWZ8GrDyv3bS BDPuCaDJtRdZsnEXbSbeQ7jCz9Yqj+S/Y1IjLKGmLirKJpOyXqDUXtUzF Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10831"; a="377534957" X-IronPort-AV: E=Sophos;i="6.02,142,1688454000"; d="scan'208";a="377534957" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2023 03:34:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10831"; a="990870840" X-IronPort-AV: E=Sophos;i="6.02,142,1688454000"; d="scan'208";a="990870840" Received: from kuha.fi.intel.com ([10.237.72.185]) by fmsmga006.fm.intel.com with SMTP; 13 Sep 2023 03:34:09 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Wed, 13 Sep 2023 13:34:08 +0300 Date: Wed, 13 Sep 2023 13:34:08 +0300 From: Heikki Krogerus To: Neil Armstrong Cc: Dmitry Baryshkov , David Airlie , Daniel Vetter , Andrzej Hajda , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Bryan O'Donoghue , Guenter Roeck , Janne Grunau , Simon Ser , Andy Gross , Bjorn Andersson , Konrad Dybcio , Greg Kroah-Hartman , dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, freedreno@lists.freedesktop.org, Won Chung Subject: Re: [RFC PATCH v1 01/12] Revert "drm/sysfs: Link DRM connectors to corresponding Type-C connectors" Message-ID: References: <20230903214150.2877023-2-dmitry.baryshkov@linaro.org> <6b6bacee-f7b6-4cfe-be3d-24bda44bfbcf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 13 Sep 2023 03:34:23 -0700 (PDT) X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Hi Neil, On Wed, Sep 13, 2023 at 11:38:19AM +0200, Neil Armstrong wrote: > On new platforms (starting from SM8450) UCSI is mandatory to have > pmic_glink_altmode events triggering. You can also populate the typec devices conditionally, only if UCSI is not supported. However, I took a peek at drivers/soc/qcom/pmic_glink_altmode.c, and it seems to be mostly is dealing with the muxes and retimer, and sending the HPD notifications to the DRM side. All that is already done in typec drivers, so there is actually a potential race here when UCSI is used. On top of that, it is sending two commands to the PMIC (ALTMODE_PAN_EN and ALTMODE_PAN_ACK). I'm pretty sure both could be handled in the UCSI glue driver (drivers/usb/typec/ucsi/ucsi_glink.c) if they are even needed when UCSI is supported. So why do you need that pmic_glibk_altmode driver at all when UCSI is supported? I don't know the hardware, so I may be missing something. thanks, -- heikki