Received: by 10.192.165.148 with SMTP id m20csp1585624imm; Thu, 3 May 2018 01:50:24 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpTQBOuYGIhMdEd7OEbMbC+ST0bCqP6GGxNq4n8YZW3vPo0H+pF8KNdejl3YW3dVQLhN7he X-Received: by 2002:a63:9a09:: with SMTP id o9-v6mr596631pge.130.1525337424139; Thu, 03 May 2018 01:50:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525337424; cv=none; d=google.com; s=arc-20160816; b=eEdUwCtRzQnqP04BoWVmJklRGlYCqNb6CTItRznZXVsAJJdYbiBGv/Ixmnu/VzjNkY shSy0fAtHEgqTTXCZ5xYj6H0Z3mr+YTu1hiGZLiSMXsvJPwOQGude8keXaoOd/Irp/zC 8MXT/Gn/EH0Ae5jGG8vcNXOVwNQpOFiSWJG+nZWSmpZ5v1yU5YN4qbPyP0o3e+FldURZ vfmOLRv7Yb/boNBMclGl49+b0ReR6p2BxhfXs6e2Sj/n4aCPjJgiL0tXQUaBKuAZwfpA +aIWKGC3f6cBALrTKUkwT7TPSQq/Nu16BPy3ynpXqy9VxG0BOns6xlWzGGQcDtcwQsrT h2yg== 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=EIZapOUonY8yDAjBt7mHRVISojoy0v0ddY1jALtPtjY=; b=i2lI8kUVqQ1oVUbq9fUb7j28MZuavU8q8IzsQ9iMNm+6d3qXOLS3Cd0C+Vtt+NAJUa HfDNhLHRShC8pzqi5vaejlYWhYlIWKG3AbtmaESiGpqi0Izo59Wn+JlSCJMebQK3eZaI 43D9dGj3rn2GwMRIyOw2goXuTWXplK21ngjCBMcc7DFNyBfRwITviaw6qXCeyzfvsjI9 6Qlj582ik4OTQfDKpkuugpcxTLsc9v55nHsEWuDz74mB136353/tm/S3yXph5syOT6Q5 k1l4FeRAZYBbXD+6pelaw9N/QAhmRDrueZ6gAtEvSDlrDnFpB8pjTN46kh0vioMNhM8S nSSQ== 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 s83si13660548pfg.175.2018.05.03.01.50.09; Thu, 03 May 2018 01:50:24 -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 S1751465AbeECIsn (ORCPT + 99 others); Thu, 3 May 2018 04:48:43 -0400 Received: from verein.lst.de ([213.95.11.211]:42992 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751269AbeECIsk (ORCPT ); Thu, 3 May 2018 04:48:40 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 8C13868CF4; Thu, 3 May 2018 10:51:20 +0200 (CEST) Date: Thu, 3 May 2018 10:51:20 +0200 From: Christoph Hellwig To: Geert Uytterhoeven Cc: Finn Thain , "David S. Miller" , linux-m68k , netdev , Linux Kernel Mailing List , Christoph Hellwig Subject: Re: [PATCH net] macmace: Set platform device coherent_dma_mask Message-ID: <20180503085120.GA14574@lst.de> References: 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 Thu, May 03, 2018 at 10:46:56AM +0200, Geert Uytterhoeven wrote: > Perhaps you can add a new helper (platform_device_register_simple_dma()?) > that takes the DMA mask, too? > With people setting the mask to kill the WARNING splat, this may become > more common. > > struct platform_device_info already has a dma_mask field, but > platform_device_register_resndata() explicitly sets it to zero. Yes, that would be useful. The other assumption could be that platform devices always allow an all-0xff dma mask.