Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 18397C433F5 for ; Wed, 17 Nov 2021 15:15:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F1D0B6187F for ; Wed, 17 Nov 2021 15:15:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235599AbhKQPSn (ORCPT ); Wed, 17 Nov 2021 10:18:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232749AbhKQPSM (ORCPT ); Wed, 17 Nov 2021 10:18:12 -0500 Received: from mail.marcansoft.com (marcansoft.com [IPv6:2a01:298:fe:f::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AC85C0613B9 for ; Wed, 17 Nov 2021 07:15:13 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: hector@marcansoft.com) by mail.marcansoft.com (Postfix) with ESMTPSA id 8273F419B4; Wed, 17 Nov 2021 15:15:09 +0000 (UTC) From: Hector Martin To: Heikki Krogerus , Greg Kroah-Hartman , Sven Peter Cc: Hector Martin , =?UTF-8?q?Guido=20G=C3=BCnther?= , Alyssa Rosenzweig , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] usb: typec: tipd: Fixes for Apple M1 (CD321X) support Date: Thu, 18 Nov 2021 00:14:48 +0900 Message-Id: <20211117151450.207168-1-marcan@marcan.st> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi folks, These two fixes make tipd work properly on Apple M1 devices, in particular in the case where the bootloader hasn't initialized the controllers yet. We normally do it in m1n1 (so the machine can charge and so bootloaders get working USB without needing this driver), but that was causing this codepath to never get properly exercised, so we never caught it. I noticed on the new machines with 3+1 ports, since m1n1 was only initializing 2 and the other 2 were failing to initialize. Hector Martin (2): usb: typec: tipd: Fix typo in cd321x_switch_power_state usb: typec: tipd: Fix initialization sequence for cd321x drivers/usb/typec/tipd/core.c | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) -- 2.33.0