Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1621587rwd; Sun, 21 May 2023 02:37:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Q8ddgHn96swZNivZqR9A9tQ7yYf6muXDdXvtoWrB2Rwe8cK4AMHKYPTDSr0YxaQT6xpdl X-Received: by 2002:a17:902:ec8b:b0:1a9:4601:a7c9 with SMTP id x11-20020a170902ec8b00b001a94601a7c9mr9883499plg.12.1684661877918; Sun, 21 May 2023 02:37:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684661877; cv=none; d=google.com; s=arc-20160816; b=JVzBRcCvTh4gZve06+q0c93SYr5o/mYwST/A6nCnPj2XCNoRYj2yA9Qth7pvt7nMHv PKny8M6oQdJ9Z1FQ8faB3w63tePlvYyBbEGd5acqxkaoKHMTEiK1dniAu+W+xJBfYqDA 9t/wwS2DpGoljlshTWHICQTLqnU8pjEMQDQe9dcxnS+zMY6GFjmjxt1kjheadj/8sb1x DwnSx5Voq8X+TkX83R6lHA/vOzFbZCGCjQqTpv75gPGLubeSFzpwqK4P+X9yZdH5D/zo +sJgHKsEYZrv+KdpL1IQseRB7204tObQsv+GNmna7ECydsgLk0OyiUD6QHmwkrTkwwcD VU7w== 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:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=FKZukhm5GSKmU51vFPYjTGL4UgfSHtcD+TagC/Ptxm0=; b=dOe1bVvlRDCejLZKIWpFHsdN3KH/6FrMyYIrCINrgcFDAL6ptoD3cEXIKUCrUiZ5UG fSi8ca+O2i3mm6nqa5i6gURD4sIFTU6dBFkHsLRwGRfDmEpY91+5ZbkkcGKmX7CLBIAv Abx/YllpDBt+MOE4ucF4sfumJ7Ju+zNCY3EYwSg2oxi/wAAZbIytO7fOKQ+6qX9oOjbU EpWBWAeBR62ApWVpG27ZkCb0U1D6sA1wTT6WlFVBuZ3MaQP94hcyM0tBjgk4rymmF3nQ pnpl13sWo4PcZast5h/+mUBu3pIM80sJL4Q45t9QDJJ9Mgu9Ep2sNtLPgmi9/LEjY7Hq l5xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="skLr/Edp"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ja2-20020a170902efc200b001a27afc07d9si1307989plb.146.2023.05.21.02.37.39; Sun, 21 May 2023 02:37:57 -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=@gmail.com header.s=20221208 header.b="skLr/Edp"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230042AbjEUJXo (ORCPT + 99 others); Sun, 21 May 2023 05:23:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229511AbjEUJXn (ORCPT ); Sun, 21 May 2023 05:23:43 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72E85BE; Sun, 21 May 2023 02:23:42 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-953343581a4so722371066b.3; Sun, 21 May 2023 02:23:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684661020; x=1687253020; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=FKZukhm5GSKmU51vFPYjTGL4UgfSHtcD+TagC/Ptxm0=; b=skLr/EdpMfEGH9Rbaj/MDqy/ZaCgApTqRce7kKKb/XpIOmxL5ymm0tNmZTn+iosc5T pCI3QttHtALspn/OgQ4CrnDoE/S0wLEUD2mjP/0KT3yfLlcBGDtXdwl4nzjh4LEsAW55 fRPctXrHaSyg3rch1vDJ2o5yzUXb1A18zRpFXRXV5HIH6jzLRu1pa2L7yKawF227dQmq uLWwgNJLYrWX6dIFhrKvw5i2ktBJSkKvZXIiTp1Di66t+lSgvkbD3urv7w5hyFFjEAaJ JbuRkwrpvzf+w0wh1H5w5O6z4wrX6RXTPbkaSodDnd54zUW3q+FZ0mDG5FeFeE1Shweh RkGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684661020; x=1687253020; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FKZukhm5GSKmU51vFPYjTGL4UgfSHtcD+TagC/Ptxm0=; b=JvbRCJrACtNhwZxJFR4Oh2uXB5RK4lEfb48SYUWn4J/0vyejhPomNyPPQk0Zea5Q6a lgPY2kKvzbbaCrawrN7Sq4pCKnrR4KuO6r5MK/dBMEBt1ImLBcWfJBgJC3g/r1IVtb87 RLMXFolD7AahHHxcDyIZXg39tpk71InRHAQxxfeN4fG2cCvN9QJKSnjs2WxeP1i40Qvc wCE2tqZQsF3cSL7ZVTRrgWQISGQzOh9asFwLjt3CuLpiH1uygc0OTkU5c3lRFQzvReEO 7VQ2GgXVJRAnanIiq6aHELewENCNhbNscIG5vbMLBgRaUhT9Re9+1abj7DzqT8gNKwi8 YB9Q== X-Gm-Message-State: AC+VfDxaxN/grMGwhLQbypxJ7LtiZAN60zT4/ePuZgkD/jiNkzGlpHqD AE/O3CTvdLL7duACs0Wlx+U= X-Received: by 2002:a17:906:da89:b0:94e:70bb:5f8a with SMTP id xh9-20020a170906da8900b0094e70bb5f8amr6049235ejb.66.1684661019559; Sun, 21 May 2023 02:23:39 -0700 (PDT) Received: from ?IPV6:2a02:168:575a:b00b:a38f:4e43:c984:c3e8? ([2a02:168:575a:b00b:a38f:4e43:c984:c3e8]) by smtp.googlemail.com with ESMTPSA id gv3-20020a1709072bc300b0094f3b18044bsm1711947ejc.218.2023.05.21.02.23.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 21 May 2023 02:23:38 -0700 (PDT) Message-ID: <6f1e866b-a96a-3134-c735-c941681b0638@gmail.com> Date: Sun, 21 May 2023 11:23:37 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Content-Language: en-US To: Mario Limonciello Cc: linux-i2c@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Evan.Quan@amd.com, Lijo.Lazar@amd.com, Sanket.Goswami@amd.com, heikki.krogerus@linux.intel.com, ajayg@nvidia.com, andriy.shevchenko@linux.intel.com References: <20230518161150.92959-1-mario.limonciello@amd.com> From: Gregor Riepl Subject: Re: [PATCH v2] usb: typec: ucsi: Mark dGPUs as DEVICE scope In-Reply-To: <20230518161150.92959-1-mario.limonciello@amd.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 > As the power supply for a dGPU is only for powering devices connected > to dGPU, create a device property to indicate that the UCSI endpoint > is only for the scope of `POWER_SUPPLY_SCOPE_DEVICE`. Is this a given fact? I could imagine that a dGPU device would be capable of feeding power back into the system, for example when an external docking station or display device has a power supply connected to it. Although I don't think it's possible (or safe) with a desktop system, maybe a portable computer with a discrete GPU would be able to do this?