Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp1003872lqt; Fri, 19 Apr 2024 18:47:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX7RUhUYbAQ762BuCwxeMZPsdG6Q6AryKKtKEmEWl7sFVw5hd7WEEkmduYGqC7QJUV1GTjanIdFq4I6hafY63TQw0iRBmqqtgf0QHKP8g== X-Google-Smtp-Source: AGHT+IGdPdbwD8qH8+3I/uIMwIvEUKkKA/2C5E40+DNhtCjlQDE0esaqaviZY9OFBSTrHVHtho97 X-Received: by 2002:a0c:f751:0:b0:69b:1260:84c6 with SMTP id e17-20020a0cf751000000b0069b126084c6mr4048658qvo.29.1713577677668; Fri, 19 Apr 2024 18:47:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713577677; cv=pass; d=google.com; s=arc-20160816; b=wr5hZf1kOh23bblji50SqDFwnSlq43j05IBN9Kbmp1aDcuwdJYaWelaABecXGBFizx xFMsQWVv2ZMztfCIrChC7oII70GjP555v1o5f8210BBxQkWpNJ5+94hGGZvv7Q1x62ce N8sqoIsDl10csuxLu/XdhXFCUtT1szyqrrK+2oLa4uGo6zxI74Mt7Vnuh/U+yxdefq85 iUEmds3v2DPIZRWuCBC5jZuZiZL/C37Pa7sZhpAvHbtrw5iwAFdpi5HDKYn28UOSxx0n HewEaE2CKaKstHgHvkeiqwE62e1tNJzAhH9ReJSEbmltB34QdQaz5GfT+PADiC/X83LB tr1g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:date:to:cc:from:subject:references:in-reply-to :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:dkim-signature; bh=cWMroMMkLbwhg0gSs8q2CbxK/P5KZ4bNvKuihB+CO8w=; fh=uE+K9iQsf12v2zLehtDbow+GhnJ2PT/RmlU0e/Ji43M=; b=mCQjw1kYHGiPJJg/5Eu7qJ81MYYBU0/SEkKMOwLheaWCkKascZ/RMba9EfGnmPLSf+ +gQLeyuiIq3gh24jvOmmik11NS/jmVBOqOuHrP9blp2hjcy6cUFNRWDpknElFCsfeLbk UXcuRSSkKHfUTijbsqD8Mnr0qN50zpvab4GKX2GApyhn7EXanlCMfZG5QKHbCNqTaYMb 9i6PX/WW0I4fmvPdxCHS6dQAfmUzrHDnxmxPsTDlBECay3JOHUqPQ7uk88LVe3R7AYYY P48gtrOjoXJN09y74udeLMrOX4vDMO3dwtd8mx8Xbq/StliE5qVzjCBMbp2wzAJAA8hl mOBQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GvB7Cbpw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-152073-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152073-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id gh7-20020a05621429c700b0069b5e68ed45si5165780qvb.592.2024.04.19.18.47.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 18:47:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152073-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GvB7Cbpw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-152073-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152073-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5222C1C20A60 for ; Sat, 20 Apr 2024 01:47:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE00C79DE; Sat, 20 Apr 2024 01:47:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="GvB7Cbpw" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EEE24A48; Sat, 20 Apr 2024 01:47:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713577667; cv=none; b=IUfHyT5Utg5AyYbnb0VeGE9WNohKb52XlgjjnHACbVMjzLbtLz68KsDhpyx5R882ospaeX/mJqAPzMHKbKYB687Mn4KcOsXAndm6S2UaCFuc5M5ZzFPHwfnebcZez8yEl2yiEyX/s3lqr3TPRxW8c+yPs2n1XC5HF3v/08shdrU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713577667; c=relaxed/simple; bh=cWMroMMkLbwhg0gSs8q2CbxK/P5KZ4bNvKuihB+CO8w=; h=Message-ID:Content-Type:MIME-Version:In-Reply-To:References: Subject:From:Cc:To:Date; b=J0LomfExYDe3JwI5GT9Te7e51kPH3d0HSj+UNzXvwza5E0aV/QMdImQaOmcHJNLOyLgKnTCahKJH2/nl0s5eZQO1+dZ2DC3WKXxex+KS4mXsX8RglOqKf07y3Jyhm/kEnQ+RNc4d1UpfOF7cPhU/wGEb2hGv9Z3rqzqxtL1MwQk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=GvB7Cbpw; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6EB8BC072AA; Sat, 20 Apr 2024 01:47:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713577666; bh=cWMroMMkLbwhg0gSs8q2CbxK/P5KZ4bNvKuihB+CO8w=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=GvB7CbpwrgLe+19HALfFpWAblKKATYyBaO+VbWrsY+zQva+CXF92UhJTlaHuT3ktn XKgZc3N0k2ujq+jUTyDeNxZDNl5g8DRdgQwC4whH/6K+L0PQI9QeTdzBw7c16qfK3M x+6k39438SwPQhHbE1AXu3LeUmSYo4JsE0wBQAd85FBzGdiru3cmtgBU7EtTyIK+RI FJHGwbOxnplGExwNqqdRxfQIjo+nLD/TTkN0+LY1vlRCbOguAdp04zvAGmcWMxaQb/ w3Gc33XonrJyYZBXP+bhebdBuvaHCFuFY0DQQuzxh3PBLWPTrwmDvloak1sCLu9XzW Fja6e5FBHPZ4Q== Message-ID: <729d8422f7ecd601019d015f53bd7cd5.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20240417-spmi-multi-master-support-v10-4-5bc6d322e266@linaro.org> References: <20240417-spmi-multi-master-support-v10-0-5bc6d322e266@linaro.org> <20240417-spmi-multi-master-support-v10-4-5bc6d322e266@linaro.org> Subject: Re: [PATCH v10 4/7] spmi: pmic-arb: Make the APID init a version operation From: Stephen Boyd Cc: Srini Kandagatla , Johan Hovold , David Collins , 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, Abel Vesa To: Abel Vesa , AngeloGioacchino Del Regno , Bjorn Andersson , Conor Dooley , Dmitry Baryshkov , Konrad Dybcio , Krzysztof Kozlowski , Matthias Brugger , Neil Armstrong , Rob Herring Date: Fri, 19 Apr 2024 18:47:44 -0700 User-Agent: alot/0.10 Quoting Abel Vesa (2024-04-17 13:00:56) > Rather than using conditionals in probe function, add the APID init > as a version specific operation. Due to v7, which supports multiple > buses, pass on the bus index to be used for sorting out the apid base > and count. >=20 > Reviewed-by: Neil Armstrong > Signed-off-by: Abel Vesa > --- Applied to spmi-next