Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp929617pxb; Tue, 8 Feb 2022 05:49:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJwknXRpI8LCyyWFor5Yq/OuX/dHNZ+yhjpdrDqDkgE4miPAO8GQt4oAu/5iKz1dnrXpq9nQ X-Received: by 2002:a17:906:c112:: with SMTP id do18mr3859232ejc.472.1644328185878; Tue, 08 Feb 2022 05:49:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644328185; cv=none; d=google.com; s=arc-20160816; b=HYo/CkwCgLwpEgdbtcVYinmtIeg/VXJsC6gqDOv/RaeyCLpenJepUFHIX14cpyifjw lqLaKj7WB2CNYvvT2MLs/HlNofgu1/HmvxrJeiM0+wkyJbv58tdPY38hj4ziuF77Ye44 4op0MoFRXo/7JyXdBCqCVQZkHKoxcSLEXquENCyL2x5DnsFfdbbaditBlUBRymqCQENr ncBRSP6BKhzHx5A35NHp4y4nHJfSqPicdDZ6BU0Tcz9m/C8FwoimQN+Vq2aJ3onRksfT 6tFI5L4djHVIeR4JgoNpPXwCxP+k/3WMhT0UzHAe9vKOC7md9JlRkrPVBDKmRPpMvEfE DDgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=TUCNvjYGBjDLOWx0oqjTNqXH/Yx+Zia2/rtd6r5omRs=; b=hVUglYPwbIjrRxCP0I39eJOvhChQdqWxVRKe06VVP8iYMtnTv9C9VKUdW2nRhK0Qcw oBDEejtnpPcrBCgVmnPprj/vYlrKiBrub28pc1ig5l9lp2s79x18EAF2xFj+h/qs1hQo /kVgfIpjkPJOfnnhtQkTgl0LZpQ+P8npwEE876BP329fKRoNV/eai/v+H0ScMz6i3iHq JqhBNItL3PnUewfVL64uLUFD5VOHPqhMLz1DinArH/j2D8p0KqDW4/p1h8qoGacf+zxb rZGm5Df55cEggcr7KiipcUG2qZXBa6yGQ2WcCrcMoGjH2O+giyIKAy8KKOYQ1L7yqcqb QeEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=O7m2P73z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qa9si5731124ejc.606.2022.02.08.05.49.20; Tue, 08 Feb 2022 05:49:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=O7m2P73z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240903AbiBGVko (ORCPT + 99 others); Mon, 7 Feb 2022 16:40:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240208AbiBGVkl (ORCPT ); Mon, 7 Feb 2022 16:40:41 -0500 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C3C4C061355 for ; Mon, 7 Feb 2022 13:40:40 -0800 (PST) Received: by mail-pf1-x433.google.com with SMTP id i186so15354490pfe.0 for ; Mon, 07 Feb 2022 13:40:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TUCNvjYGBjDLOWx0oqjTNqXH/Yx+Zia2/rtd6r5omRs=; b=O7m2P73zV+5NeLlFCzV7cYTbgTSOFUB6jKeJh5bYZY4eykQxfb6J0TLyiaKsWAsdlk 51kBcDc1bKUHh4BVAuzZ6upxW7bHVwRpqqnKJvzIa9+dNjz1bYnWjYTlq34sKe9ArSVk tQKETIKuouocyHBnM+j7QR3RZ1IK/EC+LX6YI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TUCNvjYGBjDLOWx0oqjTNqXH/Yx+Zia2/rtd6r5omRs=; b=niuLByBafaeAx28wiejleO3sOUz2WgkbrMtGt61d5UfOkn2YqygbdY0J9x7Y5YZB6r GpKT7FzpxCn4JbF1N6sXFLKlnsPCjw7VTl4yAaloK5oxhX4oromfJuN+7aX2Or2BS7Qx OexdcGXQZqtD5qKO1BRYkhwhfnxnX6rcZo4SlBtF9ev1px8aKg1/5GCwBQADKeLyHIO0 R8DMUO+miHKkiCZ/hE+5ESW1V4Swt6ftKtknO88dhDIVwvcdEtv+XH6SimvV9jT4X/oq o7gHz140Y+Gs2tm6ifGmoTE8aYBukbLKifu/qquVX5VQlb3s+2ya1nug5PzNV20yY32n BSGA== X-Gm-Message-State: AOAM531ebWDGaQY0DzUdcGP7eIYU6pvrqNrzUOEOPIA92L8NgZIqBU4O QFO4inj1bNwJgeIlD+opyh5dPm3AMflEZQ== X-Received: by 2002:a05:6a00:1514:: with SMTP id q20mr1467788pfu.74.1644270039871; Mon, 07 Feb 2022 13:40:39 -0800 (PST) Received: from pmalani.c.googlers.com.com (157.214.185.35.bc.googleusercontent.com. [35.185.214.157]) by smtp.gmail.com with ESMTPSA id s9sm9268010pgm.76.2022.02.07.13.40.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Feb 2022 13:40:39 -0800 (PST) From: Prashant Malani To: linux-kernel@vger.kernel.org Cc: Prashant Malani , Benson Leung , chrome-platform@lists.linux.dev (open list:CHROMEOS EC USB TYPE-C DRIVER), Guenter Roeck Subject: [PATCH 0/4] platform/chrome: cros_ec_typec: Reorganize mux configuration Date: Mon, 7 Feb 2022 21:40:22 +0000 Message-Id: <20220207214026.1526151-1-pmalani@chromium.org> X-Mailer: git-send-email 2.35.0.263.gb82422642f-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a short series that reorganizes when mux configuration occurs during Type C port updates. The first 2 patches are minor refactors which move some of the mux update logic to within cros_typec_configure_mux(). The third patch moves cros_typec_configure_mux() itself to be earlier in cros_typec_port_update(). The final patch updates the stashed mux flag when a partner removal has occured. Prashant Malani (4): platform/chrome: cros_ec_typec: Move mux flag checks platform/chrome: cros_ec_typec: Get mux state inside configure_mux platform/chrome: cros_ec_typec: Configure muxes at start of port update platform/chrome: cros_ec_typec: Update mux flags during partner removal drivers/platform/chrome/cros_ec_typec.c | 76 +++++++++++-------------- 1 file changed, 34 insertions(+), 42 deletions(-) -- 2.35.0.263.gb82422642f-goog