Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3682803pxv; Mon, 26 Jul 2021 09:18:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBV0M7XzqsGUIHcDlwkjw/ZHU2YLLcaW+IkDLyFOTKqrqpA4LSvxmCUbDDGWQ6ySpe0P1J X-Received: by 2002:a17:906:dc90:: with SMTP id cs16mr16948597ejc.368.1627316285686; Mon, 26 Jul 2021 09:18:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627316285; cv=none; d=google.com; s=arc-20160816; b=c2DW2R+34AopUUDr6J/sUc/7yiTzYOtPbu6C6q2g2cWGGtjaede+I7pZuBLHNfCrJi 6iK15HVX7ZW+n5OLcVC3Ct/CYKD5eAEaD8ZF4VXIAzsOXBiCOvuNrT1L6wdFJyYscPqN IyA9EiWJQdD0u71DOvWbn/swdGQd8ZUuSTQ7mefe2ziSftnfR+9q3EXZzJ6CypNm0g5u 9fI0Wcko2bM3Bhx8mRQf1mfutg64XoWzngKI/he5zK35SMMKyAtc0opEUzxgEFZ1mbg5 2IeP09Gt5/XRLwHXGYtGIUO91xPKx72QHCo9cOQQGgr+ZYx65OVZsQzVF7x84ocSmSra 7XFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=2oqVdc+Bwmni6M3nVJzlpNG4FMWWLNOhFE43b4PtG5Q=; b=xIr+o5D2xBbpQYrSqpCaQJRlcuvjjQImCRaQjVCzK15gKqqs1AU6mhbpf7YUtM6eS5 sboQ+FTQX81rJznkZdv9byI43YHfs5LNDjEXJcz0i4pSPo0ilyncNfe/HsxF3a5/Lubf AUGTo/kFwBm16czhw9Oj/kodwPfVtzXhifbl2eEOQOgjgGrzsgtsUUi1UDXis2avjVSG m7fCvRjsWfo9q4ZdCwedu35kMpWm+xCaoL0LRo5o5BDdn7oE9PG7pGVp84AGowgIKYFn YaJX+sKFLtsEi0+l4ZjcLyeg4RFpuVrSVWDyZAWliD1dblebLSqauyJZQ3TF0L660viv k7og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ieee.org header.s=google header.b=cKI0ApA8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ieee.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lu2si322853ejb.166.2021.07.26.09.17.41; Mon, 26 Jul 2021 09:18:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ieee.org header.s=google header.b=cKI0ApA8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ieee.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234038AbhGZPdE (ORCPT + 99 others); Mon, 26 Jul 2021 11:33:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235788AbhGZPSh (ORCPT ); Mon, 26 Jul 2021 11:18:37 -0400 Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 104CEC0613C1 for ; Mon, 26 Jul 2021 08:59:06 -0700 (PDT) Received: by mail-io1-xd34.google.com with SMTP id u15so12379705iol.13 for ; Mon, 26 Jul 2021 08:59:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ieee.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=2oqVdc+Bwmni6M3nVJzlpNG4FMWWLNOhFE43b4PtG5Q=; b=cKI0ApA8ngPZMooBLOh7lfAS1DsT2EHd2K3e68CR4zgtntvO2LDikDqPfrKKxfL+HZ KjDxlBy4CqosymqCj4oljmWfEhXMB9Ljoaq1uG3SCr3OXux7uJbEVNvDlCSaSSudh+4q gFlnjYV+fYFBzX+CxkZIODAe3Vek39iWL6hvI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=2oqVdc+Bwmni6M3nVJzlpNG4FMWWLNOhFE43b4PtG5Q=; b=WG/Ve4hmxkcvESY8PFkpwPLgR20Iu1YVBb/rB+UUee17LEXkiyMQOxGPBLTUZnZSxs ++UjddCltJzfyYn2BzuzJleQ+fiJ2774VxxNBWoFOQK+azf584KulQ6zWplMp0DxTcCL Uq2OBVrurQmXWyx3R4tAid3p1IqHp7e2qLkdER+blsrgoOoPxnw3iW0tdg8KGhgwC1Tf UqYBiQxOd8y1D9l2hek9ASuKWeSF9bXtb1l5uTJKIv+AUpt+3SnqSmJLwx6mATU6WNYt LhjcTCDLXtvpZHqGAKM155nailOvNsWoxnHJUwtM929pJa8Bmm5XseU0yilAWd53BiTh /oEQ== X-Gm-Message-State: AOAM532C11Wc3YESwu5c9Ll73scc1PE1vC2ULWTGawBkeRgWthVt6Px0 IPBPQsqF5GnkLtelmLd1MucRMHmjNSevqDu9 X-Received: by 2002:a5e:c109:: with SMTP id v9mr15382903iol.76.1627315145241; Mon, 26 Jul 2021 08:59:05 -0700 (PDT) Received: from [172.22.22.4] (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.googlemail.com with ESMTPSA id h24sm169070ioj.32.2021.07.26.08.59.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Jul 2021 08:59:04 -0700 (PDT) Subject: Re: [PATCH net-next 1/3] dt-bindings: net: qcom,ipa: make imem interconnect optional To: Rob Herring , Alex Elder Cc: bjorn.andersson@linaro.org, agross@kernel.org, davem@davemloft.net, kuba@kernel.org, evgreen@chromium.org, cpratapa@codeaurora.org, subashab@codeaurora.org, elder@kernel.org, linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210719212456.3176086-1-elder@linaro.org> <20210719212456.3176086-2-elder@linaro.org> <20210723205252.GA2550230@robh.at.kernel.org> From: Alex Elder Message-ID: <6c1779aa-c90c-2160-f8b9-497fb8c32dc5@ieee.org> Date: Mon, 26 Jul 2021 10:59:03 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210723205252.GA2550230@robh.at.kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/23/21 3:52 PM, Rob Herring wrote: > On Mon, Jul 19, 2021 at 04:24:54PM -0500, Alex Elder wrote: >> On some newer SoCs, the interconnect between IPA and SoC internal >> memory (imem) is not used. Reflect this in the binding by moving >> the definition of the "imem" interconnect to the end and defining >> minItems to be 2 for both the interconnects and interconnect-names >> properties. >> >> Signed-off-by: Alex Elder >> --- >> .../devicetree/bindings/net/qcom,ipa.yaml | 18 ++++++++++-------- >> 1 file changed, 10 insertions(+), 8 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/net/qcom,ipa.yaml b/Documentation/devicetree/bindings/net/qcom,ipa.yaml >> index ed88ba4b94df5..4853ab7017bd9 100644 >> --- a/Documentation/devicetree/bindings/net/qcom,ipa.yaml >> +++ b/Documentation/devicetree/bindings/net/qcom,ipa.yaml >> @@ -87,16 +87,18 @@ properties: >> - const: ipa-setup-ready >> >> interconnects: >> + minItems: 2 >> items: >> - - description: Interconnect path between IPA and main memory >> - - description: Interconnect path between IPA and internal memory >> - - description: Interconnect path between IPA and the AP subsystem >> + - description: Path leading to system memory >> + - description: Path between the AP and IPA config space >> + - description: Path leading to internal memory >> >> interconnect-names: >> + minItems: 2 >> items: >> - const: memory >> - - const: imem >> - const: config >> + - const: imem > > What about existing users? This will generate warnings. Doing this for > the 2nd item would avoid the need for .dts updates: > > - enum: [ imem, config ] If I understand correctly, the effect of this would be that the second item can either be "imem" or "config", and the third (if present) could only be "imem"? And you're saying that otherwise, existing users (the only one it applies to at the moment is "sdm845.dtsi") would produce warnings, because the interconnects are listed in an order different from what the binding specifies. Is that correct? If so, what you propose suggests "imem" could be listed twice. It doesn't make sense, and maybe it's precluded in other ways so that's OK. But I'd be happy to update "sdm845.dtsi" to address your concern. (Maybe that's something you would rather avoid?) Also, I need to make a separate update to "sm8350.dtsi" because that was defined before I understood what I do now about the interconnects. It uses the wrong names, and should combine its first two interconnects into just one. -Alex > > Rob >