Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1575996pxb; Tue, 8 Feb 2022 22:51:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJze+u8x+w7xUdoBL9u5H4uZ1YoTL6wg/3M+liaPp7uPR4R05buurpRd6SIam8QRpW90Ny6d X-Received: by 2002:a17:902:d702:: with SMTP id w2mr1032901ply.17.1644389482895; Tue, 08 Feb 2022 22:51:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644389482; cv=none; d=google.com; s=arc-20160816; b=X0RIDsI5Ag6rYZwuS2mk4zO/ovuc4KDRowhZlu8rO8NzyzCEDoqqbh9HUhnWkYVAgP hufyraXtxo3Ph6XzOiSLrwMo3GPSDs5Fb1V9CbZ8QrWZSPzW4UNabfXm6S8eRxkTQU8V 1C4cDbnx8Y8Ifq435dsyl19/VNY+vtf0BNgSzDTu+QbThZMqdUffGD0eADjbkXjTi8Du LabKl4GQJl0RTSJwfwuduzHcexNrbrRDqXBkmkfC9JFwwQGwZlOzrjT77cBEVk8qcmJ3 iY2GuKOyKCyUroAPTz4u/p43q0plSm/k8YJofzdRvPKSCT0mBxCokPZpKAqk2+REhzGq zrpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=rVLKnltV9lRSittC1euYQYIfAU8KczpP9bZo3Hkx0cs=; b=fHUJOxt3dLL3UqV7sBoLMOEtfwnqrZELzuIpAVuwGXuJiUmQYvuC/jvITC1y4TkRIt mucoBmQtf7xyCftM3OjkpVOZFC74/2jXxEz5N2pIJyZP9cXjsbjGuBQuV59sjTpDwGYF dfKdU6ugCx9nRlZewcfGyA2NA7khpXyJDp+rbGwbH3zHN2aAviKPf7ipPtnr/Jd+9Uql eIOrrrjmDZKwTqYYFQlwosmdE9ukcNZbenH6DqlFkjwLuPOLvJEFfZn5kvtiqj8BmrwT FdprFpPD5mtL9pVkypT0mFK3IqfwNmdRcEzvgqG3RmQkvh5QNFwNEdAAofKJW1IS4CD/ I0aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=doNdBMkj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l21si6184744pfc.138.2022.02.08.22.51.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Feb 2022 22:51:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=doNdBMkj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C1AEFE01CC85; Tue, 8 Feb 2022 22:23:12 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347638AbiBIENf (ORCPT + 99 others); Tue, 8 Feb 2022 23:13:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346909AbiBIDi7 (ORCPT ); Tue, 8 Feb 2022 22:38:59 -0500 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25961C043182 for ; Tue, 8 Feb 2022 19:32:23 -0800 (PST) Received: by mail-pj1-x102e.google.com with SMTP id a11-20020a17090a740b00b001b8b506c42fso3953492pjg.0 for ; Tue, 08 Feb 2022 19:32:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=rVLKnltV9lRSittC1euYQYIfAU8KczpP9bZo3Hkx0cs=; b=doNdBMkj4u3OFQ53O4YQOnkbQiVKdbnuz+0ds+U5lrSTl8aipq394zPVeaTRh3f6gu glCy62WV1d/OWuTMxARWElvpLNGntWMAtt9GjeQ5zntuXa7k58CFAZGE6QhIWhwWuXAc 0jZpuNunGPcc4ucZN2LvDxVo+A5fudPmVry2EbTawH4RUu2FcBEVUT+LLSaejk1gSliM T+bmMr8gBjOu2XeXQyY0BQLElB4Cz19kfOsn9f4xYpjYgYyB5+L9df3z4oW/FCEc6Ej3 fpFTNOhMHbXFaY6LW15AptBKohrKi30ZNbhX22cnwCfI2rowDuvugYREXCwOZgMu5WlA UjHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=rVLKnltV9lRSittC1euYQYIfAU8KczpP9bZo3Hkx0cs=; b=LQefDKmK+0UbjAHChC9KnpeGWnV2pGphti9EmUv3ZcAI6Gvy/oCNGU7JOMnI/hTeEh U6dd5hm7qYiOFT9QheRSA22eRNrwEm3tL2RGSbtqHb0QZhKreF+D267GJPFbHJm03J2e 8Zt8XK0sSE6H2i5QzX9g7gIGJ9O7MiMFmcwe+fmUlcB7jzKxppuKfoF0ycpaAA8XJeMk NJnGot1VAoqeCC9uwr7zMH6NlF+hOPuicu170OMndlGd4W0DoYx1STBzAI/y+LmB8Nj8 tgU6oyTTU4Ct/Q1Nu2UKJTrWLJCftbxJMyQnZ10d7QN3o3foyCfF1rNFTjAnuiF4IUDt 4DHQ== X-Gm-Message-State: AOAM530l+TkW8LIvnEQhDDD+DUk3QUbIC+A3+WUEIEfTRSAcOeEIMHGA NnQ1YPFe2zU0ek/9wTF62lKQpg== X-Received: by 2002:a17:90a:ca93:: with SMTP id y19mr1251720pjt.108.1644377542380; Tue, 08 Feb 2022 19:32:22 -0800 (PST) Received: from google.com ([2401:fa00:1:10:4b6f:f14d:be50:86a]) by smtp.gmail.com with ESMTPSA id p4sm822144pgh.53.2022.02.08.19.32.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Feb 2022 19:32:21 -0800 (PST) Date: Wed, 9 Feb 2022 11:32:19 +0800 From: Tzung-Bi Shih To: Prashant Malani Cc: linux-kernel@vger.kernel.org, Benson Leung , "open list:CHROMEOS EC USB TYPE-C DRIVER" , Guenter Roeck Subject: Re: [PATCH v2 2/4] platform/chrome: cros_ec_typec: Get mux state inside configure_mux Message-ID: References: <20220208184721.1697194-1-pmalani@chromium.org> <20220208184721.1697194-3-pmalani@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220208184721.1697194-3-pmalani@chromium.org> X-Spam-Status: No, score=-15.3 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=unavailable 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 On Tue, Feb 08, 2022 at 06:47:20PM +0000, Prashant Malani wrote: > Move the function which gets current mux state inside the > cros_typec_configure_mux() function. It is better to group those > bits of functionality together, and it makes it easier to move around > cros_typec_configure_mux() later. > > While we are doing this, also inline the cros_typec_get_mux_info() inside > of cros_typec_configure_mux(). > > Signed-off-by: Prashant Malani Reviewed-by: Tzung-Bi Shih