Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp285239rdb; Tue, 5 Dec 2023 05:35:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IG0rLzkcqhWCSWYMMJCV3NmKllGIBU4QSnoLzgCsuiUc8P13ufFIrumCV4HGETW4KRK2huT X-Received: by 2002:a17:90b:1a8f:b0:286:6cc1:5fbd with SMTP id ng15-20020a17090b1a8f00b002866cc15fbdmr822598pjb.64.1701783342192; Tue, 05 Dec 2023 05:35:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701783342; cv=none; d=google.com; s=arc-20160816; b=C9E8FlKcxunKPb/8D6IIhp2Pw7a+Tdl3csDjjBskZsoaZLgtPIALuiRc2Nz1m/EY1p gzz74eaxbKKexdssNC7h+KSbTiaUhOSE6WN0e58yjqeuH9LQkIoHZ0IW+2SXs4rhl5Oq O6tpRY24bxM9zVGbhYqPai+DXmkapYG+SI+6pi3aZABFGpL2e3VT3WBkKiaFmxj2Ibwe oc6Y32Dyr1WzDvRd3H1RH220eQ7Wr7tyTD6LRWV44jXWOyWj+cMSk88J7CPb/OZReFmq 1sptcjwgaxxRuTGmaWNPAkLjSViQ/RZHJRpVhxnWyAiZ99bmXM5ypwaj1xgRWtkhP2Bp LeEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=CxejOFgX2GlQ9VydSLcf16CVt/N1Fya7Utte3sX5VOg=; fh=Js0KmLgXLYPKzhVwBwsWIdSuW+hm9sL/syuCpaMy5xc=; b=ZuoYcHTsF+HEDR/ksnIeyCaTq8TFBSf7LBUDFomAXtT2J8jyqAX2odXy95eFYz+mdB Dqla6zB8K47b3H9ZbBAoETHO7Iv37PvoNUZKEcTZxwldS/T2fKM1rt3+AnUs7Sxe11z9 VDK+mc4m8az1qZOopWPHZFqdvpkqnYqj+GdyKcW2SmRFhuP8lOUxb0Vg1Mmm7NKgJdjs AlbF3BQVMfnzkvwvzHl33UTyCen7jP2KpqEgKkQV8qk1gac+ZEhWRlX10EQzXdn96mpc O7CFFCzvF1DxvVuKcvydctxvbAenZpZdrPJedUWLd4oWMmEx/RU8BAg+iyW/UE1ekl9s A5ig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id gp12-20020a17090adf0c00b00285b8197a32si5333308pjb.167.2023.12.05.05.35.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 05:35:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 54001822D55A; Tue, 5 Dec 2023 05:35:21 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442243AbjLENex convert rfc822-to-8bit (ORCPT + 99 others); Tue, 5 Dec 2023 08:34:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442223AbjLENev (ORCPT ); Tue, 5 Dec 2023 08:34:51 -0500 Received: from mail-yb1-f179.google.com (mail-yb1-f179.google.com [209.85.219.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E52F71AB; Tue, 5 Dec 2023 05:34:57 -0800 (PST) Received: by mail-yb1-f179.google.com with SMTP id 3f1490d57ef6-da7ea62e76cso4131655276.3; Tue, 05 Dec 2023 05:34:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701783297; x=1702388097; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NRBQrJMVxE74uMXuNQQqL8IIVVzyGsSzO2s+5zIiPV0=; b=A0lZMQ1jFbKkhWWutDWrcWz7KFIlSeDMWb1jPQCJENqyjmXg0wY/2Kn2MPaK0MRxqS A94Ly5u1RVRKpEUDu8eckDuiBnTaYa7yKMceKQZMc80C+yuzJSs4linVi+x+fJN6DZdc /TRoWqhZh/u+jlHS0V8IYZqUbwS3qTK8lJButkwMA8q9ZienD7LOGgoh6b1iIAN2fRMI aNL+GDzB0ANlNKqviqB85g4opF69Jcbvweq/A++LhAk4UR7R4gZK38VWrRtblXSXjBYJ waRGGIxdCAtPGGQvAzbq+QACoZCHDwY3QedHaxNi5MWWtTHraPCwlyNLqWIGbpGMPx16 4dZw== X-Gm-Message-State: AOJu0YxZ1wQ3AEYlphbshfxy+Xh/RPffxu2FOhnIFNalr5wdTUGjcB5b KP5vxfEevjecCE2pqbEfzqGunisHbMU5OQ== X-Received: by 2002:a25:ae8c:0:b0:db7:dacf:eda1 with SMTP id b12-20020a25ae8c000000b00db7dacfeda1mr3881355ybj.130.1701783297125; Tue, 05 Dec 2023 05:34:57 -0800 (PST) Received: from mail-yb1-f170.google.com (mail-yb1-f170.google.com. [209.85.219.170]) by smtp.gmail.com with ESMTPSA id z28-20020a25ad9c000000b00d9ca7c2c8e2sm3098327ybi.11.2023.12.05.05.34.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Dec 2023 05:34:56 -0800 (PST) Received: by mail-yb1-f170.google.com with SMTP id 3f1490d57ef6-db549f869a3so4132947276.1; Tue, 05 Dec 2023 05:34:56 -0800 (PST) X-Received: by 2002:a25:cc01:0:b0:db7:dacf:ed92 with SMTP id l1-20020a25cc01000000b00db7dacfed92mr4614162ybf.115.1701783296324; Tue, 05 Dec 2023 05:34:56 -0800 (PST) MIME-Version: 1.0 References: <602e1ba4f02489fcbc47e8f9904f3c1db1c9f14a.1701768028.git.ysato@users.sourceforge.jp> <2ef81211-9525-4f96-a6b2-3fcfbed0c6e5@app.fastmail.com> In-Reply-To: <2ef81211-9525-4f96-a6b2-3fcfbed0c6e5@app.fastmail.com> From: Geert Uytterhoeven Date: Tue, 5 Dec 2023 14:34:44 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [DO NOT MERGE v5 11/37] pci: pci-sh7751: Add SH7751 PCI driver To: Arnd Bergmann Cc: Yoshinori Sato , linux-sh@vger.kernel.org, Damien Le Moal , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd , Dave Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Thomas Gleixner , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Bjorn Helgaas , Greg Kroah-Hartman , Jiri Slaby , Magnus Damm , Daniel Lezcano , Rich Felker , John Paul Adrian Glaubitz , Lee Jones , Helge Deller , =?UTF-8?Q?Heiko_St=C3=BCbner?= , Jernej Skrabec , Chris Morgan , Linus Walleij , Randy Dunlap , Hyeonggon Yoo <42.hyeyoo@gmail.com>, David Rientjes , Vlastimil Babka , Baoquan He , Andrew Morton , Guenter Roeck , Stephen Rothwell , guoren , Javier Martinez Canillas , Azeem Shaikh , Palmer Dabbelt , Bin Meng , Max Filippov , Tom Rix , Herve Codina , Jacky Huang , Lukas Bulwahn , Jonathan Corbet , Biju Das , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Sam Ravnborg , Michael Karcher , Sergey Shtylyov , Laurent Pinchart , linux-ide@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Linux-Renesas , linux-clk@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-pci@vger.kernel.org, linux-serial@vger.kernel.org, linux-fbdev@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 05 Dec 2023 05:35:21 -0800 (PST) Hi Arnd, On Tue, Dec 5, 2023 at 2:26 PM Arnd Bergmann wrote: > On Tue, Dec 5, 2023, at 10:45, Yoshinori Sato wrote: > > + bscres = platform_get_resource(pdev, IORESOURCE_MEM, 1); > > + bsc = devm_ioremap_resource(&pdev->dev, bscres); > > + if (IS_ERR(bsc)) > > + return PTR_ERR(bsc); > > + > > + if (of_property_read_u32_array(pdev->dev.of_node, > > + "renesas,memory", memory, 2) < 0) { > > + /* > > + * If no memory range is specified, > > + * the entire main memory will be targeted for DMA. > > + */ > > + memory[0] = memory_start; > > + memory[1] = memory_end - memory_start; > > + } > > There is a generic "dma-ranges" proerty for describing > which memory is visible by a bus. I was just going to give that comment on the bindings patch ;-) > > --- /dev/null > > +++ b/drivers/pci/controller/pci-sh7751.h > > @@ -0,0 +1,76 @@ > > If the header is only included from one file, just removed > it and add the register definitions to the driver directly. $ git grep pci-sh7751.h arch/sh/drivers/pci/pci-sh4.h:#include "pci-sh7751.h" drivers/pci/controller/pci-sh7751.c:#include "pci-sh7751.h" Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds