Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2191371pxb; Fri, 25 Mar 2022 12:44:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRqeNVl+EvWASS7AbStJpE8g6yDfECyT+unqMrcy7tTcSJiBQAJBNUBCEm/ds8kQV1DEdJ X-Received: by 2002:a17:902:d4cc:b0:154:3a3b:4172 with SMTP id o12-20020a170902d4cc00b001543a3b4172mr13098009plg.165.1648237446972; Fri, 25 Mar 2022 12:44:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648237446; cv=none; d=google.com; s=arc-20160816; b=cr2g3Gv1ni27dsbB6VCgACJvfqB2vYzE6bYlaCG7n39e5mOZcygJ2IaioT78bKML9w nyVoLbIGtkWhW/v6pd/+ugV0L+WwT0C2P7WNDZt9gFHghll3VHT/TqEGiGhleQrxcX7v 1WiyhW3pyu39LK/bdVXQ5sWrPaFSsyn53/Nb/T0umdZib1fQhY5hpeHnMbSWxd/zwW/w Wvwm/hwKfF00piSMC2B6VVclt+MME0gGeDEU4iulWF+iUSU5Xp58NJbRM3z9SanacSFa bI77nEvEYRs/w668yviIjjDXarw+BpOZQMtVXrCVbIqAtdkhh7XYT7FehqYNB1cuwaee LA/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=aTjAKQGCfPlJln9zd/tK8o/KaPUGxIgYbJ689zU84Xk=; b=B7MGVDu79SMHU2Nsk7+txyxPx0X3Fh2CnBHRkex0oX32+mHMP8WW6ID+zG8vsQnId6 6khYqM0qfs+umrULvCs/SxCLQN+mvS8CncEhnVf43EZdNcS8/bipORcHu9zujmRGVrmJ 6pkEYGA2Q0KuHgn4DjJiNzrZeCxs0b/636xpxjrVj8+5UjOZL0Aupx6/JSdvFKnfXmhN a3GOLNFONL1nftPnEH1JcUNTyoPmQ4YT336amCtaNrlRGXUh+5IVX9s8ruwbKYaQCZwr 6ojZlKZ3XKjZYLYSI2oVU6uJAxUpRn8MMBfsp4BaeUBMvKu5en3CMZRftJzM0XEBla6h YpaA== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id y12-20020a1709027c8c00b00153b2d16446si3239287pll.78.2022.03.25.12.44.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 12:44:06 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 97B6C2A2669; Fri, 25 Mar 2022 11:34:49 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352741AbiCXSvI (ORCPT + 99 others); Thu, 24 Mar 2022 14:51:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232392AbiCXSvG (ORCPT ); Thu, 24 Mar 2022 14:51:06 -0400 Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E479814B7; Thu, 24 Mar 2022 11:49:34 -0700 (PDT) Received: by mail-ej1-f45.google.com with SMTP id qa43so10968903ejc.12; Thu, 24 Mar 2022 11:49:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=aTjAKQGCfPlJln9zd/tK8o/KaPUGxIgYbJ689zU84Xk=; b=l9dUaEWi1Ud+Lyu6tDVSjlrZ6qvX06MHgBWYVHDRdAteNU4CsSVNe+oGVgoYfrt9gn T9gdWGUxxRxyjaUfssVfGO2LxqoWF4yj5qXPKnC/atgRl3MI7YTQ5F1Jd3nxfBKDadrH oMa8D6nLxaFZjqpWnP7kApiddccJdrCRvDirB27Ln9r6xEYchv/cIsli39nQhY52nErQ pWYCZmcDqIASoRCO6lEWegn1ECVW8tiuz7WaTemRiR/rOxkCPzkdS65YsqiSxxl7tp8G rDPM6B95sTsw07Xtwv9bOmiiLACxoGwDIa22x1tXvRkFUIyBSkcBF8Ok12bouNTIDTCk fsyw== X-Gm-Message-State: AOAM5324+Ux8ulOGFg8Au3NlguZILvlkXNXqg89IEDERI6y4HCQpziLL CTvhJL8I2rla07TTbetmDrY= X-Received: by 2002:a17:907:d0d:b0:6df:e215:313d with SMTP id gn13-20020a1709070d0d00b006dfe215313dmr7206776ejc.309.1648147772500; Thu, 24 Mar 2022 11:49:32 -0700 (PDT) Received: from [192.168.0.158] (xdsl-188-155-201-27.adslplus.ch. [188.155.201.27]) by smtp.googlemail.com with ESMTPSA id k16-20020a17090646d000b006e093439cdfsm467351ejs.89.2022.03.24.11.49.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 24 Mar 2022 11:49:31 -0700 (PDT) Message-ID: <7d87aee4-1aa8-4e3a-4f67-9ae3981f261e@kernel.org> Date: Thu, 24 Mar 2022 19:49:30 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v2 2/2] staging: vchiq_arm: Use bcm2711 compatible string for bcm2711-based RPi Content-Language: en-US To: Adrien Thierry , linux-kernel@vger.kernel.org Cc: Rob Herring , Nicolas Saenz Julienne , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, Stefan Wahren , devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Greg Kroah-Hartman , Gaston Gonzalez , Ojaswin Mujoo , linux-staging@lists.linux.dev References: <20220324172647.167617-1-athierry@redhat.com> <20220324172647.167617-3-athierry@redhat.com> From: Krzysztof Kozlowski In-Reply-To: <20220324172647.167617-3-athierry@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/03/2022 18:26, Adrien Thierry wrote: > Use bcm2711 compatible string in vchiq driver and device tree for > bcm2711-based Raspberry Pi (Raspberry Pi 4). This is consistent with > what the downstream device tree uses, and allows running the vchiq > driver on the upstream kernel with the downstream device tree. > > Signed-off-by: Adrien Thierry > --- > arch/arm/boot/dts/bcm2711-rpi.dtsi | 1 + DTS is always separate, independent of device drivers. If you mix them, it's usually a sign of ABI breakage or compatibility issues, so don't mix them. > .../staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 5 +++++ > 2 files changed, 6 insertions(+) > > diff --git a/arch/arm/boot/dts/bcm2711-rpi.dtsi b/arch/arm/boot/dts/bcm2711-rpi.dtsi > index ca266c5d9f9b..c868d1dcaba7 100644 > --- a/arch/arm/boot/dts/bcm2711-rpi.dtsi > +++ b/arch/arm/boot/dts/bcm2711-rpi.dtsi > @@ -70,5 +70,6 @@ blconfig: nvram@0 { > }; > > &vchiq { > + compatible = "brcm,bcm2711-vchiq"; This looks weird. Is BCM2711 on Raspberry Pi 4 different than other BCM2711? Commit msg also does not explain this. > interrupts = ; > }; > diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c > index 3a2e4582db8e..136c664132f4 100644 > --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c > +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c > @@ -81,6 +81,10 @@ static struct vchiq_drvdata bcm2836_drvdata = { > .cache_line_size = 64, > }; > > +static struct vchiq_drvdata bcm2711_drvdata = { > + .cache_line_size = 64, > +}; > + > struct vchiq_arm_state { > /* Keepalive-related data */ > struct task_struct *ka_thread; > @@ -1748,6 +1752,7 @@ void vchiq_platform_conn_state_changed(struct vchiq_state *state, > static const struct of_device_id vchiq_of_match[] = { > { .compatible = "brcm,bcm2835-vchiq", .data = &bcm2835_drvdata }, > { .compatible = "brcm,bcm2836-vchiq", .data = &bcm2836_drvdata }, > + { .compatible = "brcm,bcm2711-vchiq", .data = &bcm2711_drvdata }, Just re-use bcm2836_drvdata instead of duplicating it. > {}, > }; > MODULE_DEVICE_TABLE(of, vchiq_of_match); Best regards, Krzysztof