Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp277514imm; Thu, 10 May 2018 20:30:29 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrpUOHWfafEkSmUkXKjiyCtz01A0/j2MRFPBDT9Rq2MC+73rvJfqAcubdBiy4ExSv8BWh/G X-Received: by 2002:a65:47c8:: with SMTP id f8-v6mr3091892pgs.430.1526009429619; Thu, 10 May 2018 20:30:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526009429; cv=none; d=google.com; s=arc-20160816; b=oVRxGSXwhTMEDqDwkjY7P/tMAf7wVsAT+YKxAhk+25TmmHq9iwKv9wDo88Pl4NMANU 3YuGJ2qz1xi2P6TL/ki4CpopO3lIpL3gDtJmUTUfqAfdSPI9w8395pVIg45Uu5aJuP5j pFXfiCDm3ohujaY/v2ONYJIB33P0M1qM1ScqGJD4MC8v1vLxjyJCzQ05vYWC7kL/N8ti 5rFxCdpiIHhJU9tGbv+PPrg1H4BFIZ+6vC6ChAc+1o4zhC55ULmMFw2mIBbJ9vDdCuxy lqg9C+OLkqbY39ACBU75QghzhPOe4cU3A8RsUMpb9HmSTf2uhEcDeJi5NTv5DbHBMbDs boyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:message-id :in-reply-to:subject:cc:to:from:date:arc-authentication-results; bh=f2X9SV2bGknKlvejVZKGPJZF1HvZ9PQPPP/pKXyd4s0=; b=gnatcOOPHJKXCttfRNtkG6J2OI4P7DMjifKdPyySHotpzZoikG4yLCNaYYwKZFBb22 HEZKnEDSUVRc/AFBdQt26NJ7T+mv0UTHSXKLdcdg1AxSd67U1OrTcbh+FxW4WNLrKkVv aYhQv+tByysyfq/WDewGewlxi/SLo0/59q2xs5VbFBsy5mF02E3eQAEALwXCRdPFMvyk IPFqB1+Bqg1rWEiRR03YIHqmp/uvMBQKa/+851ERLbQDGRDtDEu/BsqmjZ3DO2NXLqre t8ePG3ksazSN894sIgTrtnseOkqMixVpYPZ0noQUH/zgHpluq4mFAt0RKlC1n00O8n0Q CoZw== 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 n184-v6si1890977pga.330.2018.05.10.20.30.15; Thu, 10 May 2018 20:30:29 -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 S1752207AbeEKD3B (ORCPT + 99 others); Thu, 10 May 2018 23:29:01 -0400 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:39192 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750758AbeEKD27 (ORCPT ); Thu, 10 May 2018 23:28:59 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by kvm5.telegraphics.com.au (Postfix) with ESMTP id 8739922C0B; Thu, 10 May 2018 23:28:57 -0400 (EDT) Date: Fri, 11 May 2018 13:28:57 +1000 (AEST) From: Finn Thain To: Michael Schmitz cc: Geert Uytterhoeven , "David S. Miller" , linux-m68k , netdev , Linux Kernel Mailing List , Christoph Hellwig Subject: Re: [PATCH net] macmace: Set platform device coherent_dma_mask In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 11 May 2018, Michael Schmitz wrote: > > > Which begs the question: why can' you set up all Nubus bus devices' > > > DMA masks in nubus_device_register(), or nubus_add_board()? > > > > I am expecting to see the same WARNING from the nubus sonic driver but > > it hasn't happened yet, so I don't have a patch for it yet. In > > anycase, the nubus fix would be a lot like the zorro bus fix, so I > > don't see a problem. > > That's odd. But what I meant to say is that by setting up > dma_coherent_mask in nubus_add_board(), and pointing dma_mask to that, > ypu won't need any patches to Nubus device drivers. Right. I think I've already acknowledged that. But it's off-topic, because the patches under review are for platform drivers. Those patches fix an actual bug that I've observed. Whereas, the nubus driver dma mask issue that you raised is purely theoretical at this stage. --