From patchwork Wed Jun 7 08:05:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 13270141 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C20F4C7EE43 for ; Wed, 7 Jun 2023 08:05:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239430AbjFGIFl (ORCPT ); Wed, 7 Jun 2023 04:05:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239074AbjFGIFR (ORCPT ); Wed, 7 Jun 2023 04:05:17 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CE441712 for ; Wed, 7 Jun 2023 01:05:13 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3f6e68cc738so58620265e9.1 for ; Wed, 07 Jun 2023 01:05:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686125112; x=1688717112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=gE1qhAhlgSaB66o5SMOQH1/DZyGEHuOAUxg0SjDKmKE=; b=HAjIbiURhSM2F1wihpcaKnBZ1ATOwtT48EJKnfpROc4BAteX3tegdMuSB+ovEivfSb tRIUXb6bw6TlloRdHldXceIi0Km97MEB8GI8tAxnWAwFovQv+bM1w5V9JTFt2hkxIBl0 jr0renaM9mkS9gBEGuGduyBrUFoVtjkyhcNvll9ZdmCXkZfbuEBTOEoz1tmdi2Iri6U3 Ej1UcVq+bA+dAZzMMk1b9XlAmoQiNGmapaks0RMEg/g9gFn7yRW01FLNpGHgGD+9YaOW ICgsgziCyeVw6vJWWoBfoZ1+kJKgRnKOizI3JzGnpb6zck+Van6Vvr3bCTgDrjzlFv+P qiJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686125112; x=1688717112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gE1qhAhlgSaB66o5SMOQH1/DZyGEHuOAUxg0SjDKmKE=; b=Ytr91G5LxBjRBkOyL09SPJBSh1jURjCf1BkMb1m2HEx0iyFzSjoytfm+d90niaWzQO vU6iqPPMo/soxxx7diJ2dEYX9dvThRPCBnCsKAMrfSyjQskgEf36UCICUHF77gux+5a6 Q30mtLoF6yr5O6jXJCIcj62jPC5WDhHtHWBJccSkVrutjPqpBHbB/L3gPhwfJ0ra7e9O efMFac0WjY6vP3JAC5YBZtwTiYhlipUowfmtS+n0odi/FIaPotG7ErIpQtHGfkGDkxY/ ZsSqPHORKu57ZIosJR+uvmRCQHNAUCtQhGLqxITMs7AtpQbjoEOA1R+NXNUu7EtKE/wa S1uw== X-Gm-Message-State: AC+VfDxacm2jbrsbqhVfu4ywN016vZDR1pHnOvNoqsESWwIZaRy//aUS eHToI+OKCkyrFRBI8drXyyHXpA== X-Google-Smtp-Source: ACHHUZ46A9CM8Ldjm2dzNVyfQDTcYDYZzOV5FSPMMSJbHo+CtXsC8s1ALkAgGKT+fE0d7T/eLtsmcg== X-Received: by 2002:a5d:4d46:0:b0:30e:5283:ec85 with SMTP id a6-20020a5d4d46000000b0030e5283ec85mr2792581wru.33.1686125111884; Wed, 07 Jun 2023 01:05:11 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id h8-20020adfe988000000b0030ae5a0516csm14706269wrm.17.2023.06.07.01.05.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Jun 2023 01:05:11 -0700 (PDT) From: Neil Armstrong Date: Wed, 07 Jun 2023 10:05:04 +0200 Subject: [PATCH v2 5/8] qcom: pmic_glink: enable altmode for SM8550 MIME-Version: 1.0 Message-Id: <20230601-topic-sm8550-upstream-type-c-v2-5-3bbdf37575c3@linaro.org> References: <20230601-topic-sm8550-upstream-type-c-v2-0-3bbdf37575c3@linaro.org> In-Reply-To: <20230601-topic-sm8550-upstream-type-c-v2-0-3bbdf37575c3@linaro.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Bjorn Andersson , Konrad Dybcio , Heikki Krogerus , Greg Kroah-Hartman Cc: Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1172; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=z0GFmf8RXrtifMxHJ2/MNRFqa/pTMGwvA09+Qr9ms/o=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBkgDov64o9cYJqLKmocRK9oMU8YzpISf9fvbDGZqpc lHI71KeJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZIA6LwAKCRB33NvayMhJ0VIeEA ChyuhCk5Z4gXDrAm6P7ShqvfFh3tuKAez0xzlhDOimixdQNd1XoL9HCUt3SEyQqZtIEy+n7KNl4R63 SsKZZkttbC0GLWb38OYLNRPVzj4awqh4lAO1h2Mjplz+HsKyxSPR3pN5mt6cIwuhzsvjEW1ATWfH1W dfQPsnKyK7S8C/Pqkr1Bpu7SVyXVKvJgZ75Z0m7Nap+1Tov7OMnHLeqWRiEePZoi994KqEgEZeuHKB qCkuLnsqWtkOOoKxMocx9T1hKqbkXWb02hJRTzUN3Y84D0gCASMoIlQWbzKOzf17kEV6t+FIwpY7N6 /RgXrEJV3amblF8lNKoTiiEQuq8ST7ScLwwkYZiYzuB/qQiDXo1XyawqxFWnRwwCV4cV4iKQZBT8tN 0ESc9V1XQLZz7MHCggse+Puv9jDPjvqws011FRW5vrdmQiLW9V/gySFlASQQVH6Q8Z/dulr/Xz292U 7fDWJleXrul/IMBESM62ZB0rGwdgbk7UNCvugPAnDXi1ClQplDb1Zu4aGicTkqAvpDwYyQijraR2WN /ZjsxAhg+wC/qqrDk2DM5/QCkN+jiOaXFDGaGOK6eaGCHI6J6+CTeevG3VnCCOegl4yU/+jahhcsfq a9EQdo19XGTDyHilKQ4XU3qAmKV4w74qyq7BXsYb1Fazxo0Jm0dUkTKpf/ng== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Altmode is also supported for SM8550, allow it. Signed-off-by: Neil Armstrong --- drivers/soc/qcom/pmic_glink.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/soc/qcom/pmic_glink.c b/drivers/soc/qcom/pmic_glink.c index c87056769ebd..8af06bdc6f5a 100644 --- a/drivers/soc/qcom/pmic_glink.c +++ b/drivers/soc/qcom/pmic_glink.c @@ -342,13 +342,9 @@ static const unsigned long pmic_glink_sm8450_client_mask = BIT(PMIC_GLINK_CLIENT BIT(PMIC_GLINK_CLIENT_ALTMODE) | BIT(PMIC_GLINK_CLIENT_UCSI); -/* Do not handle altmode for now on those platforms */ -static const unsigned long pmic_glink_sm8550_client_mask = BIT(PMIC_GLINK_CLIENT_BATT) | - BIT(PMIC_GLINK_CLIENT_UCSI); - static const struct of_device_id pmic_glink_of_match[] = { { .compatible = "qcom,sm8450-pmic-glink", .data = &pmic_glink_sm8450_client_mask }, - { .compatible = "qcom,sm8550-pmic-glink", .data = &pmic_glink_sm8550_client_mask }, + { .compatible = "qcom,sm8550-pmic-glink", .data = &pmic_glink_sm8450_client_mask }, { .compatible = "qcom,pmic-glink" }, {} };