From patchwork Tue Oct 4 04:14:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tzung-Bi Shih X-Patchwork-Id: 12997943 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D2AA87B for ; Tue, 4 Oct 2022 04:14:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 54F68C433C1; Tue, 4 Oct 2022 04:14:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664856885; bh=EElg5vjBCrY2XxmKEcT2g6gZOtlK8Lr5Lo6T2o59WC4=; h=Date:From:To:Cc:Subject:From; b=PJKdoST9tikphDKheUQFh3Ap/Zm9+hQqZIBjbFGmK17dUv3yVx2hV7iRhWVuOSNV8 J1zZk4R3BVv/XjkyPt9yrU7J7mtp/J1apVGUFnrSsxk+LZOgU0QOP2XbzpBA6S0JI2 DTVdxXAUqfpyThnN7YFpaVITrDijeC0HJEnF4PfUzEuxYhJJvGIYLUX+jGTINpChGq TaTk9eFyyYgn6DzRt1ILTxn1oyqPyfEVI9CQyjP0fVXzgTQR7L6qf5F38r0YuRfEOV Pzw3baCzdkhxUEmb8I3FtqFIuk2g8mbiY8Ao63W8jVBFoCPzLAdKSlSQwCL8+xHyq+ Hqu9syCfMqFrQ== Date: Tue, 4 Oct 2022 12:14:42 +0800 From: Tzung-Bi Shih To: torvalds@linux-foundation.org Cc: pmalani@chromium.org, bleung@chromium.org, groeck@chromium.org, tzungbi@kernel.org, linux-kernel@vger.kernel.org, chrome-platform@lists.linux.dev Subject: [GIT,PULL] chrome-platform changes for v6.1 Message-ID: Precedence: bulk X-Mailing-List: chrome-platform@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline Linus, Please pull chrome-platform updates for v6.1. Thanks, TzungBi The following changes since commit 568035b01cfb107af8d2e4bd2fb9aea22cf5b868: Linux 6.0-rc1 (2022-08-14 15:50:18 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git tags/tag-chrome-platform-for-v6.1 for you to fetch changes up to 8edd2752b0aa498b3a61f3caee8f79f7e0567fad: platform/chrome: cros_ec: Notify the PM of wake events during resume (2022-09-19 10:34:38 +0800) ---------------------------------------------------------------- chrome platform changes for v6.1 cros_ec_proto: * Fix protocol failure if EC firmware jumps to RO part. cros_typec_switch: * Add USB Type-C switch driver for mode switches and retimers. * Integrate to EC for retimers, status update, and mode switches. * Clean-ups. cros_ec_typec: * Clean-ups. * Use partner PDOs to register USB PD capabilities. chromeos_laptop: * Fix a double-free. cros_ec_chardev: * Check data length from userland to avoid a memory corruption. cros_ec: * Expose suspend_timeout_ms in debugfs. * Notify the PM about wake events during resume. ---------------------------------------------------------------- Dan Carpenter (1): platform/chrome: fix memory corruption in ioctl Evan Green (1): platform/chrome: cros_ec: Expose suspend_timeout_ms in debugfs Jameson Thies (1): platform/chrome: cros_ec: Notify the PM of wake events during resume Patryk Duda (1): platform/chrome: cros_ec_proto: Update version on GET_NEXT_EVENT failure Prashant Malani (10): platform/chrome: Add Type-C mux set command definitions platform/chrome: cros_typec_switch: Add switch driver platform/chrome: cros_typec_switch: Set EC retimer platform/chrome: cros_typec_switch: Add event check platform/chrome: cros_typec_switch: Register mode switches platform/chrome: cros_ec_typec: Cleanup switch handle return paths platform/chrome: cros_ec_typec: Get retimer handle platform/chrome: cros_ec_typec: Add bit offset for DP VDO platform/chrome: cros_ec_typec: Correct alt mode index platform/chrome: cros_ec_typec: Register partner PDOs Rustam Subkhankulov (1): platform/chrome: fix double-free in chromeos_laptop_prepare() Stephen Boyd (4): platform/chrome: cros_typec_switch: Add missing newline on printk platform/chrome: cros_typec_switch: Remove impossible condition platform/chrome: cros_typec_switch: Use PTR_ERR_OR_ZERO() to simplify platform/chrome: cros_typec_switch: Inline DRV_NAME Documentation/ABI/testing/debugfs-cros-ec | 22 ++ MAINTAINERS | 1 + drivers/platform/chrome/Kconfig | 11 + drivers/platform/chrome/Makefile | 1 + drivers/platform/chrome/chromeos_laptop.c | 24 +- drivers/platform/chrome/cros_ec.c | 11 +- drivers/platform/chrome/cros_ec_chardev.c | 3 + drivers/platform/chrome/cros_ec_debugfs.c | 3 + drivers/platform/chrome/cros_ec_proto.c | 32 +++ drivers/platform/chrome/cros_ec_typec.c | 110 ++++++++- drivers/platform/chrome/cros_typec_switch.c | 321 +++++++++++++++++++++++++ include/linux/platform_data/cros_ec_commands.h | 18 ++ include/linux/platform_data/cros_ec_proto.h | 1 + 13 files changed, 536 insertions(+), 22 deletions(-) create mode 100644 drivers/platform/chrome/cros_typec_switch.c