Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp494366lqt; Thu, 6 Jun 2024 09:22:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW72/7FqGrvd1/ffhV7/4ktDJNIRpLi/EfWTWremqorHNExfwO7qKXLJGvP9fPHTNhS2ey5aYYlqFglWYpVXFvJQtHudXFx84la89oucg== X-Google-Smtp-Source: AGHT+IFGkJwrBQSngp+VPhGrNfVDw57fFJLVqcYawn7+NLVq1TG3HDm+TDvGiKzvB0JO6Zg88MHY X-Received: by 2002:a05:6a20:12c5:b0:1af:d153:b76a with SMTP id adf61e73a8af0-1b2f96dfeacmr37268637.18.1717690928093; Thu, 06 Jun 2024 09:22:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717690928; cv=pass; d=google.com; s=arc-20160816; b=h8yP5CLiFxkKnJNwj2+bAfG0wgRHzr2XKpsb5D6/nEGs3r7F4IO3Kbwkm/mOWEkUN/ C+rO0ynpvi/USO7Qib395Dxtz7N4etYZsiV8Nq1ZKHl/D23ocY/CkFl4yZwsCU5I+/8G t1iamydD7d6qaFXXmYBehFLTxeocEh4OhKQsb4PS2hm9I2liG6ndJF9oTKC/TLWBBf0+ q5dXn+pW31lzjqRFMrqZEeN3Ppmao1VfAPS/TWjGLwtNwHB3kXaRD/9ppQs3cJRAd40c TA92/V+AYP7b5uvXZZlvNlv+bDGkAMFXIxeUQMQAd8K7lBX/6Kb8rodcSWJi7MSiptH5 8fpA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=feedback-id:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=MttvI1OKyaN+SBY2+k/1ktddeHssJ6lmI4v9SdChLC0=; fh=V0hEOJvr21UH46VfoziFYumQz0bH8oKf9nke6bDYuqQ=; b=xlPpdG0CRbTd2Ccs9wpNttjK/z8eadv6XTze97r1yh4cKdBOJJ5BpKrcg/mKt+3L2U CGqTKSNM/EAx4jCKdXubKlVFW6g6hkWPxQjoypeiIt6CEteb09hWSSp+TYo/m9ZpU0Ma 4CemgOQJgJhA3trb8xP9ZdTFsExbdghq3LB8lL/8yfMtEsLYHyyYUvWRT8RDuZR11k5S npB2cjAFY0mWAdtu/2owVf0OOgEbhBrAEm9LEPwkExlNfsye4l2LT4dE+ZU+klH/tm0k dzue3svRRztHuCYypknuKC/T76vCixmhiL97j87R9FPhqXTIw555Jq36M84hlZX0DUFs gJxg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=lsUYfAPW; 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-204601-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204601-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d2e1a72fcca58-703fd38f60bsi1359717b3a.58.2024.06.06.09.22.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 09:22:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204601-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=lsUYfAPW; 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-204601-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204601-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C2D4DB2A5E4 for ; Thu, 6 Jun 2024 15:47:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 27069197534; Thu, 6 Jun 2024 15:47:10 +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="lsUYfAPW" Received: from mta-65-228.siemens.flowmailer.net (mta-65-228.siemens.flowmailer.net [185.136.65.228]) (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 90ED4196C7B for ; Thu, 6 Jun 2024 15:47:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.136.65.228 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717688829; cv=none; b=jOWEBdyOPbMif7Cg3iSRhYFT/xvtbRiYWiltrMBfrH/ZBa+1GtI97b+6SUwv7nbLSkbvqyB7Uc3Q68SuAicyE8YtfnQcvhsk3mEh02Du7kNgRT2aTvDxcKGLYwRZfNSrBZjhzAnAsAoyWaALvjsUecvE/HvsA03mj9BlFjv6xyw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717688829; c=relaxed/simple; bh=vrTXVPJSfCdHgRlQve8QZixtZSx5LZeM/+2U7ngm2Hk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Da3jB68appiieOv8y8qZhs1yzA0/nVgvAXeFuFRyBp3Lhcd2xSqEKX/QjMjk5rjBAcSJqXWB8YZ4lpr1FjYvYB3+HYxBGncoeoLHHqf1vwT6L+s4nFnmQHLjVg8fxz/PTXhf4EzbTVXekJjA08BeIW+OnnrfQe6OsQU0mRIVSlk= 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=lsUYfAPW; arc=none smtp.client-ip=185.136.65.228 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-65-228.siemens.flowmailer.net with ESMTPSA id 2024060615470555a7770650496feadb for ; Thu, 06 Jun 2024 17:47:05 +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=MttvI1OKyaN+SBY2+k/1ktddeHssJ6lmI4v9SdChLC0=; b=lsUYfAPWDB4NfBDbUQHnP3B0Irm1FG2hJ4NkPfiW2356Kl+PKiLCgSo9Fmq/Zj0sSJgP7w EbzAHYzKaXAWz2ScD6+3Uc+DyDDpRtMNVoj7O35SNaz5ehZMGvS364tB54gxJ2E+2A9yF1H4 5Grt4xxHS7jhIS3VD9EJ/OVILg4Rs=; Message-ID: Date: Thu, 6 Jun 2024 16:47:04 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH] usb: typec: ucsi: treat get_pdos not supported condition as info instead of error To: Mark Pearson , Dmitry Baryshkov Cc: Heikki Krogerus , Greg KH , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240604194056.16625-1-mpearson-lenovo@squebb.ca> <2midmmssv2i3plvtc2hajar6alfvggpnbvgpmldspelxsnjvcl@qiblhwat6n3p> Content-Language: en-US From: Diogo Ivo In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1320519:519-21489:flowmailer Hi Mark, On 6/5/24 6:09 PM, Mark Pearson wrote: > > @@ -645,9 +645,13 @@ static int ucsi_read_pdos(struct ucsi_connector *con, > static int ucsi_get_pdos(struct ucsi_connector *con, enum typec_role role, > int is_partner, u32 *pdos) > { > + struct ucsi *ucsi = con->ucsi; > u8 num_pdos; > int ret; > > + if (!(ucsi->cap.features & UCSI_CAP_PDO_DETAILS)) > + return 0; > + > /* UCSI max payload means only getting at most 4 PDOs at a time */ > ret = ucsi_read_pdos(con, role, is_partner, pdos, 0, UCSI_MAX_PDOS); > Seems good to me too. Best regards, Diogo