Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3919612pxv; Mon, 28 Jun 2021 16:40:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXVjo5vIohGiNMHlK3dbXUyj8johUR86EVvz/KozuGOQjrXvy6aDO3dKFCMhlDIOlkD3EW X-Received: by 2002:a92:3f08:: with SMTP id m8mr19248080ila.104.1624923636956; Mon, 28 Jun 2021 16:40:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624923636; cv=none; d=google.com; s=arc-20160816; b=QCYVslTU+laqbBg2F8IA1GeVgyZXIDJnHrbANY1VJnQR3z+OClWOmmBZfHqT4sFrFX rOuF0cUokbh2XfAB/RoCITMpkEe9lcWp3Vgi47Cz0T9ScehSLmiCs8rcb7b4mff/l7Zu 0bSO8kgOKck4H2UZp6nbzy9lAdMzJ+COkUHpCIa6bxfB8mbiM933Lz53CaFxYkjAzbZ7 rTjPhrUFdFx6DsjwvJ9yfVVQH7jGWaquljpvheju+B+5KdUvNln+i2DP2XHnlj2+4Tmk 0V7TlBqoMJoGOCDz9EYvTSZdykWeoKTvulqj0bKzpl6AGGPDY0pXTVl3Ha5a9PUVRCFc WKIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=fkcjAWg2iZfJCNWSyvUR3eFiJYg/imvuPuSRT3awcqs=; b=jw6SAV0kHyCcpccLT5EYFLr/1byVzJQ7qt89j414f/NXiELvsE9Q/eSMgIoWe4TlGJ 5DFkneul6lyL9ARngIMIolOBBAkvTFWwRiMmthsYPglsEv9qKTCDihRilhaPlIf/4fa7 k054jP29Lw1rtBm9QQV0PRQSfpoKDae3MbFqqqZ2reAN5NCvo9FRkFOhQhO0M9VhGzLr jiqTi87ElqasB05IS2N1E+88VhwamzsWQLFpvbKa3U5PIsnKr94wPa+O7W5qWoHEJz7O FXo4Qd6p/VoZueAaumsvx7g3z/pFDz0aJJgfNXHZJ9mpdrRzOdTLPdXWj5JJB5ctJlU3 iuww== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p16si18074060ioh.24.2021.06.28.16.40.25; Mon, 28 Jun 2021 16:40:36 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236112AbhF1TPk (ORCPT + 99 others); Mon, 28 Jun 2021 15:15:40 -0400 Received: from mail-vs1-f54.google.com ([209.85.217.54]:40914 "EHLO mail-vs1-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233471AbhF1TPj (ORCPT ); Mon, 28 Jun 2021 15:15:39 -0400 Received: by mail-vs1-f54.google.com with SMTP id e26so9288289vsh.7; Mon, 28 Jun 2021 12:13:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fkcjAWg2iZfJCNWSyvUR3eFiJYg/imvuPuSRT3awcqs=; b=sKHIhFY511F0lTDL9L6lfXhdh3rJ/EVnYpqgP7QsrJPEFZ3RovEhnonNkIE8aqxR50 wBirT2e1j8wP5VsGQztM5FwOJ24i/8kCn9hIsmatcVhmRB6Kb0JxBIvgy7wOUzqbB28j swUqN4gHwVdWeQyRRb6BKKr2/0Pl3dO4OSoAgRonCWJSiiqfg05qYunXrnyx9e4wkdjG Hl96oqIjS99r+zIzEYykAZvL+c51kz8f/0xfifwYc7mDBoGUdS134cmJVD9l4tjShwGc z+nzILHv+tfM+IAK7O7KuMx6IA9UL2Pbyj1k5J4K/WHC3pQtqcI5xDzIN6OzxSOy10ww hdpg== X-Gm-Message-State: AOAM533A0ZVm1GD1ljlI4r9R9wfL2lManU5/3WwThOjOEK2zUgVB04Hm W0WustExVkUTsFGo7wn8CrXvnqCSNzs6okMefto= X-Received: by 2002:a67:fa45:: with SMTP id j5mr7644558vsq.18.1624907591118; Mon, 28 Jun 2021 12:13:11 -0700 (PDT) MIME-Version: 1.0 References: <20210623133205.GA28589@lst.de> <1a55cf69-8fe1-dca0-68c7-f978567f9ca0@landley.net> <20210628133858.GA21602@lst.de> <4d6b7c35-f2fa-b476-b814-598a812770e6@landley.net> <20210628134955.GA22559@lst.de> <1141b20f-7cdf-1477-ef51-876226db7a37@landley.net> <20210628163312.GA29659@lst.de> In-Reply-To: <20210628163312.GA29659@lst.de> From: Geert Uytterhoeven Date: Mon, 28 Jun 2021 21:12:58 +0200 Message-ID: Subject: Re: dma_declare_coherent_memory and SuperH To: Christoph Hellwig Cc: Rob Landley , Yoshinori Sato , Rich Felker , Linux-sh list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christoph, On Mon, Jun 28, 2021 at 6:33 PM Christoph Hellwig wrote: > On Mon, Jun 28, 2021 at 09:29:59AM -0500, Rob Landley wrote: > > > No. My hope is to kill dma_declarare_coherent, an API for board > > > support files to declare device-specific regions to be used for > > > coherent DMA. > > > > Q) If I haven't got regression test hardware to make sure I properly converted > > each of these entire boards to device tree, Is there anything else I can do to > > help you remove this function from common code, such as inlining some portion of > > this function? > > > > A) You can convert the board to device tree. > > > > Which part of this exchange have I misunderstood? > > The part that there is no easy way out without the device tree > conversion. So you keep this functionality around with DT. Which means there's some code to parse the DT, extract a region, and handle it? I'm just wondering which terrible maintenance burden would be left by making the handling function public, so the SH platform code can still call it? 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