From patchwork Thu Jun 1 14:07: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: 688472 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 59551C7EE23 for ; Thu, 1 Jun 2023 14:07:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233827AbjFAOHa (ORCPT ); Thu, 1 Jun 2023 10:07:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233718AbjFAOHZ (ORCPT ); Thu, 1 Jun 2023 10:07:25 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C610F1BE for ; Thu, 1 Jun 2023 07:07:12 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-3f6d3f83d0cso9409765e9.2 for ; Thu, 01 Jun 2023 07:07:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685628431; x=1688220431; 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=ncTR/LFkICuOKf8JzE8mwzQkAw0gFcGx6bwSWNyTyZvT565r2K0g6cmROydYZR1K3/ GPs/14R01hYQ9sy+XqgeRbT5aL6y5bM6otfkzqmJ3/WnB/FxCxkmZuLMYFRHfBHwK1Wc 6vLIy0ZvkkX3gHPRlQ4iPaFFJSu06WUv9acFcgOFc7Ii+Ggq+BEP5LxhV0xMdNl8bWj3 TagohST1mxSOmm+NJmUR7s1fGw1Rj7zmwH8BrSAx/NPd1X7yYCA1V7QcasLAGgR5aAA0 NyJsiWKXFKCS2XrTcLM3gOK5WO4jAPe0YlkNHN4SJuRWz0jx/bLDwOl9pbwu69YqD+HA ofYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685628431; x=1688220431; 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=evEOApiYDXwHYdseGk+YDRRb3uxAfWROJzsN8W35xfVgMSlr48AfcvdDVgIkdLwYtr cg5k2ZtRv63Wkvxhw1d+n8MnNsByH6VsWIpPMex5iKnMtZ3Vr+ml1UyyFIjZpUg8S4yv 7VDyjxGPuZY+VCYPC+pWtRQtrpUSyTrD2BJk8zNpzzgsIE4sHrew63YJnWSPSMqUBxPb He9bpBBa2JYcz+knTjxdssHyvzOZcmOrzVAs0wi7Su3661KbZPbjH6LkCYEnJlJfeF4v R2HTC0eDda/uE6GSmheoHMYOUCheLLVEpe1QUsppLaDuY9DYcTlVmx4yF02V/dng0HNX 9CjA== X-Gm-Message-State: AC+VfDzzfwrP/vjuPPfy2HGMe9XHjqpxKr8Qr+9oV14iPL7A0ddO70Ze WVy5N1RMMEBTDEmkrmzxldLn+g== X-Google-Smtp-Source: ACHHUZ5AuOmZ+NfEXgtt168NGlt099DukYcSfpfAo7yOeBDZ/yn/lvo1Al/toGQmnwxHJRX/J3JkDQ== X-Received: by 2002:adf:e60a:0:b0:30a:f19b:ff98 with SMTP id p10-20020adfe60a000000b0030af19bff98mr2306105wrm.9.1685628430917; Thu, 01 Jun 2023 07:07:10 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id k11-20020adfe3cb000000b003078a3f3a24sm10504166wrm.114.2023.06.01.07.07.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Jun 2023 07:07:10 -0700 (PDT) From: Neil Armstrong Date: Thu, 01 Jun 2023 16:07:04 +0200 Subject: [PATCH RFC 4/7] qcom: pmic_glink: enable altmode for SM8550 MIME-Version: 1.0 Message-Id: <20230601-topic-sm8550-upstream-type-c-v1-4-d4d97b4d8bab@linaro.org> References: <20230601-topic-sm8550-upstream-type-c-v1-0-d4d97b4d8bab@linaro.org> In-Reply-To: <20230601-topic-sm8550-upstream-type-c-v1-0-d4d97b4d8bab@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/ZANAwAKAXfc29rIyEnRAcsmYgBkeKYI8CawFYNKGPW6pQYZQjQsD0rKsB8i9x5OFsrg J7Wlc8iJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZHimCAAKCRB33NvayMhJ0eddEA Cu0UbnpZfBtdkq7Zuce07nIBDaroOukoUwo6zh0LsznsNjgsYFXmrKEsC3PotUrLZj+txrA5lC2g4Y 8cSTvBajiO9kMt5RHE0us+DnxbqnWWjoI+qKfzgX1KAqf544woylwpabVmJJJWUXs0rmXj5ufkaW/z KPDJylBPIp4HaeGfWfFL/tcEXMzUKZg+WMUKbw5h/6D7oymcPRm+Q28cDGtZw9ois73sw3C8j7ozmK k9xfI5TzxkjA27PwM8GIe0cKczhqvB1jE6wHW4x/m5mK/ingOZIxx+R2hFesKoWnDB/fPck1tfyMCG v0GyMvVNxveLRbTGpFEDu9xOFBxJTfx1od9KDwCqSY5deHR5RdZy+SMEAAV/GhmbMopD9NnXKn/LLo NiPSLH5j6aXExTXNvl8k+15+mQDDydTzEs+mw44URYwvcdcQD3TdYizCC7zC1cGFB9rZyWAaEugaqx 4bgqa8zWEwq+5No6s8/bjJa54NkNHJ3WGutyXxe8qhmAwnuDtZ/5PiYqXxbYtrRmSyp4I8mKL64Uur BROF+/+d4CkXTRsqErpxT327MwVyyximsd9sB9a3ZE8dhCGyc7tlHrVymb1E/YXjSMymOF9Lpcmnyn TBNAvWe8U0UzG+ihrPp5V+IuQMnP2vFgiqbX4Fl2Yq+hoHMoYd3M9ubGZy4A== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: devicetree@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" }, {} };