Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2945659lqo; Tue, 21 May 2024 01:58:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVj/93cg0mKobMfoQ7iDEpiLBGlBYBHpzQftp0tTE66k2wPjuDFiMX7VQqKV8vpNVJKC0f4B0V3QzCsdA1g0zbCjjYpouf+RfZW47JgOA== X-Google-Smtp-Source: AGHT+IHGvBaJ0nwGP6kpysssSkryQ+7P0YXEgCdKOitllmkwfjYZihd6HGgTt/Impw+Mgc/YPA5K X-Received: by 2002:a05:6a21:2d8c:b0:1b0:c1:d8be with SMTP id adf61e73a8af0-1b1ca3b09efmr11992707637.1.1716281903315; Tue, 21 May 2024 01:58:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716281903; cv=pass; d=google.com; s=arc-20160816; b=citLq97DWznwkqVearpJMdxIEXJLiq1QnZ4Dbik2g8GqN7ywqIujRwJt/UA+/SSEDk fFW7JT6e1he1/+5lp19ueRxMvuft6HYUfVLD3arCSqsl/64UvxbncwLARxtQlou5UQTU +qjnOvp4sEey7tisZiDTYLnHJUCtEGijF/qZZLIGKqlEyOQg5XJ5QkMRTSpkpLIk/pwA 67yoQAmkflg/anQHIsJLqXE/thANYeAjon1SZDRHyskqHE044lrVTpMctQbSvtgN1VLY Kz32ADq9FOblQQ1VebyahVNcxQnRksmVE1Hiza0ltMbRfpcoEWtx18YzgB0Gt25VhBMN lf7Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=lgxdQBKmI2AxZQQroM/0yufZdlARchk00W8sRusBAms=; fh=24cc7K+EAZVLihACZpxhWCzu/pCOjKkmRYFxKWyKBOc=; b=dsF3+4ZTS2PLr7jy+LLwZFYcvE8689PB8iu57qsDGT84hFcQ3H1HP8JCzH/QPEYFej jF7MP0Xyfopunb9C1XAW7XI0cbt8Q+Hw3DVV1oOU6f9GG0bhEMhyAvCygCRG8WyV3b2h db4T6rTw1NSRysSCJIVX2HHCUFyREXLKnlmhDUo8M3usnQT/mDofW+X9U6MNVyGLHHnB Bd5otvar1jvDWpbqxUXsBFHvXwZXSwsbaytqnBxHJgSJ2XgZQm/Hwwb0kw8trwiIn5p1 wlJYR4/fvcyrlk3X9aw5CajgXwagb4HCGGT9WvJFUUN+gbpBoYkeZlGzQfwzM+f8drZI ky/A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XWEYiY3K; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-184674-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184674-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 41be03b00d2f7-6340b2a0b4fsi23327030a12.212.2024.05.21.01.58.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 01:58:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184674-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=@kernel.org header.s=k20201202 header.b=XWEYiY3K; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-184674-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184674-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3B59A281D6D for ; Tue, 21 May 2024 08:58:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 23E6256771; Tue, 21 May 2024 08:58:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XWEYiY3K" 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 351D11F951; Tue, 21 May 2024 08:58:13 +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=1716281894; cv=none; b=PEmViUV9o5FbGDsqFe8dQnnne9S/HVQhdROHGoELx09kYWy2z3AaCEcmKGgb0BDf+OGcgr8Pns2oHw+KN2OYitEbddL133ZgG7dgG3GVZg9ihpEXsXCjIJuXg/XXdhyJgTfzttDxfEe2C0xrtvMzwactdsEbynOxVEaBYkAH0dA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716281894; c=relaxed/simple; bh=Yb9S3qcvqNTBPcx8/jgoqgRqjkneywUyKMXmfw7NoqI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=aTYcoAurh2Vol7d9M1kP1Sj6KSg0xM05RvhvLkSFjftMuljp2OH6KC2s50L1QJHj2c1Ny0AT8O3rQh5z4cMRE3gbt98Q2RHNZ+fALMIk/EtRZNt9hnWucO23uXV3gD3LcMMSxsuE2/n3mA+QXB8exkuokHcdx5Uc57cpqp/tNeM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XWEYiY3K; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50B78C2BD11; Tue, 21 May 2024 08:58:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716281893; bh=Yb9S3qcvqNTBPcx8/jgoqgRqjkneywUyKMXmfw7NoqI=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=XWEYiY3KUox0XoQh+DTDf/kyFjxeG6DD+EyfLNeYYOhDkTaBrKmbD/szBgKbeBlda AIIgAzHFzastY9VZfsO9wF3QUhC11fwusu4Ye8LVe6knrs+41MWxXlQayGawxhi2hL m582TzfkJfhJJ+5xP8IVSQBNQB49YFtKzTJxrgfbRWd/2JUYJxubYyCGi0Gn7odRsr hql5Tj5fB86D4ZxzeG6Dmz79dkYuLWlsExpL6JSd4fbI0eky5eOGnXVRz6vent45f4 DApp4Ky2k6nEQvDLQ/6v3sssYnCQpGInjq9NInDXK3vwUaUOXUWG0QOgWVcX5j2Ras SMGBi+uSUZrzg== Message-ID: <06565532-987a-465a-b2ab-a03fce7279e1@kernel.org> Date: Tue, 21 May 2024 10:58:07 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC 1/2] dt-bindings: soc: qcom,smsm: Allow specifying mboxes instead of qcom,ipc To: Luca Weiss , Rob Herring , Krzysztof Kozlowski Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio , Krzysztof Kozlowski , Conor Dooley , Andy Gross , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240424-smsm-mbox-v1-0-555f3f442841@z3ntu.xyz> <2729475.mvXUDI8C0e@g550jk> <1ab150cd-68f0-4153-8d4e-5bd30bb01dfe@linaro.org> <12437992.O9o76ZdvQC@g550jk> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJgP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3OcfKqVcZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: <12437992.O9o76ZdvQC@g550jk> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 20/05/2024 17:11, Luca Weiss wrote: > Hi Krzysztof > > Ack, sounds good. > > Maybe also from you, any opinion between these two binding styles? > > So first using index of mboxes for the numbering, where for the known > usages the first element (and sometimes the 3rd - ipc-2) are empty <>. > > The second variant is using mbox-names to get the correct channel-mbox > mapping. > > - qcom,ipc-1 = <&apcs 8 13>; > - qcom,ipc-2 = <&apcs 8 9>; > - qcom,ipc-3 = <&apcs 8 19>; > + mboxes = <0>, <&apcs 13>, <&apcs 9>, <&apcs 19>; > > vs. > > - qcom,ipc-1 = <&apcs 8 13>; > - qcom,ipc-2 = <&apcs 8 9>; > - qcom,ipc-3 = <&apcs 8 19>; > + mboxes = <&apcs 13>, <&apcs 9>, <&apcs 19>; > + mbox-names = "ipc-1", "ipc-2", "ipc-3"; Sorry, don't get, ipc-1 is the first mailbox, so why would there be <0> in first case? Anyway, the question is if you need to know that some mailbox is missing. But then it is weird to name them "ipc-1" etc. Best regards, Krzysztof