Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1801145lqp; Mon, 15 Apr 2024 19:22:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXkUm5hvzit03hwTBuJ/xAudhHH9hHmr4KryjUhGWXM/PiFwmb4liazDnB8nmMhK5CqrZ1Z6fNHc0vWazT+Z2O5Kvwiq4jf+j4Xtf+9nw== X-Google-Smtp-Source: AGHT+IFUPJfzbChD4w15oDQqlBvGR/iPaOFKLCDw8tnfR07QQt8uSdFuP5BGbS97glZhh/kJZxbr X-Received: by 2002:a50:a454:0:b0:56e:2c1d:1174 with SMTP id v20-20020a50a454000000b0056e2c1d1174mr8966860edb.4.1713234170558; Mon, 15 Apr 2024 19:22:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713234170; cv=pass; d=google.com; s=arc-20160816; b=kJ5N5aIVw3Sl+5JXKuSB+byuA66eycJuWHVDB+TOHHLxsk/ezlxxXWTcyTo2zJIuD7 8wEOgOQBKba+AwUx8oBKaa3e5o+1ICce1QlORu8rbl9ovY31EclLwrE2hO2Oi7UDSQx1 iUlBVf4ySrmU9qK6xe93FuK2nyVYwhx1outNTBxHBGE9tyXlce2DUDlFOpl0UWQcGnW0 InGS0sx/IdbTwWnR8j+DD+QjwHNCRoebbTYLl1s5G6OKZj0irUYbua65xzLzYUJFP9Ve AC/XLp2LLza2A58HsMPpw1Ogb0IR2gD13Q5UJtsL+wz4YxMJ6H+rx2Co1Elc3LsB46X5 FVHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=9V8cEgal1TbWwyBmW+Q6Q9L+VvqZVNAIU21myUFXfYc=; fh=6beKywp8cUlhRWh2cQxroJ/xVbzCdpHzYKdOMtD+hZA=; b=rhy/m6hWNO8l19ODJHyJCGdqyEIMIv153KFrDYRTtZdaLd6QzqS250lN4eW3eqckIw H1W0Nwn2z+m5K+fesPgUlQpMcySv2L3wqNRlVjiaubAelmk4jnt/0TcWWEWLZjWWgcDF H9RlKHTUNrUMO9dG2TURQ7NL8/YqK8J28VkhbUhoCJJKRikGHGSzMy40l3mw+SSKE7Mr 8/q4f/sTW9ObwPcXRi/5TnKONOr1QZAv0jJWh3KbI0FUPiNsiDFJ2O3KNnnc7QKJIu1q rEhL77GURVFPqMU6ksMtIhTJjzHeg2mIntXOTq4xhV6NruJfx3fOXF3IuKqQfoPxVsTQ PoXQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A016eNl2; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-146121-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146121-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id t20-20020a50d714000000b0056ffad2be8csi4099484edi.388.2024.04.15.19.22.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 19:22:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146121-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A016eNl2; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-146121-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146121-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 213C81F21CA8 for ; Tue, 16 Apr 2024 02:22:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 63A0F3C097; Tue, 16 Apr 2024 02:21:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="A016eNl2" Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A855638FA1 for ; Tue, 16 Apr 2024 02:21:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713234063; cv=none; b=rJ2sI2anOTcgcIch/THTfqfI9zgPMhoeleaOpy6DtC6LiS50ChNn+b4T+naSdwvMj5gD4kBC4uwgJQ+H+aQbHEAfsZOwASXEgFsrVlV6N7Ks2mjyU3OKsAxanWy14cyGAYwwXpeO91yxeoW6kbS1E7qRzoPg69yQEfRzRiPQTgw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713234063; c=relaxed/simple; bh=AfSx2w3/c0hCJlrKpU+5864hNOPEGMqvFqOcHBDjtXs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=IbXbzGO+Fj6GJU2ieAccxk/tM7Yap3WZtIvYEPSsN45a5PUGFjDxXD7VJQ0YdO+Nu5d8ZfSZXjsh6OXN0kOF8jwJm1/YWIl4bEZb+WwsMz/VjodqfuBxXlND5n4WmrKUYNfPk9ZYHKDCoO5ghAcbl3yJa2Dc5aCoP2BwWeLHPdc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=A016eNl2; arc=none smtp.client-ip=209.85.167.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-518f8a69f82so1581734e87.2 for ; Mon, 15 Apr 2024 19:21:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713234060; x=1713838860; darn=vger.kernel.org; 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=9V8cEgal1TbWwyBmW+Q6Q9L+VvqZVNAIU21myUFXfYc=; b=A016eNl224UmKON4ECEOPkNCnZZ9QgX0NtGgTaLpyL+G65Duh+aEY5sOimsgxPIUTl 4VibizLFCiGAv810fYysB5y4Lg1B1ICpm0toq0U/Th02AgYu/6PRye8hOzvPBxp0Af3t 5wuBeDeKHjT9gxApcp8i0mkBndUEP820e/EyAdn0dsIE+itjjNVCYmpj/pA4hWeY9x9s eG+mEbkZu0YSqjS9/IdrI6HUmHYOwKlFVLN74S7kVpgPdzt0xv2qu9LsXyWA3ZG8tRxu lDWiYovh/om5bXSWVr4p9yZdyGlBwQ97oPXd/AYm2nqLVyNI9kMeOvPdVI8YkoOO0sOc az6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713234060; x=1713838860; 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=9V8cEgal1TbWwyBmW+Q6Q9L+VvqZVNAIU21myUFXfYc=; b=EZvDII6pkWedFG8LSFmfcgqfCesPInP3B2A7g20igq1pN0/ZlxcvTvqLLfBr15Uh8P I3iGHRrPPfoyyL40tbKfQEt16AfwP6vpA/540g+nQ05AOtyuxiPqUDn5oXHq4FoVjScN ViPRMqPocKKoPA+lpeWG2BF9SdQg8oTXqsxkbIY1y3AKJou9pKtBksFhkuGaXzKOakig Ou3hNEDc4c7pLhwNA8JXtoPIZ7vSbDWRSvZ/KiV84oLlnlwrTHpAy7CpvStobIEGqwP/ iXMbLWarIYK0zK5aWwQD3CPbCeWw4WYNW2y83gNUxdzVKb3jTActB61OBZNvUwwpCw2/ i6dg== X-Forwarded-Encrypted: i=1; AJvYcCUtdmiPxb4K8qBxl4zy/RI8wcGQsIjZPre0CkIIbGyMQmql+JMaWMGhKiOlQzBHuuH+j3rwmcEKyajsEhBucEW7yWbFZTU5GeuK60iM X-Gm-Message-State: AOJu0YwDH2JydBU5mkVdEp/Bk4ysrFOb3nLzMaKqy8GXpXLHVjf4Qiqa FDJIaIAHsA8trGG7tI1M7/6K/gAAmra2jl/SsBXked14+HS1FN24sFIClBkvNVayS9ZFZpHdmvo 6 X-Received: by 2002:ac2:4c43:0:b0:513:cbde:8764 with SMTP id o3-20020ac24c43000000b00513cbde8764mr9833393lfk.57.1713234060112; Mon, 15 Apr 2024 19:21:00 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id bi30-20020a0565120e9e00b0051925dd92dbsm27716lfb.214.2024.04.15.19.20.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 19:20:59 -0700 (PDT) From: Dmitry Baryshkov Date: Tue, 16 Apr 2024 05:20:57 +0300 Subject: [PATCH 8/8] soc: qcom: pmic-glink: drop separate altmode driver support Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240416-ucsi-glink-altmode-v1-8-890db00877ac@linaro.org> References: <20240416-ucsi-glink-altmode-v1-0-890db00877ac@linaro.org> In-Reply-To: <20240416-ucsi-glink-altmode-v1-0-890db00877ac@linaro.org> To: Heikki Krogerus , Greg Kroah-Hartman , Neil Armstrong , Bjorn Andersson , Konrad Dybcio Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Dmitry Baryshkov X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2705; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=AfSx2w3/c0hCJlrKpU+5864hNOPEGMqvFqOcHBDjtXs=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmHeCEEss+ANOz+iQrw9s6j825uZfQsAt0vUk87 qnuuNlshTeJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZh3ghAAKCRCLPIo+Aiko 1SYKB/0R6aLKQQv9hD+ukgqzQ1mpJSGht/9kepyQCSuzhgLG9Pqljx3agzN3UzPOthxCUB7cQAJ 6Y9NihCH/JfwcNmYKxN1NEYm2erHlXwMq4IrImYdI4AM77Iiefv+K2JOGHDuauLWtIu36JinMev NjeQQp/kdb3UU7BPkfbs4VARFN8j1uhm0jtcTSQJq5HjsOlTZMGcUI26zbUPzZeR5yzYUcVbHRh Ek7X4/RhfzUeYhwGaelz8btV1b5VLhlLxvOnSA2NFX7SnvZULtxjIEqxjNpilYj/Odq5KhvmNOT 7lMCtZEavKoNO6URqDZStsR5TKQvs6VlUFqUrP0XlQp/Q1IB X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A As the separate pmic_glink_altmode driver has been merged to the UCSI glink glue driver and the UCSI is now enabled on all platforms, drop separate altmode device support in the pmic_glink driver. Signed-off-by: Dmitry Baryshkov --- drivers/soc/qcom/pmic_glink.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/drivers/soc/qcom/pmic_glink.c b/drivers/soc/qcom/pmic_glink.c index dcea33f93fae..680954334b7f 100644 --- a/drivers/soc/qcom/pmic_glink.c +++ b/drivers/soc/qcom/pmic_glink.c @@ -14,7 +14,6 @@ enum { PMIC_GLINK_CLIENT_BATT = 0, - PMIC_GLINK_CLIENT_ALTMODE, PMIC_GLINK_CLIENT_UCSI, }; @@ -26,7 +25,6 @@ struct pmic_glink { unsigned long client_mask; - struct auxiliary_device altmode_aux; struct auxiliary_device ps_aux; struct auxiliary_device ucsi_aux; @@ -294,15 +292,10 @@ static int pmic_glink_probe(struct platform_device *pdev) if (ret) goto out_release_pdr_handle; } - if (pg->client_mask & BIT(PMIC_GLINK_CLIENT_ALTMODE)) { - ret = pmic_glink_add_aux_device(pg, &pg->altmode_aux, "altmode"); - if (ret) - goto out_release_ucsi_aux; - } if (pg->client_mask & BIT(PMIC_GLINK_CLIENT_BATT)) { ret = pmic_glink_add_aux_device(pg, &pg->ps_aux, "power-supply"); if (ret) - goto out_release_altmode_aux; + goto out_release_ucsi_aux; } service = pdr_add_lookup(pg->pdr, "tms/servreg", "msm/adsp/charger_pd"); @@ -321,9 +314,6 @@ static int pmic_glink_probe(struct platform_device *pdev) out_release_aux_devices: if (pg->client_mask & BIT(PMIC_GLINK_CLIENT_BATT)) pmic_glink_del_aux_device(pg, &pg->ps_aux); -out_release_altmode_aux: - if (pg->client_mask & BIT(PMIC_GLINK_CLIENT_ALTMODE)) - pmic_glink_del_aux_device(pg, &pg->altmode_aux); out_release_ucsi_aux: if (pg->client_mask & BIT(PMIC_GLINK_CLIENT_UCSI)) pmic_glink_del_aux_device(pg, &pg->ucsi_aux); @@ -341,8 +331,6 @@ static void pmic_glink_remove(struct platform_device *pdev) if (pg->client_mask & BIT(PMIC_GLINK_CLIENT_BATT)) pmic_glink_del_aux_device(pg, &pg->ps_aux); - if (pg->client_mask & BIT(PMIC_GLINK_CLIENT_ALTMODE)) - pmic_glink_del_aux_device(pg, &pg->altmode_aux); if (pg->client_mask & BIT(PMIC_GLINK_CLIENT_UCSI)) pmic_glink_del_aux_device(pg, &pg->ucsi_aux); @@ -352,7 +340,6 @@ static void pmic_glink_remove(struct platform_device *pdev) } static const unsigned long pmic_glink_sm8450_client_mask = BIT(PMIC_GLINK_CLIENT_BATT) | - BIT(PMIC_GLINK_CLIENT_ALTMODE) | BIT(PMIC_GLINK_CLIENT_UCSI); static const struct of_device_id pmic_glink_of_match[] = { -- 2.39.2