Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp293942lqh; Thu, 28 Mar 2024 02:09:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXHOBQfkh7qNUWCzYFGOVrdu0TmQOt1wYNNgiKszPUIasb2maUvr/8gfkRWD4D8mAiIo47PCnkoDpJ46RG469c2Yt0yqJwdtqTT2UXMxw== X-Google-Smtp-Source: AGHT+IEFGq6h7xU09HBS8910wwp1uSFXKMQRCJTKvZMcofXfsKg3zbK4AVhdNSG6ltMoPbpUet5E X-Received: by 2002:a17:902:ef49:b0:1dd:8ee9:62c0 with SMTP id e9-20020a170902ef4900b001dd8ee962c0mr2445403plx.34.1711616959016; Thu, 28 Mar 2024 02:09:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711616959; cv=pass; d=google.com; s=arc-20160816; b=L1uytBf6L61k+/qiVpS5laSjf6T4epoz04qN1rUw+0u5zpBDb9m/cvu3crErAXYyAy LiSOxnLEDOuJYr7tlSQz06TwQyGT5YYIn6DHkHNIO2dzoB6ck5F2jcZmFzuhUSzDsBtE 3seZIsPUZwNoSIMoxVv+CVYAnTF1AmRnNw4GBtnXFJ0Zw0ZJnzIZsFs9JpiEmr+96zTt rujK+N4v8wFt2To86h+GGC7lPE7sWHcY7zbTzyzblgyb7gBhQuJnYbQCa74Mp7NGd5X9 +GiTIM22QpjAqgzu6iK/D98OGmm/oLbgvC22pbAfwBvZHHfPolVvhNYSwuq+4YyEY8Rd CRTA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id:dkim-signature; bh=yKXwHmc4cXcL+3XlaHJcygoE0sPqn2G65Y8JY5URJDs=; fh=wAOLOkQqj39yhgWCDLaGWV0aI7MzKbCSA+WQXLFzTYs=; b=mO3b1IOWDdnPGRjlDzBiNDU8bDy3SskF4dNzXWrTFgENYagSU23W+h1EO3TYKuXb3J GDqu6l7Uoq4hLzYJhog4EHBORn3emSxBOVz7sVGVw2/mlCNzGpawLP/7v7xPjfiHh3a+ F5cYmOmu/nTCTmImtjkuwE8uMhG0zUwjAiAm7kFt7wRQo3yOV1B+a0vF5NL8z4qdqGwh xLRX6ddLQ/794gStbrls4ypEwGIAdiTG+bJ5Igqx5ZyVT+NY7K/P8MpqEwA9957b1lTG 4breYTPqqXT7Q2+HuLHQ2jli+XNYKwADqFFKEkMw8JKsEgpjaIPMhiwztVOY3oFZw9mj j/EQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=chZdz0rP; 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-122638-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122638-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id p15-20020a170902e74f00b001e0f961759bsi1137987plf.80.2024.03.28.02.09.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 02:09:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122638-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=chZdz0rP; 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-122638-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122638-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 B7CD5294280 for ; Thu, 28 Mar 2024 09:08:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EDBBA5FB89; Thu, 28 Mar 2024 09:07:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="chZdz0rP" Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) (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 0972C4E1D1 for ; Thu, 28 Mar 2024 09:07:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711616876; cv=none; b=XzNKvQhl71CEi9smreHWSvRCkukQ0q8s1cvcjhMCdZpRSZBLE7gBZLkCPfgeDMCQiUEr1wKirNl5lVIccr4/uIKiQyV22s3xhx82A664Lu6CzZJ8/KI6vRWMPuHfivOGdJhnkO+mwCjCN1FCGmz0y8lsoJ34zGUNrKjwSNZFWL8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711616876; c=relaxed/simple; bh=r07Cs5KLVKu0tASlS5/D4hIpCN56cfKcWsy0e5UUZQk=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=a/gy/+VadDlcwu0Bhw4r54tPSrpzEBwkJwWbrAomednVPJlTi5TfnArilpMSFil0Ez/62hf4SuoiSQhDsybD7PQQujT/NfydiGYs9N8BauW4U3s7tW3PLu1TaEwLcMez/oHGWZt7hh1iXIT6gLJcaxrzS4+MEwgsSUQiAcVLcms= 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=chZdz0rP; arc=none smtp.client-ip=209.85.208.180 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-lj1-f180.google.com with SMTP id 38308e7fff4ca-2d6dda3adb9so7164401fa.1 for ; Thu, 28 Mar 2024 02:07:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711616873; x=1712221673; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=yKXwHmc4cXcL+3XlaHJcygoE0sPqn2G65Y8JY5URJDs=; b=chZdz0rPXJUzdYHUXGX1+Tn54hZrjswXrlrLcfzv40119yQ693s8sTA84l1I0fEsRo cajI5SNFlgxDdD7Bif4X8MKJq60AqXYEAMn8yDCxM4exhqmaHOWA9S8ysK9lzXXW72s+ jKz3qn5LTjXJJqqvRWmHd3pzrrwdYSUMoRkeQ3r9ZOEsUOz2yOiJrIGbNkZ38DIwupC8 WjXo5xY+HVS5DTg117m7XBqnn6tFvBqR0yvkR0r/izJvmRI9Ak1Jr01v4jRXV3RjFgik +f7Qj+K8Wb24U98Y50bEE+NJ2Kjb9u/uMXMaDiee4DSz/oBQs2l5Qef2//mzbDKtpeHm F/Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711616873; x=1712221673; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=yKXwHmc4cXcL+3XlaHJcygoE0sPqn2G65Y8JY5URJDs=; b=Dzw2yIwnRVWIK4dY6unoaLGpHXejx99M53LAgwR11opzN59H06BmqPFeT7kGZ1Rpbm bRjsmZVzzsbpRKw/wNolGqyDRQFZ0DC8GbiOS6e4PBsxNHicvLvEV5va0aTDlkijX2+h wf6zUPt3h5s78cfs/WwYV0qfQr5vAL5i4pEq0ZNNxrtO9HE3jAgnxnZHq5j5f9tKtzgj Q4TXOMl82I7pIA8h0OU75UtFzMgPHrkcA7o8zTItUIBLYIjc/YrwiPIT/4PRjG3gbg43 oQPDQc4DhWTFGC5BRZxprqugqwcEkekF9tw23GLL5gnclJ8vXJGJ5brpNq6hPqVMHOWG to6A== X-Forwarded-Encrypted: i=1; AJvYcCXJzFyMOGPFNQ0PPW43tVC3BiCnSx5J50+cMmmuryXg73K6LdWkYQ6OL8gn62qw6SoKcLf5N1s7dotJwpss/acmSYt/H0NqX42Zcq5H X-Gm-Message-State: AOJu0Yyj/0g0ucVZGn8RfbByQQ1wKONcL5IDazm5EKGjGaj6H60Kyno6 +8IAjjpJNlADRaNxHBbhdGefeaUH6k7pPuybRGwev1AjbZAv7aO0xXfvmN8kxb8= X-Received: by 2002:a2e:a40e:0:b0:2d6:ec7b:b69b with SMTP id p14-20020a2ea40e000000b002d6ec7bb69bmr1228173ljn.7.1711616873130; Thu, 28 Mar 2024 02:07:53 -0700 (PDT) Received: from ?IPV6:2a01:e0a:982:cbb0:6306:1c7a:72c2:892a? ([2a01:e0a:982:cbb0:6306:1c7a:72c2:892a]) by smtp.gmail.com with ESMTPSA id hg6-20020a05600c538600b004148ff6ef54sm1622433wmb.29.2024.03.28.02.07.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Mar 2024 02:07:52 -0700 (PDT) Message-ID: Date: Thu, 28 Mar 2024 10:07:51 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Neil Armstrong Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH RESEND v6 0/5] spmi: pmic-arb: Add support for multiple buses To: Abel Vesa , Stephen Boyd , Matthias Brugger , Bjorn Andersson , Konrad Dybcio , Dmitry Baryshkov , AngeloGioacchino Del Regno , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Srini Kandagatla , Johan Hovold , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org References: <20240326-spmi-multi-master-support-v6-0-1c87d8306c5b@linaro.org> Content-Language: en-US, fr Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKk5laWwgQXJtc3Ryb25nIDxuZWlsLmFybXN0cm9uZ0BsaW5hcm8ub3JnPsLAkQQTAQoA OwIbIwULCQgHAwUVCgkICwUWAgMBAAIeAQIXgB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yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro In-Reply-To: <20240326-spmi-multi-master-support-v6-0-1c87d8306c5b@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Abel, On 26/03/2024 17:28, Abel Vesa wrote: > This RFC prepares for and adds support for 2 buses, which is supported > in HW starting with version 7. Until now, none of the currently > supported platforms in upstream have used the second bus. The X1E80100 > platform, on the other hand, needs the second bus for the USB2.0 to work > as there are 3 SMB2360 PMICs which provide eUSB2 repeaters and they are > all found on the second bus. @Dmitry, @Konrad, @Bjorn, could you apply those patches and test an devices you have to make sure there's no regression ? > > Signed-off-by: Abel Vesa > --- > Changes in v6: > - Changed the compatible to platform specific (X1E80100) along with the > schema. Fixed the spmi buses unit addresses and added the empty ranges > property. Added missing properties to the spmi buses and the > "unevaluatedProperties: false". > - Deprecated the "qcom,bus-id" in the legacy schema. > - Changed the driver to check for legacy compatible first > - Link to v5: https://lore.kernel.org/r/20240221-spmi-multi-master-support-v5-0-3255ca413a0b@linaro.org > > Changes in v5: > - Dropped the RFC as there aren't any concerns about the approach anymore > - Dropped the unused dev and res variables from pmic_arb_get_obsrvr_chnls_v2 > - Link to v4: https://lore.kernel.org/r/20240220-spmi-multi-master-support-v4-0-dc813c878ba8@linaro.org > > Changes in v4: > - Fixed comment above pmic_arb_init_apid_v7 by dropping the extra "bus" word > - Swicthed to devm_platform_ioremap_resource_byname for obsrvr and chnls. > The core remains with platform_get_resource_byname as we need the core size. > - Dropped comment from probe related to the need of platform_get_resource_byname > as it not true anymore. > - Dropped the qcom,bus-id optional property. > - Link to v3: https://lore.kernel.org/r/20240214-spmi-multi-master-support-v3-0-0bae0ef04faf@linaro.org > > Changes in v3: > - Split the change into 3 separate patches. First 2 patches are moving > apid init and core resources into version specific ops. Third one is > adding the support for 2 buses and dedicated compatible. > - Added separate bindings patch > - Link to v2: https://lore.kernel.org/r/20240213-spmi-multi-master-support-v2-1-b3b102326906@linaro.org > > Changes in v2: > - Reworked it so that it registers a spmi controller for each bus > rather than relying on the generic framework to pass on the bus > (master) id. > - Link to v1: https://lore.kernel.org/r/20240207-spmi-multi-master-support-v1-0-ce57f301c7fd@linaro.org > > --- > Abel Vesa (5): > dt-bindings: spmi: Add X1E80100 SPMI PMIC ARB schema > dt-bindings: spmi: Deprecate qcom,bus-id Forgot to add, but please fix this in a v7: > spmi: pmic-arb: Make the APID init a version operation drivers/spmi/spmi-pmic-arb.c:180: warning: Function parameter or struct member 'core' not described in 'spmi_pmic_arb' drivers/spmi/spmi-pmic-arb.c:180: warning: Function parameter or struct member 'core_size' not described in 'spmi_pmic_arb' drivers/spmi/spmi-pmic-arb.c:180: warning: Function parameter or struct member 'mapping_table_valid' not described in 'spmi_pmic_arb' drivers/spmi/spmi-pmic-arb.c:243: warning: Function parameter or struct member 'pmic_arb' not described in 'pmic_arb_read_data' drivers/spmi/spmi-pmic-arb.c:257: warning: Function parameter or struct member 'pmic_arb' not described in 'pmic_arb_write_data' > spmi: pmic-arb: Make core resources acquiring a version operation drivers/spmi/spmi-pmic-arb.c:180: warning: Function parameter or struct member 'core' not described in 'spmi_pmic_arb' drivers/spmi/spmi-pmic-arb.c:180: warning: Function parameter or struct member 'core_size' not described in 'spmi_pmic_arb' drivers/spmi/spmi-pmic-arb.c:180: warning: Function parameter or struct member 'mapping_table_valid' not described in 'spmi_pmic_arb' drivers/spmi/spmi-pmic-arb.c:222: warning: Function parameter or struct member 'get_core_resources' not described in 'pmic_arb_ver_ops' drivers/spmi/spmi-pmic-arb.c:244: warning: Function parameter or struct member 'pmic_arb' not described in 'pmic_arb_read_data' drivers/spmi/spmi-pmic-arb.c:258: warning: Function parameter or struct member 'pmic_arb' not described in 'pmic_arb_write_data' > spmi: pmic-arb: Add multi bus support > > .../bindings/spmi/qcom,spmi-pmic-arb.yaml | 1 + > .../bindings/spmi/qcom,x1e80100-spmi-pmic-arb.yaml | 136 +++ > drivers/spmi/spmi-pmic-arb.c | 948 +++++++++++++-------- > 3 files changed, 715 insertions(+), 370 deletions(-) > --- > base-commit: 4893c639cc3659cefaa675bf1e59f4e7571afb5c > change-id: 20240207-spmi-multi-master-support-832a704b779b > > Best regards, Thanks, Neil