Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp937886lqj; Mon, 3 Jun 2024 05:47:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXVIQ0O2KQx5bD+0RRGDF1nLftrOhYLTriseLvwi7o+RhRE8Ntp/zoKPd8Emw3WO1RBgv6d4DYT/HrK7AIbp1YR6pH1psbnYxqRnAbclw== X-Google-Smtp-Source: AGHT+IGImGZn3pau7ZRffRFHR2fWfbwd37ROdDiJLx3krW/JBfec5UKZEjGcOv3hh+rO2BeA2wyj X-Received: by 2002:a17:902:d48b:b0:1f4:768b:446d with SMTP id d9443c01a7336-1f636fec324mr101889055ad.19.1717418827884; Mon, 03 Jun 2024 05:47:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717418827; cv=pass; d=google.com; s=arc-20160816; b=aKWaGnq76qoDBmDejOEo9lsGyyO5ZluOMQBEopbg3k/ihxS2U/5jEUfKpvTT4A1CLU onOXCPp4f4TvAP+z839xJ5CoMYce2O4rH+pKcF4/C/udtczcSZcutbW3SCmKr0BEMIPA Fk1ipKJhdLfoHJDr5snnYU8Qw8XblRjDp61OWFOXwwZr70z6LpNz6NhKup5lMX2AiTB1 DYrFq7dNrciOWPmche8w5zAex0A8c+VnfiUZ+O3lzXqzweeLpoMAy2Fc1gGnEOouDLgt BUlgbWWKngdab6uLs4EscG+W9Dwf/AmAVTqQqFHOhS1Hb8Get6N8H7pzGVDefMM2ePh0 C/qw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=A63xKwc90XVUO3yC36GJLThl9QdmPOmoDj9/2PNVskQ=; fh=UOmsKJVJvHHRzt2V/ug9jO9h2eOjcgn0VbawkbpXArE=; b=ley8zn78ULuSjZK/AfwwZFx7XrXCvvVNFwAcR1hv4803neTgg73OPfOk9osajGL8wC toeIUUWZOnYyU26lG5g3bIUVs8GvEWjJhK8ElrVxTme6Nr8nudk+IUfeBRJFVNpzCe6S cGVsxV7XLNd2sXk9b0cxPU+iAb7fP/m1zR+yHgekMkXtoaMB9Aqg763824PixWeA3KlI d0PzEcS1mzSky5QhslLiyqaoLUSHayK4hmyIiwxy6NM7GdCGwoqOAbVVinMZcqvVN5pX lyvMQEk9Budztq1FgJMdaj20/X7a3lKMQxlDU+2Ds6aMS7PwNBZdHBxrQ+Soh6fDiqd+ hssA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gjQRRJRM; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-198962-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198962-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f6323eb22dsi65350775ad.378.2024.06.03.05.47.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 05:47:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198962-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gjQRRJRM; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-198962-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198962-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 D106428B992 for ; Mon, 3 Jun 2024 10:10:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 96F57824B1; Mon, 3 Jun 2024 10:10:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="gjQRRJRM" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (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 6C39D81735; Mon, 3 Jun 2024 10:10:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717409404; cv=none; b=Jprnb4mYFzxGcsOEHOATVdoNaASPDEZb3tIrr5UU1uZznnFLVRIyP3IZ2c8pWYFZo244/A7C5gqCsT1OudLLwWnCgw/FueoaXF6rSNxrJEyZluSmhfMWVgZwqX2k5SsfFF+26/aSMuEFcFjelP/mYYg7qERWDqOOya/uGk0uC28= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717409404; c=relaxed/simple; bh=LkYwNLsQN08KA07aWVeaexXqORXA0nPpRiIBfLn5iMI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=U4HQPKgV06+iqayyi14Mvm6+2HLVvHbuS6twNYsPHJ5KLc9YTHkmrKN4zez7Sgy2PdhNttfae1Oqe3uLkRAgtmP5AuWi7b4Z9SAIcOL1/R1Pf6vny92i0EcbU3bWDBOGlgWgtXHJcHqmTmgheDnuSfGxnwnAuBnBkfNXvu84sfM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=gjQRRJRM; arc=none smtp.client-ip=192.198.163.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717409402; x=1748945402; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=LkYwNLsQN08KA07aWVeaexXqORXA0nPpRiIBfLn5iMI=; b=gjQRRJRMwtAdrN+uOB4TCRuZIUDXvz93iUNEkHPwt40wGtZB8rMceuEE 91/ztzPnhMeaFBgD277ZbFDjsT2DipKzvmqUYYFGM5cAsetkODGV8SnEU eU7YP/z18Y3Kvh90/Gif3aaJw+r4gvUCEXAYNvObRJDtuB5Zr98c5jCq+ 6Fp2fO7gn47Kx7mhppA5a8PUg6zt4sa24ux52Lo0pIBg2Vc3MANKP9/jQ MnZZ/QIDEZogtP0JyqeMey7VC7+dDWCbyBZB6ViGzMjSgxapJ8i6yca0m fsX1yWl+Fsg8JBsh8+irLBJGLrI+oAMuJmg0WNd4hep1drkILBW+uNhJz Q==; X-CSE-ConnectionGUID: AXiKss46TqW5pVlNApj0dg== X-CSE-MsgGUID: FLcs+WHdTzCKF5c01bMjMw== X-IronPort-AV: E=McAfee;i="6600,9927,11091"; a="13643358" X-IronPort-AV: E=Sophos;i="6.08,211,1712646000"; d="scan'208";a="13643358" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jun 2024 03:10:01 -0700 X-CSE-ConnectionGUID: C+srMFuLQUWFU9oKCIwsiA== X-CSE-MsgGUID: UZXocqB+RRSE0wKkuLywYQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,211,1712646000"; d="scan'208";a="68000287" Received: from kuha.fi.intel.com ([10.237.72.185]) by fmviesa001.fm.intel.com with SMTP; 03 Jun 2024 03:09:58 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Mon, 03 Jun 2024 13:09:56 +0300 Date: Mon, 3 Jun 2024 13:09:56 +0300 From: Heikki Krogerus To: Diogo Ivo Cc: gregkh@linuxfoundation.org, dmitry.baryshkov@linaro.org, jthies@google.com, bleung@chromium.org, abhishekpandit@chromium.org, saranya.gopal@intel.com, lk@c--e.de, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, pmalani@chromium.org Subject: Re: [PATCH 1/2] usb: typec: ucsi: Add new capability bits Message-ID: References: <20240524105837.15342-1-diogo.ivo@tecnico.ulisboa.pt> <20240524105837.15342-2-diogo.ivo@tecnico.ulisboa.pt> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240524105837.15342-2-diogo.ivo@tecnico.ulisboa.pt> On Fri, May 24, 2024 at 11:58:20AM +0100, Diogo Ivo wrote: > Newer UCSI versions defined additional optional capability bits. Add > their definitions. > > Signed-off-by: Diogo Ivo Reviewed-by: Heikki Krogerus > --- > drivers/usb/typec/ucsi/ucsi.h | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/drivers/usb/typec/ucsi/ucsi.h b/drivers/usb/typec/ucsi/ucsi.h > index e70cf5b15562..ca4a879d9606 100644 > --- a/drivers/usb/typec/ucsi/ucsi.h > +++ b/drivers/usb/typec/ucsi/ucsi.h > @@ -225,7 +225,13 @@ struct ucsi_capability { > #define UCSI_CAP_CABLE_DETAILS BIT(5) > #define UCSI_CAP_EXT_SUPPLY_NOTIFICATIONS BIT(6) > #define UCSI_CAP_PD_RESET BIT(7) > -#define UCSI_CAP_GET_PD_MESSAGE BIT(8) > +#define UCSI_CAP_GET_PD_MESSAGE BIT(8) > +#define UCSI_CAP_GET_ATTENTION_VDO BIT(9) > +#define UCSI_CAP_FW_UPDATE_REQUEST BIT(10) > +#define UCSI_CAP_NEGOTIATED_PWR_LEVEL_CHANGE BIT(11) > +#define UCSI_CAP_SECURITY_REQUEST BIT(12) > +#define UCSI_CAP_SET_RETIMER_MODE BIT(13) > +#define UCSI_CAP_CHUNKING_SUPPORT BIT(14) > u8 reserved_1; > u8 num_alt_modes; > u8 reserved_2; > -- > 2.45.1 -- heikki