Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3135894lqo; Tue, 21 May 2024 07:53:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVfD0LwoIPSZT7qUtcjnesfsL3Hu4yhJLlu5G0o+OjohW8wv5ehb8qNINM82HUFcgnyQ+m1iT/hDjLNnmHF83gW27az8Nbe4ntekBndmQ== X-Google-Smtp-Source: AGHT+IEnKH7+dIXK8q2sopMWy8V2kkckZ1O0u7PcdyeWuNNQ/xv1HHtgGWK/lGLHMrLcaLWYd/0Z X-Received: by 2002:a05:6358:8aa:b0:17e:a9b7:2636 with SMTP id e5c5f4694b2df-193bcfe29bfmr3462987055d.22.1716303203486; Tue, 21 May 2024 07:53:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716303203; cv=pass; d=google.com; s=arc-20160816; b=ajmtd04Tob3zVNNUg1FGSWVPE9m0/h5cirWytW7MvyXlXPWzjeUR0PuzqGlQPAfHPs KSOHmvzQrz7wmrC7etoDWPdvWl6fTRyqThI892vdjaJxTXoWfPLaUt+eu2I2Poy3lVsR AeS6G68oiSxkQ1oBHglL85sBtmtDBa+HNFit3PnMhx0g+CApL8SeCEHgTIbZYYVkwaKe NmiO7iX1047X6YaKydTqSbMzn0VjrKNUdFz69bIxmRIjkTRvZtrQCyEJjKnDuYPudPPS gJnK7ywI1pEmv7Qj7hnAEqwYeghVNf7akDo6Scq8IaydmQVaSrIyIX77P3Q8vE5uQCFB UkCg== 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=jZXouM0lEz7D2o/mvAHwjDRZfX1tRgOL91HVyQ9r9hE=; fh=KlFxS/X/wRF1D3yVCuW11uWf3aEchryF8v4SKRFu0tc=; b=Sue4r/bxTIUJp0UC1CLjyCwzPfce3TTp6npQjt/qWInBE0uD+kS8g5q6lmHk5WTG+E Cgpoq4z3pKqG1TQaJVec5ymOCScC+0R2S465qFSzk4TgLo80l69d6UwM9cYubKnAkD8t 90p9V+f5PDbg3UBIa3sev1dSV95hkre5TpecWG+qoZwJevQCu1YT5fWzNZZNbB6u56Sm duvjFwrtXB9yZh0vc2aDGVROKs6bjM08At3UcbOZxC3OKHglbM7yBp39uhWV6ZVMlOhv PZeYokGkQe+EFbIxUeI+6hFFfcvxLESkRbs28f8Df92zXPeHdrWQ/wfskJ8NnUUAkg+x kgxw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RGMmqm7c; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-185035-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185035-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-64855d98a0dsi15808504a12.20.2024.05.21.07.53.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 07:53:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185035-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RGMmqm7c; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-185035-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185035-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 6BE2BB2126D for ; Tue, 21 May 2024 13:51:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DBEA37EF1F; Tue, 21 May 2024 13:51:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="RGMmqm7c" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) (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 E46E355783; Tue, 21 May 2024 13:51:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716299490; cv=none; b=tcKBnP/CEfDZSrUbX16bNWCl6rc81NbabMabafBXVxaycY4w/joZR5DdYQ0bxUIIy0aI2tRFiXqyGrDCuyGJqrdZNntgjYrbgIZalm+rV1ProNnZO24YF1bjkFwKy6xpujI9vnTTOY+LhKeO0ectrQXhxieK0hl3XkuFiyhqhOM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716299490; c=relaxed/simple; bh=/Hd/hqTFsk9NCSs8oalLv788+rthDwiVYXez3GwSjEc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iBmMXZRbK5Qcfe+dYjBekhzTT/bRjvWdfDLskcmiCH9gKBJhw0/1JIZNJFxd2pAvZnTh1lX+O+Wy6TeeOfww/rD9nathf7nl/n5HYIBILOuDwvZ42EP1ckQ+PNMjnh8WUdeQ7lHxrPPtdfESv5RpO+yYm4ZH4IJ4LBWzWV6+Fpo= 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=RGMmqm7c; arc=none smtp.client-ip=198.175.65.14 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=1716299489; x=1747835489; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=/Hd/hqTFsk9NCSs8oalLv788+rthDwiVYXez3GwSjEc=; b=RGMmqm7crKEIS7SYsL0ryVv7n/KmfFQA1f2OcK3NihgnNZU8u5IHfcC4 HXiB6FEWVMbXQARxSQeNAYUhKVsThACIhIxy/DkT/iys8X0Br2IzSP4hB hziv33foMc+1h3BkdCT143jF5DSq95Y25BnRODE5gRhqd5dUy2l4aIEDR k7m8MPNjJIAi/0MDW4+PspHVA7a9Q7+BooA1FpH81f1judM+6ODNG3iFB +5Ew1FY4j85YtnJLTU7ZcNjr3APD3EQCdtkHY6z69nMiwin55Tn+MznGe Jxmd3uyVrGiMBOcEcxaJaLSO83wmMPB+q41eYcKYp08EBhK8q2iXJR2bq Q==; X-CSE-ConnectionGUID: IbC/W18qRtmOLeWFyiQxiA== X-CSE-MsgGUID: bsCRWzU5T7ydiIiUdcETdQ== X-IronPort-AV: E=McAfee;i="6600,9927,11078"; a="16320039" X-IronPort-AV: E=Sophos;i="6.08,177,1712646000"; d="scan'208";a="16320039" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 May 2024 06:51:28 -0700 X-CSE-ConnectionGUID: qJ0r4cG4TGqzzhu3VyiI7w== X-CSE-MsgGUID: AbBacB3XQdaM1z4OzNPbMw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,177,1712646000"; d="scan'208";a="33052469" Received: from kuha.fi.intel.com ([10.237.72.185]) by fmviesa010.fm.intel.com with SMTP; 21 May 2024 06:51:22 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Tue, 21 May 2024 16:51:21 +0300 Date: Tue, 21 May 2024 16:51:21 +0300 From: Heikki Krogerus To: Diogo Ivo Cc: gregkh@linuxfoundation.org, dmitry.baryshkov@linaro.org, bleung@chromium.org, pmalani@chromium.org, jthies@google.com, abhishekpandit@chromium.org, lk@c--e.de, saranya.gopal@intel.com, dan.carpenter@linaro.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] usb: typec: ucsi: Add new notification bits Message-ID: References: <3filrg6mbh6m3galir7ew5juakd25uvksimr7mqd7uc5td3xza@fdvxcewozqeh> 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: <3filrg6mbh6m3galir7ew5juakd25uvksimr7mqd7uc5td3xza@fdvxcewozqeh> On Wed, May 08, 2024 at 04:43:40PM +0100, Diogo Ivo wrote: > Newer UCSI versions defined additional notification bits that can be > enabled by the PPM. Add their definitions and convert all definitions > to BIT_ULL() as we now cross the 32-bit boundary. > > Signed-off-by: Diogo Ivo Reviewed-by: Heikki Krogerus > --- > drivers/usb/typec/ucsi/ucsi.h | 29 +++++++++++++++++------------ > 1 file changed, 17 insertions(+), 12 deletions(-) > > diff --git a/drivers/usb/typec/ucsi/ucsi.h b/drivers/usb/typec/ucsi/ucsi.h > index c4d103db9d0f..e70cf5b15562 100644 > --- a/drivers/usb/typec/ucsi/ucsi.h > +++ b/drivers/usb/typec/ucsi/ucsi.h > @@ -124,18 +124,23 @@ void ucsi_connector_change(struct ucsi *ucsi, u8 num); > #define UCSI_ACK_COMMAND_COMPLETE BIT(17) > > /* SET_NOTIFICATION_ENABLE command bits */ > -#define UCSI_ENABLE_NTFY_CMD_COMPLETE BIT(16) > -#define UCSI_ENABLE_NTFY_EXT_PWR_SRC_CHANGE BIT(17) > -#define UCSI_ENABLE_NTFY_PWR_OPMODE_CHANGE BIT(18) > -#define UCSI_ENABLE_NTFY_CAP_CHANGE BIT(21) > -#define UCSI_ENABLE_NTFY_PWR_LEVEL_CHANGE BIT(22) > -#define UCSI_ENABLE_NTFY_PD_RESET_COMPLETE BIT(23) > -#define UCSI_ENABLE_NTFY_CAM_CHANGE BIT(24) > -#define UCSI_ENABLE_NTFY_BAT_STATUS_CHANGE BIT(25) > -#define UCSI_ENABLE_NTFY_PARTNER_CHANGE BIT(27) > -#define UCSI_ENABLE_NTFY_PWR_DIR_CHANGE BIT(28) > -#define UCSI_ENABLE_NTFY_CONNECTOR_CHANGE BIT(30) > -#define UCSI_ENABLE_NTFY_ERROR BIT(31) > +#define UCSI_ENABLE_NTFY_CMD_COMPLETE BIT_ULL(16) > +#define UCSI_ENABLE_NTFY_EXT_PWR_SRC_CHANGE BIT_ULL(17) > +#define UCSI_ENABLE_NTFY_PWR_OPMODE_CHANGE BIT_ULL(18) > +#define UCSI_ENABLE_NTFY_ATTENTION BIT_ULL(19) > +#define UCSI_ENABLE_NTFY_LPM_FW_UPDATE_REQ BIT_ULL(20) > +#define UCSI_ENABLE_NTFY_CAP_CHANGE BIT_ULL(21) > +#define UCSI_ENABLE_NTFY_PWR_LEVEL_CHANGE BIT_ULL(22) > +#define UCSI_ENABLE_NTFY_PD_RESET_COMPLETE BIT_ULL(23) > +#define UCSI_ENABLE_NTFY_CAM_CHANGE BIT_ULL(24) > +#define UCSI_ENABLE_NTFY_BAT_STATUS_CHANGE BIT_ULL(25) > +#define UCSI_ENABLE_NTFY_SECURITY_REQ_PARTNER BIT_ULL(26) > +#define UCSI_ENABLE_NTFY_PARTNER_CHANGE BIT_ULL(27) > +#define UCSI_ENABLE_NTFY_PWR_DIR_CHANGE BIT_ULL(28) > +#define UCSI_ENABLE_NTFY_SET_RETIMER_MODE BIT_ULL(29) > +#define UCSI_ENABLE_NTFY_CONNECTOR_CHANGE BIT_ULL(30) > +#define UCSI_ENABLE_NTFY_ERROR BIT_ULL(31) > +#define UCSI_ENABLE_NTFY_SINK_PATH_STS_CHANGE BIT_ULL(32) > #define UCSI_ENABLE_NTFY_ALL 0xdbe70000 > > /* SET_UOR command bits */ > -- > 2.45.0 -- heikki