Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp190781lqr; Wed, 5 Jun 2024 03:10:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXt2+ZsRpoGmzK0FJ5lnPjRDe0XotuEKG02+psd18iSLjqJW1SqPVLsxPw03/iW0IBtdkLEFDesiciCfOh2trFjG3kQ5IX6IQxdYnXDgQ== X-Google-Smtp-Source: AGHT+IEuEb7vEPFnXQsVTHGpEpGr/QNWHtTY6/luI4u1Qwr7lJigXNZyvVPz6FvmxRR6G12/9CwB X-Received: by 2002:a05:6a00:9a1:b0:6ec:d972:c3d8 with SMTP id d2e1a72fcca58-703e5969a81mr1983182b3a.10.1717582234899; Wed, 05 Jun 2024 03:10:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717582234; cv=pass; d=google.com; s=arc-20160816; b=jZYRsHjljTdI4/H1AO9+Am+eqjn39WFQTJ248TD9OPIYgX6vfoU+4ceHnlCMHBHQE8 Clz7YG5iMquvLicCbDPvlf/5pwK5CqLqvdhU8mvxe0/3Ulkfq+NHqp3183MI1Hn98luI QMpxWqSu7lIpLFBzqyGDOB7yYeV+ZHpvBwX6DeRN+QkgHI9s1fvPjHgFmyDSeGKzuAIm +TxG+d94Wk+UaqwkI5FvfhpANLHVYuzgYcpRFd7shtOYDpsFsaPZDWvQ4Qu0VQfwFxUj 73MXxcILaJYNn2yNlPP/RkvY+//ZHQHannIKrZeVsjTHDOwKINBu1eLClUtmNl+Ir+Iq m4xA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=feedback-id:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=vpLOr0dZjlNrcP+uDYVX6bFYJ1hFVQa//bGLvxJUs7k=; fh=kwV/dEe4hE33y4vwFYjDLIxiq/AzOssolzOMidwwk/8=; b=q1P2r4gKqyC7FxjfjfFs6ZJ6ZVMadPp/3zSr313dYWEBvyQYyl1onCnRikeWw1i6SU PfPqyQ+phD7N8FwaPHQD6w380lcl0p1zFCpW2pUwMJkhAs3EL2h3FPKEqzRVC24sPUEk jye4mrC1nORQbIcdJpK+PUyZ/y5x4YMfGeAKRVOws3sO0+6sX8wrt/9P1Lm0OtLMvUgy PQe65N38KdeniFasPfh6NO0+L/28pOYF4NHvt3wQLCymrfbU+i0Sghvwc/xt15JfIDRH kzgRUzm3ZZHoVPDSD4ZveQzPueJ2rMgxLLR6/ntEK1FJDAtd0RkkbnNxuI9xsL9CeJwU IrCA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=JivFtTII; arc=pass (i=1 spf=pass spfdomain=rts-flowmailer.siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of linux-kernel+bounces-202171-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202171-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-70242b0a4fcsi48316b3a.218.2024.06.05.03.10.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 03:10:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202171-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=JivFtTII; arc=pass (i=1 spf=pass spfdomain=rts-flowmailer.siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of linux-kernel+bounces-202171-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202171-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 866F4285AEE for ; Wed, 5 Jun 2024 10:10:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5FB47190490; Wed, 5 Jun 2024 10:10:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=siemens.com header.i=diogo.ivo@siemens.com header.b="JivFtTII" Received: from mta-64-227.siemens.flowmailer.net (mta-64-227.siemens.flowmailer.net [185.136.64.227]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E09B01946CA for ; Wed, 5 Jun 2024 10:10:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.136.64.227 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717582220; cv=none; b=YETPkSKknXJkh5I3KSaOcAsUa8seaZEKEf3mKRrS8bdblX5HnoV4F/xd77/V18dqMec+xsqBPcJ5Kat8LkImRyv0+nFt1Ib4pWZRbC66kHSufJNhIOF6noYneQ8Gexd5TagI2zUdM7M12tNjLvag4jM6ulj6QlL0ompPVJa5Amo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717582220; c=relaxed/simple; bh=vpLOr0dZjlNrcP+uDYVX6bFYJ1hFVQa//bGLvxJUs7k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uFFNT4tOHj+J87OBYSzRjZ3kyt/FVnpV61iD7+nqFbYLy0e1P9S1fcGqxC1S0yjYuSQV8ipl90mMYkOTrZP/sn8dDXXmQsCMAOipXfQhITm7rcGXBnqXNG7pm0jEbjudqYkZKypOa0QTZBjRaAgdO1cYOc0/ZENSk2GIh1rUjxE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=siemens.com; spf=pass smtp.mailfrom=rts-flowmailer.siemens.com; dkim=pass (1024-bit key) header.d=siemens.com header.i=diogo.ivo@siemens.com header.b=JivFtTII; arc=none smtp.client-ip=185.136.64.227 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=siemens.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rts-flowmailer.siemens.com Received: by mta-64-227.siemens.flowmailer.net with ESMTPSA id 20240605101011422813dfadfd8a6770 for ; Wed, 05 Jun 2024 12:10:12 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm2; d=siemens.com; i=diogo.ivo@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=vpLOr0dZjlNrcP+uDYVX6bFYJ1hFVQa//bGLvxJUs7k=; b=JivFtTIIHAb7wTO7BmR06RAIRLCLR3QJYhhkTDKVc7Z6C54PdKe2f12u7zMkMc2DzwoyuM do3pjisYMEVC1gHj3BU2KXj0KDyXGHFsUtenteuoE9CU2M+qwaMfKYv/0X/6jKHVrO5KrYR0 Kv+fSQOkOKML7JfK8qWa+cVeGoloM=; From: Diogo Ivo To: mpearson-lenovo@squebb.ca Cc: gregkh@linuxfoundation.org, heikki.krogerus@linux.intel.com, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, diogo.ivo@tecnico.ulisboa.pt Subject: Re: [PATCH] usb: typec: ucsi: treat get_pdos not supported condition as info instead of error Date: Wed, 5 Jun 2024 11:10:10 +0100 Message-ID: <20240605101010.150645-1-diogo.ivo@siemens.com> In-Reply-To: <20240604194056.16625-1-mpearson-lenovo@squebb.ca> References: <20240604194056.16625-1-mpearson-lenovo@squebb.ca> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1320519:519-21489:flowmailer Hi Mark, Do these devices report GET_PDOS support as a response to GET_CAPABILITY? If they don't I think the best way of addressing this would be to guard against executing this command for devices without "PDO details supported" (in ucsi_get_pdos() for example). Best regards, Diogo