Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp11936632rwl; Tue, 3 Jan 2023 06:55:29 -0800 (PST) X-Google-Smtp-Source: AMrXdXvgkuejfF8uG2WLO77bvj9wLMXyLlgSUADA/rpdtCI/Ib8X6PubsCdX0ctG2nvqxDVFL8Qk X-Received: by 2002:a17:906:6a0a:b0:7c9:6e0e:1427 with SMTP id qw10-20020a1709066a0a00b007c96e0e1427mr42727006ejc.6.1672757729060; Tue, 03 Jan 2023 06:55:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672757729; cv=none; d=google.com; s=arc-20160816; b=l/D+4No6iyZ/j+gA5pb8nIpwrctHuoAya/l0UzgHiQjOKswlnzBd9g+xstzARh+5GU UiM4IyZrAwwbeSSk5cOvhKKu6GW4JT8Z9XKrs8aTpVKtB8D+QvbOvEKcaaGicxG5fsAY unfwkVXv0M9f+UlYTlATIWtPnbopNvY5BbAZoz+HtH6jbwZtYw3MviQdDQGQWBf8tCzR lLiD65FXdeCf8Ez6RZZmaYjU9EuzAFGtzwDtr8TsCKchvGgsOBouefdtqGkso6Yky/c9 OtdgG13T4QC98i0y2Z1B4u3iSeOswilIF6VXn9WhJ5d1IN3DD/Wvs/f2OlhmVRivykiQ QCVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=5cINJIua4peOqT9cWFpKeXfU505zcgniCHnXxC3iLO8=; b=gYoRrG66DfTJywtBFZG2TvmNiYBkgYQBzCe2XO1caGkHbwyhBmgnm3OI8wI5h8c+xF 1Sap3lqVTOxecMlQZwIqoClDlAksfrHzMPVvXOklfRJNSUyT52xhyGLfrNTtIOTSO9fm 2C7T++GNlPoUo0Z2btl8I/QPX0wc9dOESDQBouQikAzJbB0Sl/UBcENc2fpRjrxgQVfL MiSp1VAbCMgbXlhFu/7yqb7P30HLA25BP9SvGv7VUzlv3SNbsqfnzqLJm/dAfCgabEd5 L0ReLNSbpNIRHsUfCa9Y5QlYmGb3lI712hBNPXjWMDSsbcjAfrOCI7BE3uqnH5+exqHV 0EUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=etunyFc4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gt20-20020a1709072d9400b007c0fa2e0f9fsi30054428ejc.133.2023.01.03.06.55.14; Tue, 03 Jan 2023 06:55:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=etunyFc4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237412AbjACOqb (ORCPT + 60 others); Tue, 3 Jan 2023 09:46:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237290AbjACOqJ (ORCPT ); Tue, 3 Jan 2023 09:46:09 -0500 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07AA5F0E; Tue, 3 Jan 2023 06:46:05 -0800 (PST) Received: (Authenticated sender: clement.leger@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 835FFFF810; Tue, 3 Jan 2023 14:46:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1672757164; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5cINJIua4peOqT9cWFpKeXfU505zcgniCHnXxC3iLO8=; b=etunyFc4nOV4uXp2vPS2Xx3bLvqpH03ijNGXiDIRgCjOI1MVX0kuvV6spzH9D7UTMeMhf8 8Tdn2njgkhxCp+enCRf0bMOVNsVVbKjxdlV+WQN+6xtD8ENwCWuBIg3FNxBUi5+iDZ8ZPs h2TLdilxZ1khuyyBCMvZr36R9lKVEBP3S0x1RpJ97dBHdvFAEy6z9gXHjbvp8B1K6pmDxf WgqPCHbrQL+jHt6YD3TKCAY4809zPPqit0m9wp0yQp1jCOUJ0FLYUhirYLB6uCfJbIWCqq fvoXJh57SLxC7voS7mL11GqkorKhxq6rNHRhXYTyWbyAlVojAMlFsWBRVRCfNQ== Date: Tue, 3 Jan 2023 15:48:11 +0100 From: =?UTF-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= To: Lizhi Hou Cc: , , , , , , , , , , , , Thomas Petazzoni , "Allan.Nielsen@microchip.com" , "Horatiu.Vultur@microchip.com" , "Steen.Hegelund@microchip.com" Subject: Re: [PATCH V5 2/3] PCI: Create device tree node for selected devices Message-ID: <20230103154811.63e71494@fixe.home> In-Reply-To: <1671125446-57584-3-git-send-email-lizhi.hou@amd.com> References: <1671125446-57584-1-git-send-email-lizhi.hou@amd.com> <1671125446-57584-3-git-send-email-lizhi.hou@amd.com> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.35; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=ham 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 Le Thu, 15 Dec 2022 09:30:45 -0800, Lizhi Hou a =C3=A9crit : > + > +static int of_pci_prop_address_cells(struct pci_dev *pdev, > + struct of_changeset *ocs, > + struct device_node *np) > +{ > + return of_changeset_add_prop_u32(ocs, np, "#address_cells", > + OF_PCI_ADDRESS_CELLS); > +} Hi Lizhi, This should be #address-cells and not #address_cells. > + > +static int of_pci_prop_size_cells(struct pci_dev *pdev, > + struct of_changeset *ocs, > + struct device_node *np) > +{ > + return of_changeset_add_prop_u32(ocs, np, "#size_cells", > + OF_PCI_SIZE_CELLS); > +} Ditto here, this should be #size-cells and not #size_cells. Was this really tested ? Thanks, --=20 Cl=C3=A9ment L=C3=A9ger, Embedded Linux and Kernel engineer at Bootlin https://bootlin.com