Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp463296lqb; Fri, 24 May 2024 04:08:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX5lk7o1RBPtWO1rstPogI2WCl960SwLDeil6/LJajrS6mr19qfDl64+iot+WLY0T/Sfx13K62ktDUFENEcIARU82Zz911V86DDmUfveA== X-Google-Smtp-Source: AGHT+IFvmS+BNHVQpt3E8PYHUCTeiGBrDNkoHHVR8uAk0xyWOIledBBcRg75Jpm+WCEg3tkHSV+J X-Received: by 2002:a05:6a20:9183:b0:1b2:3fc:9ab2 with SMTP id adf61e73a8af0-1b212cc725emr2706857637.1.1716548899247; Fri, 24 May 2024 04:08:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716548899; cv=pass; d=google.com; s=arc-20160816; b=to3qNrMnoq36HUwsIFRhk2DZTVTTI5tIKm49n5Wu1xOZmkvYFsTePIFbzUWF4LnHuo H7p3qiUC9uBAKm5yqc/SIb1QCRpk7ac9dJSMOi3SQrbkqpg+YYvu+uw6OFDpV0p36OnN 8u9Jy7VqL6+yg2r1eYfGOaNXbjGh8uDVMT7HvC36wemUFOShaBKRu/ZGlptTaMwFpZyn kjb+Oy3M1yGAwrDysYVpVXfjPRu2Pku83dMLoqqNvYWymJTPszvghONHzQDZpD63LmUd zgamdJfiyQeJUFOLd2m/EfTa2rgbV3Flm5BOg6mUzIujBSWP743JbklZO4iexidxUJr6 SguA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=A5Em7Sh3O/lWid7jYeEGOI0eJ7PSTbvOF01x+rjq3wM=; fh=SUgjIEH8cbyiH+EijvHrfVf97RHQEdErvCpCBFX72VI=; b=lp5W3i1bJpD0B78lyKodnvQAyGgTNeo/Ckw2aEY1GMr2CkbRCXJT6JiqTHPfuEgGS8 6nrazbyZMBOHRg6iSlbBoc5KTTbToRiEvSIzOfQB8qSKU00zV7M8s3psoEFJVYssMCAP pi6ffJyWkTenC/XKxBpguLuNZHUN6BZX97Gh5pJskAA49Xa8cDszt+QUu4BjfaqWf3SE SLcSh1dW4rcmZMz5qwwfskZYGydamVhk8QZG9MubQSbi0yGiacV/nV0yXxPd3bFI/E4m 3adVDAd1i3pnieTle8zQyPJpB2d5Ug2yuM/kIwsRWACN1comXWRXJt6Z+yf5RJ5nmk+c hBwQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tecnico.ulisboa.pt header.s=mail header.b=d1Rwt3xP; arc=pass (i=1 spf=pass spfdomain=tecnico.ulisboa.pt dkim=pass dkdomain=tecnico.ulisboa.pt dmarc=pass fromdomain=tecnico.ulisboa.pt); spf=pass (google.com: domain of linux-kernel+bounces-188633-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188633-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=tecnico.ulisboa.pt Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6822779be9esi1076569a12.299.2024.05.24.04.08.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 04:08:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188633-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=@tecnico.ulisboa.pt header.s=mail header.b=d1Rwt3xP; arc=pass (i=1 spf=pass spfdomain=tecnico.ulisboa.pt dkim=pass dkdomain=tecnico.ulisboa.pt dmarc=pass fromdomain=tecnico.ulisboa.pt); spf=pass (google.com: domain of linux-kernel+bounces-188633-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188633-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=tecnico.ulisboa.pt 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 356BC2824F4 for ; Fri, 24 May 2024 11:08:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AB21585639; Fri, 24 May 2024 11:08:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=tecnico.ulisboa.pt header.i=@tecnico.ulisboa.pt header.b="d1Rwt3xP" Received: from smtp1.tecnico.ulisboa.pt (smtp1.tecnico.ulisboa.pt [193.136.128.21]) (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 E1F8F538A; Fri, 24 May 2024 11:08:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.136.128.21 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716548888; cv=none; b=sQwhnXhdSKm8wdVLTUc6hbu9SL7BfJOkPiT4uTj2S3ptbxJljCDBxoNipDLDwznbg/fHegSnY9P4jSv/xWJL/qiJHGDViVsfOy/MDIEFAOkmAUJCpxNXgesmSo7APqZfm6Q9wmiORXr3cDvUNtYrJ5gXw/L6mpU2xSn7PQ6gK1U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716548888; c=relaxed/simple; bh=aobGFHrNAmzx66DLpRMw5mDXkqBVPCqNhQg8h+R0sJI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gekz2MrsOCnMeoRYaYeEh/HEJJ8uRJKsSGmpxXDpPw5+Nj/MiV1MWPJnGL5b2Gxp/sfifzh/tDrqdkiTPbDAKzyoGzLhbsp3YNyizQWsji6O1Mlls4UDUFkKrpZqW+bf2GcRFVq5LgsUc6I8Kw8H1gGNoMfB3C15K8oBSxs53Qk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=tecnico.ulisboa.pt; spf=pass smtp.mailfrom=tecnico.ulisboa.pt; dkim=pass (1024-bit key) header.d=tecnico.ulisboa.pt header.i=@tecnico.ulisboa.pt header.b=d1Rwt3xP; arc=none smtp.client-ip=193.136.128.21 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=tecnico.ulisboa.pt Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tecnico.ulisboa.pt Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp1.tecnico.ulisboa.pt (Postfix) with ESMTP id 5188B601A40B; Fri, 24 May 2024 11:59:54 +0100 (WEST) X-Virus-Scanned: by amavis-2.13.0 (20230106) (Debian) at tecnico.ulisboa.pt Received: from smtp1.tecnico.ulisboa.pt ([127.0.0.1]) by localhost (smtp1.tecnico.ulisboa.pt [127.0.0.1]) (amavis, port 10025) with UTF8LMTP id rhYQrkTG_LQd; Fri, 24 May 2024 11:59:52 +0100 (WEST) Received: from mail1.tecnico.ulisboa.pt (mail1.ist.utl.pt [IPv6:2001:690:2100:1::b3dd:b9ac]) by smtp1.tecnico.ulisboa.pt (Postfix) with ESMTPS id C718F601A40A; Fri, 24 May 2024 11:59:51 +0100 (WEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tecnico.ulisboa.pt; s=mail; t=1716548392; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=A5Em7Sh3O/lWid7jYeEGOI0eJ7PSTbvOF01x+rjq3wM=; b=d1Rwt3xPaUWzfNGHTmCqVxA3Z4y8yzr2kIgf5ngD4q6e7CW4SSIJUDydJp53pniKHGL6iU Y9mstG/e+qgGDpdAE5cdLGBa3ImHhfi8IVM9tGy2cHMjj5bfAJNSW800GrKiGao2axmn8+ LsRTEqsQF/0hIpybqa36IDQub0cQVTI= Received: from diogo-gram.. (unknown [136.226.215.14]) (Authenticated sender: ist187313) by mail1.tecnico.ulisboa.pt (Postfix) with ESMTPSA id 5D1553600C8; Fri, 24 May 2024 11:59:49 +0100 (WEST) From: Diogo Ivo To: heikki.krogerus@linux.intel.com, 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 Cc: Diogo Ivo Subject: [PATCH 0/2] usb: typec: ucsi: Update optional notifications for UCSI v2.0 Date: Fri, 24 May 2024 11:58:19 +0100 Message-ID: <20240524105837.15342-1-diogo.ivo@tecnico.ulisboa.pt> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hello, These two patches enable checking and enabling the new optional notification types defined in UCSI v2.0 and greater. For that, patch 1 defines the new optional capability bits and patch 2 adds the logic for checking/enabling these new notification types. Diogo Ivo (2): usb: typec: ucsi: Add new capability bits usb: typec: ucsi: Enable UCSI v2.0 notifications drivers/usb/typec/ucsi/ucsi.c | 19 ++++++++++++++++++- drivers/usb/typec/ucsi/ucsi.h | 8 +++++++- 2 files changed, 25 insertions(+), 2 deletions(-) -- 2.45.1