From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 78A7AA2A for ; Wed, 17 Jul 2024 00:51:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721177482; cv=none; b=kgPOINItmHRrOfnXoTwucjZEF6I3kwgi5AO7iEiPuhTBhNSd6hd1zQWGAKeYmmG+xbXZjVpcgGhw5Go5Xfm9uPznUhgeC+D91HPwSzmvMmKokJY8cz6mjwrqGGbVj3rGSidGTQFvee0RJGuOFCLI6KiPwkbePZqqHQk8S2usxLk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721177482; c=relaxed/simple; bh=00c/6Hu/VMmGNGj5jwxf7aeNIVvqXIit8nGgXRltjY4=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=huoT4sskRRJHIGTkqHg3ry8iM8/Ian4kxxguyat+MEEUqz/Ualijj63eh4dHnK2KE7xXKA1QpRRLYKaait+8PMnVRcu3DGKRTEssnSfj54lZc9k5dyVuIc99ITf5Xx712C9RpCCWAEwUfSuZu0ZrjE0H6XiqarUOUWt/wdhWuhs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--jthies.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=1O/OR/Pp; arc=none smtp.client-ip=209.85.128.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--jthies.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="1O/OR/Pp" Received: by mail-yw1-f201.google.com with SMTP id 00721157ae682-65f94703b61so51855957b3.3 for ; Tue, 16 Jul 2024 17:51:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1721177479; x=1721782279; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=USGuaXbHalGF3ffZqdVeAiMU8bBfEfYeWE9i0qzNZrM=; b=1O/OR/Pp8fJq/rHxw1uIskZPn8rDAe4IhPm5+6bWDlWJvKq3lF4VhZ6oncFCCVu7GJ kZgB8RMFzDKMF+VIJomceuoZa2M1agBJltYBNSR6Vk2/VS21rAtOKk/PZg6lqUtW4aEd dd74owfRrsDoYmyGbL249jf03gAEM1btMKdXIUhBvIARm+ZOoI1/jCxBzRWc6arKEuOv 9YM0GyKoHtHAKVEjF0+39LUAFCs00YriNluDCSWj3w614hnnfjrF6HPmXEGYk2tbvce5 JG7Yk7yr2TKLur955E40ivtmkMVtIirMOjHwvffrRge+hXbxOpwjP7z7grrVFtNSJN/F WNoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721177479; x=1721782279; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=USGuaXbHalGF3ffZqdVeAiMU8bBfEfYeWE9i0qzNZrM=; b=PcU3CC+QIsUV9go1ETqfEycgDpgodu1mgzwfQqZJEitiBGM+T/ol7Mdtr44yGr5ZYZ pECwl1/Sv+aoKSmkPez+aOmiIcn6GhxSDjzao3ugN4AidPri/zK0qfjRIw2Eg2yE+mOQ rnDMu329Pcl2eMRqQXxuJIxZF4SZm8zWCKEXytWsEAbrjwybu7/oF2MH4IDn3yY0g65u KpNKS31IE0ilxPnrvhloGeh+4VY1tsP5HXrKbUn+IyVarWs/xIwMt49hfdABH8goxcQF J4Hp+RxTPMAkdn1dZDxKr7zWKvUa7yr2p794kF9DiJQBZ44pPeaHKdVjchX/DZSrkbts uVvg== X-Forwarded-Encrypted: i=1; AJvYcCXuwVVc49znvpwbjjCA0LdKLQFTzwD02azXrhALIrWm0Hy+ihT2lGRB0Egf24/4fpZ123YNKdjB9dEgzb7MWHE0gWzsv7Oama4J54sE X-Gm-Message-State: AOJu0Yxq3CJj3CQrp1Ubad5vY0GSHBJlzW97An7Y9bhDivWBcqmGOWwf 4K1cXxlDZuhTbF8M+ubZGrlgN/ghH8YxxYAQZKh1JEAWnRIzf3pXezbXio1hW3HsWGsOLoDa/r5 ViQ== X-Google-Smtp-Source: AGHT+IECFPngWcF2111XBm2otUMdnHCiAUfI6a+UYxtQKU5ZCYWLRUViB7etayGZOZDru24zxZDQrBXkq3E= X-Received: from jthies.c.googlers.com ([fda3:e722:ac3:cc00:20:ed76:c0a8:23db]) (user=jthies job=sendgmr) by 2002:a05:690c:102:b0:62a:4932:68de with SMTP id 00721157ae682-66500a4c606mr94777b3.8.1721177479405; Tue, 16 Jul 2024 17:51:19 -0700 (PDT) Date: Wed, 17 Jul 2024 00:49:45 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.45.2.1089.g2a221341d9-goog Message-ID: <20240717004949.3638557-1-jthies@google.com> Subject: [PATCH v1 0/4] usb: typec: ucsi: Expand power supply support From: Jameson Thies To: heikki.krogerus@linux.intel.com, linux-usb@vger.kernel.org Cc: jthies@google.com, bleung@google.com, abhishekpandit@chromium.org, andersson@kernel.org, dmitry.baryshkov@linaro.org, fabrice.gasnier@foss.st.com, gregkh@linuxfoundation.org, hdegoede@redhat.com, neil.armstrong@linaro.org, rajaram.regupathy@intel.com, saranya.gopal@intel.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Hi Heikki, This series makes the following updates to the UCSI power supply driver. 1. Adds support for the power supply status property. 2. Updates the driver to distinguish between PD and PD DRP power supply types. 3. Adds the charge control limit max property which can be used to request a PR swap from sysfs. 4. Fixes a simple SET_PRD typo in the ucsi.h header. I've checked that the series builds on top of the usb-next branch and manually tested functionality on top of a 6.10-rc5 ChromeOS kernel. Let me know if you have any questions. Thanks, Jameson Jameson Thies (4): usb: typec: ucsi: Add status to ucsi power supply driver usb: typec: ucsi: Add USB PD DRP to USB type usb: typec: ucsi: Set power role based on UCSI charge control usb: typec: ucsi: Fix SET_PDR typo in UCSI header file drivers/usb/typec/ucsi/psy.c | 72 ++++++++++++++++++++++++++++++++++- drivers/usb/typec/ucsi/ucsi.h | 2 +- 2 files changed, 71 insertions(+), 3 deletions(-) base-commit: b727493011123db329e2901e3abf81a8d146b6fe -- 2.45.2.1089.g2a221341d9-goog