Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp437835lqb; Wed, 17 Apr 2024 00:10:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXK5caEqTK364cz1bbRrtn+rMwuVkfZXYgT1B0AADRIVBK8jSdeVxP0JFBPkya7KmyXjqm4hUENkLzDW9Dbrdvk13BdYM+7WqyP5w5yzA== X-Google-Smtp-Source: AGHT+IF24vEfnImTTHZYuesgPkfQULMaN959hOlv3dmjX+OrRJJfJEWExzqENtovprmJfjJ6BPEa X-Received: by 2002:a05:6a21:8cc7:b0:1aa:5a22:5eca with SMTP id ta7-20020a056a218cc700b001aa5a225ecamr3664323pzb.31.1713337826213; Wed, 17 Apr 2024 00:10:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713337826; cv=pass; d=google.com; s=arc-20160816; b=Kr+uaUOzhiyTa81Xe3UXAmSxIfC7ssCn8Zx1m3GlRS/hiEytKrG620JXgvjfhrAee7 gpDKk5qmcn0Ozbw55q6wb6MW971kxlsgDWZiuHH2SpbrX8Is8pHDcY2XqLakwuwLIvw3 BeQaT0h9H4fAX7xCdAeJbMzxy/hX0Lio97XuxSZvJPb914M5Y/B2TijxRHIfPfQytEbc ovyHzs4qTkg0DjrIzrc5oo9hGkw+GmWnZHL644+TPyB4JAN0foe1AIIeEZZxfY3/x8V+ m8tTTK9BRiFDC/oJhDUo+XfK8tQl9KyUIXrWRJm5zYgZxw36ICvKw/fYR/8+DP1+nfUU HnYQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=9J09KpeDgDjyH9FWWr8U1Cn4ABTaxhVMMwzeJXwwtEs=; fh=ntY7pPSDkBTzYSU1P+rOrbFaeOQfieB8Y8A5kcSzqqw=; b=WYImGpO00SZ2Q1rkWrCtmSZY3eHeuObdfxsBVGOxQeC+yMwYfAcwGYSpLlSxuHylHg w3Xm75UGj9/Q6lD9GrwgCbbBMRjbod9b5Zq7Hm/1aXTKheLRrwRSgqe7FwTDZ/UX68p4 JJvYSDYhUh5loHfpJL7VV1Y8qGbRKl4c8izAMysBuUaES0ut75SfR80XXphnnkhFdtaW P5x7jJCby7zRaBrCbebto51XO5b1twTN4PAgGTaJbj9lLkDc5tfM8pz7dCShPognPb4c SkQHZ3kCp1+A+ZFXPtRSoW9+uwsXPxYkOsyf1H0RyBBcyb/K/cIGzpEnGW0QUm9rg1ay fK3Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FP9x86cC; 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-148029-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148029-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id gg23-20020a056a00631700b006e733588b4bsi10913065pfb.59.2024.04.17.00.10.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 00:10:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148029-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FP9x86cC; 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-148029-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148029-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id DFBC0282525 for ; Wed, 17 Apr 2024 07:10:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E308F6A347; Wed, 17 Apr 2024 07:10:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="FP9x86cC" Received: from mail-yw1-f170.google.com (mail-yw1-f170.google.com [209.85.128.170]) (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 B1CE16A337 for ; Wed, 17 Apr 2024 07:10:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713337819; cv=none; b=q+PmflyFrbGGf1gHyF8xUHlcRsceqzSEtZdk7ZYTWrFpZdnCPS1OWE7wI0KuuWreeB8RRXAONiHGOxe+PXwb/SuTwS27OtyDTHn1t2zTE4k3NQnEQhHm4Ejka+feV63XyzQkiRbksTdJaBGGGEz7GYXASRtLnHwuu3qh9thL+j0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713337819; c=relaxed/simple; bh=+Y0iqR7HFf4hB2KOGcDJrRl/HNxYW1gDznkvy2V9TSI=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=eDA94gty9oxGjNlBkLD7aC7hgUR53gZSnqL4yEyJecN9thXdl9hQCHTGg8hDnnfnV0FfM4z0cQrmWP6dat5wswABj2DNgZDZ+bKJCBRacHAPy3MPM+ZI3IfzL4g+QwBBl6KFEZ5DH32Sw4EBc6h5COg5dPibIyrCpB/1jVuJ4Eg= 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=FP9x86cC; arc=none smtp.client-ip=209.85.128.170 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-yw1-f170.google.com with SMTP id 00721157ae682-6181237230dso60724237b3.2 for ; Wed, 17 Apr 2024 00:10:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713337817; x=1713942617; 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=9J09KpeDgDjyH9FWWr8U1Cn4ABTaxhVMMwzeJXwwtEs=; b=FP9x86cCJbBYDScAbGunz5/WrSUbJZZZ627tDCZmWM9kGB4hloXOLBcxHVFLddJbr3 ECf+Cnv/1sjuLVqaciywrrKBP3crl8rGu4+NDqKWeovHSOLvz8TrLkUPl9v6ZoHZC++3 PUNF8UV+cmrm03moMw+2nAdhZUNksTDVTaCeQQzWs2BE0vCN56LWIW1bA49cTTNsLuop UvUft8VwRZru6fU5DQEmZFymbA34g1Hl6ZCu4fJCTXkfwCoy2QHvksV72emZY8WkFUdv zcicTSn6OVRoQVMT7vy0O+ro2irDpS1EtmUWhB+pxaRwvz1tElpV87Zy465RgdywqdMK 2iYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713337817; x=1713942617; 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=9J09KpeDgDjyH9FWWr8U1Cn4ABTaxhVMMwzeJXwwtEs=; b=mHFiBV3/G1Rf/gO57LOV+441cItipxVuBq7V1zXG/t2gP1N5xQH0XaIYGxIf+4U9PT sQTuvlKD0ZYFeo8wqcycQjvf8B5N0Zov0iK6Q8EfxdVDVtVu/wF19rWW3BE6NFSR4SO5 Gak1jiu3CQVPpwt4UGO2dynlmxHpZdXSxZlFUksAg44YJFhgeyIdquLztNFCFgcUS6ay GoXRQ/syWnahhwAOw+RfxtCpnYuhd8I2pCyZij64pOjPt66LeBrlf3W7KNDb7gdbb++o mkBaTGQH3r13KwKq2BHaKHoGuW4rUHPuOCOe8JoU/lxZuFvQHsmBjr8BH8Gihu6Jb/t0 W48g== X-Forwarded-Encrypted: i=1; AJvYcCUZLNXEEYaJx6+TVGLzc9XolXjgfyWCtTP6yvhPojbtvv8v3jmlKDGkhxMQhnj/fhMWHbViQo5mzv7drNG3Cge5XjdJevmA8dDPGmKV X-Gm-Message-State: AOJu0YwViK/gbdK3X3FW3K7wbPZ9DDS5GLxEJmLGO3QJuYPQPEnp4+11 UcsfEm1ZuSql1NqmxAjTRbc/fRdmZAHHNI5HUHUA1B1BXTEQ79a/2adHMdRuqT0bI/g6D1SvZ9A 74rEqgDrIHvN5UWqBviec9srh04aM8x4BcBQ/WQ== X-Received: by 2002:a25:ae1f:0:b0:dcc:57ff:fb70 with SMTP id a31-20020a25ae1f000000b00dcc57fffb70mr14735096ybj.60.1713337816685; Wed, 17 Apr 2024 00:10:16 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240415123941.1527938-1-github.com@herrie.org> <1158f240-ea6b-4ac7-9697-a30d27311c50@linaro.org> In-Reply-To: <1158f240-ea6b-4ac7-9697-a30d27311c50@linaro.org> From: Dmitry Baryshkov Date: Wed, 17 Apr 2024 10:10:05 +0300 Message-ID: Subject: Re: [PATCH] mfd: pm8xxx: add support for PM8901 To: Konrad Dybcio Cc: Herman van Hazendonk , andersson@kernel.org, benwolsieffer@gmail.com, chris.chapuis@gmail.com, Lee Jones , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski Content-Type: text/plain; charset="UTF-8" On Mon, 15 Apr 2024 at 22:31, Konrad Dybcio wrote: > > > > On 4/15/24 14:39, Herman van Hazendonk wrote: > > Add support for the pm8901 PMIC used by msm8660. > > > > Signed-off-by: Herman van Hazendonk > > --- > > drivers/mfd/qcom-pm8xxx.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/mfd/qcom-pm8xxx.c b/drivers/mfd/qcom-pm8xxx.c > > index 8b6285f687da..9cca14d54d8d 100644 > > --- a/drivers/mfd/qcom-pm8xxx.c > > +++ b/drivers/mfd/qcom-pm8xxx.c > > @@ -501,6 +501,7 @@ static const struct pm_irq_data pm8821_data = { > > static const struct of_device_id pm8xxx_id_table[] = { > > { .compatible = "qcom,pm8058", .data = &pm8xxx_data}, > > { .compatible = "qcom,pm8821", .data = &pm8821_data}, > > + { .compatible = "qcom,pm8901", .data = &pm8xxx_data}, > > { .compatible = "qcom,pm8921", .data = &pm8xxx_data}, > > Please refrain from adding this new compatible, instead add a new, > generic one and modify the dt-bindings such that we go like: > > compatible = "qcom,pm8901", "qcom,pm8xxx-ssbi-pmic" I'd suggest against this. These PMICs were similar by nature, but not fully compatible. Also we should not be using wildcards in compatible strings. I think the proposed string is fine. Herman, I see that these patches are not properly threaded. Please consider using the 'b4' tool for preparing and sending patches. See https://b4.docs.kernel.org/en/latest/contributor/prep.html and https://b4.docs.kernel.org/en/latest/contributor/send.html -- With best wishes Dmitry