From patchwork Mon Jun 19 08:07:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 694197 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 42ADBC001DC for ; Mon, 19 Jun 2023 08:07:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229920AbjFSIH4 (ORCPT ); Mon, 19 Jun 2023 04:07:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230206AbjFSIHa (ORCPT ); Mon, 19 Jun 2023 04:07:30 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 486CFD3 for ; Mon, 19 Jun 2023 01:07:22 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3f90b8ace97so18256075e9.2 for ; Mon, 19 Jun 2023 01:07:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687162040; x=1689754040; 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=r/+hrX0GgdYpPYOfBSffAgZkKDGGRgDNR2QD2HNyWl4=; b=nCjeSP/703vwmDe80yw1glK0f+b80yiMw/BTYdLJpu+I/GWcg6J4s/DI2EjDpwGapH loEaN3f7INJyrBLR8GduTPDOmUbMIFMKdY2zqD+gymnvA/ed7sPg81i59xJE02aHMj6x Sa4nADwTk+YQf4OHit43GI+CH7OIJm66tZeKSDv7G+9cn1RNjRme9N6Sc5kMAV3Hqmur 9VElvgizgQlUoB+78pjYamDj4cMPVmM4nXEpvnbRlxWjBpRDhzwKEbmxk2oRe+XIaZWN N1Lck2IeiXBVgdkeQlq3Pi3cCqQM9Re09KzY39SMVGgYD+/hF2Lf/ZvR1ai9OqLRGWA8 D5Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687162040; x=1689754040; 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=r/+hrX0GgdYpPYOfBSffAgZkKDGGRgDNR2QD2HNyWl4=; b=BeW/EOIZ9Q7f006jdYdBvEvGhjjAwyP0Zc3ibtzAMO5ScT9LFeJB3IbPwR+XlNXRze wSAmVPafWmkhDEoXyYUQ0AHUJdjirMGP8MeDvjMOR5IfRX6k3r+85jhuoo7Tw83ceTNQ OYE+eq05CVVsVeusJL1p/ptAjUqIl+kU3D0KLvO/riQEE/dz/YmtCd4WNZN6UpnaBqPU 0E8nzIDtXh0HaqFYfOOTX8+JkpYXNrOmpSttk8q1NWPS83G+lj4i4bGL1Efsm682lulY 7GBzBOTYGZHG1a8b7AZuUN1Rnka9Yj3IfNbWd2jVQnno7LzTjI0pCIQ+HZ2w2aRV65A0 TReA== X-Gm-Message-State: AC+VfDxQSkrKiYCncgDsDv4ouFjKfp+IcBTeW4XS2gpR6wODPGo0oOPK DRD52xgV3QoUhqd0ZbZ1IlYHDQ== X-Google-Smtp-Source: ACHHUZ6MGMSk7kSXhM2qfjrVYAtS19FO8ezadaLX5DgcnjzxuLyT0H6kT7n7NKTLZf6N6PC6eE/KYg== X-Received: by 2002:a05:600c:21c4:b0:3f9:b12b:1596 with SMTP id x4-20020a05600c21c400b003f9b12b1596mr1412256wmj.19.1687162040760; Mon, 19 Jun 2023 01:07:20 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id m19-20020a7bca53000000b003f801c12c58sm9791158wml.43.2023.06.19.01.07.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jun 2023 01:07:20 -0700 (PDT) From: Neil Armstrong Date: Mon, 19 Jun 2023 10:07:15 +0200 Subject: [PATCH v5 3/6] qcom: pmic_glink: enable altmode for SM8550 MIME-Version: 1.0 Message-Id: <20230601-topic-sm8550-upstream-type-c-v5-3-9221cd300903@linaro.org> References: <20230601-topic-sm8550-upstream-type-c-v5-0-9221cd300903@linaro.org> In-Reply-To: <20230601-topic-sm8550-upstream-type-c-v5-0-9221cd300903@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1227; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=kJ8k1s4YhbZeghfNqa2GuV3vcB5ikSdP7IhrDDYjGGI=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBkkAyzydKg6gsMsLtHSbgGjR+C7u4iF05goQRd/Jzx QhtdG3qJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZJAMswAKCRB33NvayMhJ0d3dEA ChOwiXYTap6dr8Ut5wRdHm79uAP4pqQBSHeL9pLB+bn6ar8+uKklL7FkDYH72bHxniJflLSvgGHky2 rMBpIIrSo+kunMXtrcwObgsO+sxsW2ATkh2780MCHlTSJ8cEduD0Nr/24rUBzq5IyPi4mRGaMpz+t0 TSZ8lMy5nLwwsVOfEvgEyaiw+UwwjZx0zs+B+GDw77qMbG4+bSmQKnRhpqD+obGul/S39qHW7kJQr1 dw3nTcAUSKhty2Y8iszohIkq0M2nP7bGJrnWpAKcXjkd+0EVaM+Wn21KTVGTb6GjrYyr4djLM7wpQJ xjbsxacq6JEajfN44h1IyzBe4tIsvlV83sD+CI5Hcw4NtFov3wdKFcr6rjw9dP4D2gXb0y89BoNLGT sZ+dmEhBq9jSNc6U14d0wr5cOKRMMiSi3V+fwM0sp8CJj9q250otz8F5bPDNcTiIWKhnm3Lr7GYNU+ GHp8KcXWhGIAPcx6vw2r3D9E9JPae1HKmya3w62rV6f7q2Cuvmmbl3dwn1zZb6kSVjwn+WGE+IKIC0 cUtbs68bMyMF9xn0WaSPrmv3PMcQPIc086sZKfa5vkW+m3/kOth8esjfN5leHgIknfe2DDx0BgOHpy tk5uRemk5JKadGnmw40Le7bYg6X2OKFPAdhOQ5B0DxyT6DM8VlILS0uOH/Ew== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Altmode is also supported for SM8550, allow it. Reviewed-by: Konrad Dybcio 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" }, {} };