From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751479AbeECIso (ORCPT ); Thu, 3 May 2018 04:48:44 -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 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 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. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH net] macmace: Set platform device coherent_dma_mask Date: Thu, 3 May 2018 10:51:20 +0200 Message-ID: <20180503085120.GA14574@lst.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Finn Thain , "David S. Miller" , linux-m68k , netdev , Linux Kernel Mailing List , Christoph Hellwig To: Geert Uytterhoeven Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.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.