Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2798621rwd; Wed, 14 Jun 2023 07:29:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6io2Xfw02FYbT+jPXi8oz+w9aBWS7XRzygnEKKpWIORY2VsbcXW10EpGbjvh57s7O4evww X-Received: by 2002:a17:907:6d08:b0:978:992e:efc4 with SMTP id sa8-20020a1709076d0800b00978992eefc4mr14165801ejc.8.1686752967058; Wed, 14 Jun 2023 07:29:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686752967; cv=none; d=google.com; s=arc-20160816; b=QzWNyQ4uXZB05VX1/JRNtXyP2o0+r4/ZQ+UoIkn8woMB1Dj8keTTa3HLOsdpZXAqkY kVaF5QljT4LYmEBbZWx/sBgU64GmQR5wPid516gpfh9V4RabrgNwNsGuizLsyuwAgHU/ DnhvTLLqsYQbP1/WYhYIU9G8oZdprOflJDe+ElaBTNxDuyPjYjriw9ln+v2s+GxNFVHr CNsR6FQm9if+zc8+i9QNjgLzssTlqbe4lw+eUgvDTNUagjUe0kRXj0fioiPsGTiPjT5O 9ARQ/J3XifHydAHaudsvO3uzIDYfq9ZFAxY0HpaG+UUVp/11vb4q49ACMM/lovxCqO4V pktA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=PHVpbgvRKoN6WozJ1cqg+kiNeYvG89UWqiwLlRl1pkU=; b=eRrzqgC459c1wjd5QKBJEz3WEIPbdvcfFV+L/TBoI9sqdT6wpSfMq1B/80KrvONhLH 1Z2J1WsLtk1wwOOvUXHtR147fdaW1XyBLovQY7TyUJujATbdpQljdl9chTRUqKNBV1Cg h4n7h47855YPGtk29CPK0qKuEIUo4LwtB3/Lo1ZWUlEzmhB5C9/N5SR5/uwFWn6Gmdal VdhQYIQ9E0VyvrFNVmSI1D/iRkJ99rNNmnDx29OJZaXk8lIj+R+QpSA2lsX7wPRW37UE nN7/GJNdSkZMV9gPLWs4Cyht3UxDMYaTBlGmrfHKVuVA9boFEmJXswuam5LnkySgieqV fZyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uAlBhr6A; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id se6-20020a170906ce4600b00977d7c556fbsi4551639ejb.440.2023.06.14.07.29.02; Wed, 14 Jun 2023 07:29:27 -0700 (PDT) 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=@linaro.org header.s=google header.b=uAlBhr6A; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244816AbjFNNLy (ORCPT + 99 others); Wed, 14 Jun 2023 09:11:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244847AbjFNNLq (ORCPT ); Wed, 14 Jun 2023 09:11:46 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EB442106 for ; Wed, 14 Jun 2023 06:11:45 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-977e83d536fso100135966b.3 for ; Wed, 14 Jun 2023 06:11:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686748304; x=1689340304; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=PHVpbgvRKoN6WozJ1cqg+kiNeYvG89UWqiwLlRl1pkU=; b=uAlBhr6AHLRFpqdWqfW6NXeJfp6XKhTrePvF6sAgrFcnN/IYkHGX4wTfF9yMCD3pqI ip1b8OcJ+adTH30jPry2Rv55YPzxuRAx5zIiifq4MwDLrdc8haKTdH2zG19BKNOuo0KE GzaQzCJLG4xDpVDVOmXMxXHGUPzqiQobKaF3RomE6tXk+N7GwCba5NdHzJ/qEGJgajc1 ByEkNmwKoCPH3UBKHN7Jj/CDOrrzhOo2wU6LKPTqzxMqB94pYS2IC3Tn1K77c11s73Dj HuphU+ODSM7BTPPDhaN6QL2mRcY3Tfl/LC7UhxRsNwrFORJirO3qIdoMxXt8UERncVb6 lbpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686748304; x=1689340304; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PHVpbgvRKoN6WozJ1cqg+kiNeYvG89UWqiwLlRl1pkU=; b=kzQ9l2RI38gmvVLtPiURgLkbkRE8H0i+p2WNRC5b1vUdic4DFjBSDeYhMM9kssjdeM CKHqzU+8zBxNSJS0JVFEMhsW1N2K9L0/CfaRK+1pQmswWs+Ey5A1cH5PWC2lFFu9zAcB UxhXgEpavMNUunzEiLBGGQ4DHlvJxlCUKd/0oSiV+35XL7HlqZbuTHDzT1vwBWD9rlrU VUg886+ogjyOGZ12altE0FoMNB9rrZLNL8+l40JFxOsNOkjQJhQqWf4kPsOJoskzO9+6 ESpY9t816KSTwQuZQHrY103B+YKHrNG2dHzyVH3zgrcfWIaOym7hH8uVbWX50lv9YFvp TRKA== X-Gm-Message-State: AC+VfDyjS0ZnKN8E69c5eOllk2nkaJCK2S+i5ZeB+vQI5lPkXVXw60uw egiTNMSxJGqkfdTv4P/o4KMbmw== X-Received: by 2002:a17:907:25c1:b0:978:94b1:2568 with SMTP id ae1-20020a17090725c100b0097894b12568mr13926596ejc.32.1686748303758; Wed, 14 Jun 2023 06:11:43 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.26]) by smtp.gmail.com with ESMTPSA id b7-20020a170906038700b009787b18c253sm8062623eja.181.2023.06.14.06.11.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Jun 2023 06:11:43 -0700 (PDT) Message-ID: Date: Wed, 14 Jun 2023 15:11:41 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH 1/3] usb: typec: ucsi: call typec_set_mode on non-altmode partner change Content-Language: en-US To: Neil Armstrong , Heikki Krogerus , Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org References: <20230614-topic-sm8550-upstream-type-c-audio-v1-0-15a92565146b@linaro.org> <20230614-topic-sm8550-upstream-type-c-audio-v1-1-15a92565146b@linaro.org> From: Krzysztof Kozlowski In-Reply-To: <20230614-topic-sm8550-upstream-type-c-audio-v1-1-15a92565146b@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 14/06/2023 15:10, Neil Armstrong wrote: > Add support for calling typec_set_mode() for the DEBUG, AUDIO > accessory modes. > > Let's also call typec_set_mode() for USB as default and SAFE > when partner is disconnected. > > The USB state is only called when ALT mode is specifically > not specified by the partner status flags in order > to leave the altmode handlers setup the proper mode to > switches, muxes and retimers. > Tested-by: Krzysztof Kozlowski Best regards, Krzysztof