Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3075553imm; Tue, 29 May 2018 00:02:44 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIl3pPdzpqZny2e48PPOrsCFaqL3WiGUHTL15DItqoYZJBEcv/GPPEIuJ+fkqxacV51gLRr X-Received: by 2002:a17:902:8604:: with SMTP id f4-v6mr7985795plo.4.1527577364661; Tue, 29 May 2018 00:02:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527577364; cv=none; d=google.com; s=arc-20160816; b=tuKeCXtyJH8Vk/ts+LwDF3bIuSREuOYZneV+y4Y3y8rNBcih1tbqPkiqLXCbkgXU6T fBGdbUTSdD8riLbb2IUuikGnM41RWu07cjtZ4L1ByzFb4v7kuEGczkcZdO9W72ZkYXlF q3v1J942ngd1aQsNoXTcdZZyH7oWrfulNfjjqR2dpYr3tovHET5nMKPUTS3sHfTnI40S kPAgvnJQRSHtpyvAY5lVNjomOB5xFikGC15aj7hmJ52A+Y5FljQO+rI9ngFWqsc6AmgM rZsjX3jpebjEUkspCWhlCYEATWnkJYEfXuewpQ17UM2yyCrxmqjRptvHbxi1lgILfoch 6/Qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=hfkKO7BrDp20w71+UaHcSxmsR9SMWRajc6MjSBKtBpE=; b=H4V3nZKFAGLclaijie6pUhbGvxP20zxdlq3W04KyMOGMFSp8BjSeh+NIY+COBYVwtR /NqPPljJwz5fV2dKDlsAuo6CeV9qVqjKWrp2SGqys2d3bqUwCn+h3vCh2h+68GooACOT 0XK+wN1/1bbOWIKIXHy2L+IbdXngMa6l7rpf5MKTUwGdt3lhbo2n+wA7ySQrl+nnBuFT StQuahyH46wXn1amWzmCdtJnZ+kvL4b2lbNqgRZH5NfcxWOtXGndfRfChdXnACGekOMN jvkHhc0JjJjMbcSZBVhxABfoa1VVcc0X90Qweoh8BTFpMbyIR1vwn3GLWCF0RILs3zbE rjLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m12-v6si25049119pgn.215.2018.05.29.00.02.30; Tue, 29 May 2018 00:02:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754704AbeE2HCF (ORCPT + 99 others); Tue, 29 May 2018 03:02:05 -0400 Received: from verein.lst.de ([213.95.11.211]:53558 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754609AbeE2HCD (ORCPT ); Tue, 29 May 2018 03:02:03 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 6D4DE68E42; Tue, 29 May 2018 09:08:13 +0200 (CEST) Date: Tue, 29 May 2018 09:08:13 +0200 From: Christoph Hellwig To: Michael Schmitz Cc: Geert Uytterhoeven , Finn Thain , Christoph Hellwig , Guenter Roeck , Joshua Thompson , Greg Ungerer , linux-m68k , Linux Kernel Mailing List Subject: Re: [RFC PATCH] m68k: set dma and coherent masks for Macintosh SONIC based ethernet Message-ID: <20180529070813.GA32615@lst.de> References: <1527378785-13326-1-git-send-email-linux@roeck-us.net> <55c1c33b-4a34-bd72-57de-577ce8d95e0b@gmail.com> <2ffd0de6-e8d6-6449-7c05-cbbfd8a99a97@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 29, 2018 at 07:59:37AM +1200, Michael Schmitz wrote: > Hi Geert, > > my preference would be Finn's patch introducing a m68k > arch_setup_pdev_archdata(). It nicely preserves what bus code sets up > prior to registering a platform device (important for Zorro devices > using platform or mfd devices), and allows overriding by drivers that > need it. Let's go with those for now. > > If ever a kernel-wide consensus is reached to move this setup to the > generic arch_setup_pdev_archdata(), we can still back out his patch at > that time. Finn found one counterexample where absence of DMA mask > signaled 'do not use DMA', so I think moving the DMA mask setup to > generic code is unlikely to happen any time. This is the right thing to do in the long run, and I'll spend some time auditing all dma_mask users for the next merge window.