Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1499763rda; Mon, 23 Oct 2023 14:46:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEblUDKYCAse1qae+BWU2X0ckyACMZ4hW9Zo+2qdW9AZ0T/VWnEzI341fIpPouLatWeNZp4 X-Received: by 2002:a05:6a00:18a9:b0:692:780a:de90 with SMTP id x41-20020a056a0018a900b00692780ade90mr9686297pfh.30.1698097559918; Mon, 23 Oct 2023 14:45:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698097559; cv=none; d=google.com; s=arc-20160816; b=RnzofVdxOpLx6uKCCYUR4VKvWN+C9f8i3oZcEnD/1lPYyKYD2/v2qKWlH41N5IaOHX B8UZCHEt3Vlc5quTYCCli5021bOiiH5JTN4ot8xJ9C1V6hw1CgO/p2PJgmdp+shARPFK bTuR9cfO4PzBZ5+OMScyEz7ylVNQ6EAhC+t9HiFXHSJ+0ijiXcWckCqlz0S0q4TDiSUD v+0cYPD7T9HCfKbfTuL2laQLYMePJKKnKKJDvqRVLQTSsJ17XN7xg+mvSEo2OrzTWD7I 3/kXxHmey0XqC40FfZGx1twgm4shuZcinioIQiPT6so3NEL+DXs4kuGeqxXee8FokJJC 5y3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=TMHt4JzUG+TVaPwcecvrtNVv7hq5rD+HCe3ewQSR9q0=; fh=sIw1qh1/zjSeOz36BMybojRWZGk8K/k8PsXG8lXmnZU=; b=J1oQUnacMU3Khvd1+63LAQq5XFlm+nhByAJAUH6sjhKxRXxMYhlh6cKkRZgfCR4FkG g3SbyJXPL3s/LGhWbcZ4Ayz0W0Cbu+d5hgZJ5b3sjckHvbxSbMoxyXkyVPA3RDGkA6Z5 krxMDk9r1vh23Xaa8mKcf+nqEhiX/LohBurC7vcN1CzSsXDjcSheGU4ubjqiBInHygvj YwTdw0pJeiDkSQAu7r2YXR6L0JjjIwxVQepVZ3cCMauTWjHVOhgMnrLkxjKRCOofAhbr ul/i8TBTwO86XSJCvunxivIBf8oiws5p9/tzg7K5ad0DXNCsks7tJACU4OJTRxOhC+dA 8Dzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O9trq1uu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id x21-20020aa79575000000b006b4319c78efsi7152376pfq.389.2023.10.23.14.45.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 14:45:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O9trq1uu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 937C2807CB42; Mon, 23 Oct 2023 14:45:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232053AbjJWVo5 (ORCPT + 99 others); Mon, 23 Oct 2023 17:44:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229552AbjJWVo4 (ORCPT ); Mon, 23 Oct 2023 17:44:56 -0400 Received: from mail-yb1-xb2c.google.com (mail-yb1-xb2c.google.com [IPv6:2607:f8b0:4864:20::b2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E06EFD7D for ; Mon, 23 Oct 2023 14:44:53 -0700 (PDT) Received: by mail-yb1-xb2c.google.com with SMTP id 3f1490d57ef6-d9c687f83a2so3640662276.3 for ; Mon, 23 Oct 2023 14:44:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698097493; x=1698702293; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=TMHt4JzUG+TVaPwcecvrtNVv7hq5rD+HCe3ewQSR9q0=; b=O9trq1uueJ3ZfD6jNQkyf2B/V2u2PDpwCJFsfgSAe/u4u6nkDeP5XcmCVu5YPn/t8X utHEL3wSLkbK5lUIM9eS09NpDb4DazbRTP2+axbWIO9nhEKB6voyN3W4nhUF22KRGhwy dsdGQ2Z/+hCuqXiX628ySrmCxA5h0H/TaltM0isyXO4a+bpqhA9RIniMETWhYFc0XVsu qN1cPLgAs8vhqxNn53zyYbUv5DoBjWlAgUefuSf+kMyTaqw/FGp24A8dO/U7a3dvCzIQ JnXSB1YWSshjh0H5p6Fz+GxfnqUHOirnHMO/yJ28ww8uGmKGdW1x2GV/NRdctcOpbSqe uUNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698097493; x=1698702293; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TMHt4JzUG+TVaPwcecvrtNVv7hq5rD+HCe3ewQSR9q0=; b=MmzsCzfpfRVAdcW//eJyaRoaa+c/oWM2lmYBUU1en4xW/SvmMvAaeBnAip3Zp1BYLp eMp4anl2QOZQjsyKnKzHJ0rV0pm3UgxQ8D2mrysYmkhXmvmzijY+M3L/tBDKFPw42sp8 An9NZu6k+mwg1jCYR9j/IY/lHsmGPq6n1IAOJ2Tz+VTq/t+ue2Mc5lFFkx1KakWjC24d ndvDyL4qxC9pchryb7VJlcbcMwH6sxVEEDfzAWxsGA52h8rGfK0nz5d+iwh4ciGm16Fi UQIGDK6UNKqJj2wNgvAyt/JSUAc8U51WSuip7D2kp6m/G9D6vx1N9lgSwMhuR7gPcgAz QHjg== X-Gm-Message-State: AOJu0YyQsl1Pz9Xv8/nL6H5kqnWw+d8X8lvMfzdSa8uReDLPgTMmn4iJ tEDp1l/a/XWaUe0IVGJWA4MvNN3ora6xfkJgL//NPQ== X-Received: by 2002:a25:51c3:0:b0:d9b:b6:ad72 with SMTP id f186-20020a2551c3000000b00d9b00b6ad72mr10363779ybb.50.1698097493122; Mon, 23 Oct 2023 14:44:53 -0700 (PDT) MIME-Version: 1.0 References: <20231021-sakuramist-mi11u-v2-0-fa82c91ecaf0@gmail.com> <20231021-sakuramist-mi11u-v2-1-fa82c91ecaf0@gmail.com> In-Reply-To: From: Dmitry Baryshkov Date: Tue, 24 Oct 2023 00:44:42 +0300 Message-ID: Subject: Re: [PATCH v2 1/3] soc: qcom: pmic_glink: enable UCSI for SM8350 To: wuxilin123@gmail.com Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kees Cook , Tony Luck , "Guilherme G. Piccoli" , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-hardening@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 23 Oct 2023 14:45:06 -0700 (PDT) On Sun, 22 Oct 2023 at 13:51, Dmitry Baryshkov wrote: > > On Sat, 21 Oct 2023 at 13:20, Xilin Wu via B4 Relay > wrote: > > > > From: Xilin Wu > > > > UCSI is supported on SM8350. Allow it to enable USB role switch and > > altmode notifications on SM8350. > > We have had troubles with UCSI on sm8350. I have a workaround for this > (and earlier) platforms. Once it is ready to be posted, I'll include > your patch in the series, if you don't mind. I ended up fixing the pmic_glink in a slightly different way, so I'll include a different patch in the posting. > > > > > Signed-off-by: Xilin Wu > > --- > > drivers/soc/qcom/pmic_glink.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/soc/qcom/pmic_glink.c b/drivers/soc/qcom/pmic_glink.c > > index 914057331afd..1196e79e6fb3 100644 > > --- a/drivers/soc/qcom/pmic_glink.c > > +++ b/drivers/soc/qcom/pmic_glink.c > > @@ -341,6 +341,7 @@ static const unsigned long pmic_glink_sm8450_client_mask = BIT(PMIC_GLINK_CLIENT > > BIT(PMIC_GLINK_CLIENT_UCSI); > > > > static const struct of_device_id pmic_glink_of_match[] = { > > + { .compatible = "qcom,sm8350-pmic-glink", .data = &pmic_glink_sm8450_client_mask }, > > { .compatible = "qcom,sm8450-pmic-glink", .data = &pmic_glink_sm8450_client_mask }, > > { .compatible = "qcom,sm8550-pmic-glink", .data = &pmic_glink_sm8450_client_mask }, > > { .compatible = "qcom,pmic-glink" }, > > > > -- > > 2.42.0 > > > > > -- > With best wishes > Dmitry -- With best wishes Dmitry