Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2134175ybl; Thu, 15 Aug 2019 07:06:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqxgSxWTq487WT5AbUecKiAjxYHrF+aeOSArD4jTBa3peye22cz2GQGC9TWMWr1vqhWokubZ X-Received: by 2002:a62:640c:: with SMTP id y12mr5511645pfb.166.1565877986382; Thu, 15 Aug 2019 07:06:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565877986; cv=none; d=google.com; s=arc-20160816; b=awwBcezCgyeQ3YvHyYY3dhtdn7gB9piC3NvzlYjROFc/EZcO5xLfrRL4cwpiKtYAd1 nukMfgya4NvNx9F9hd719VdQNltiRTnCtD59RYiK0COtLx5FZKYVpUS4NAfdqltpSmxt 7mzDcvqH5fLcNLBl94EbBGGDnXWO0bMosHDRiiHR4AbVm1q7/rIhLMIaicb3VlkZ9+J5 d3QTwjfW7e5Bz+yovP/amO5EzMNWG/CkKjOTC7s5r4Op7KceiIq11DMoZ0qCg0cUpJ5u H0iX+vjxGIxYDgsQAXaO1lF98pYCzVJVqvrrp5hNulnChIY+7efLMLLzY2iVypDrFNe/ 60tA== 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:dkim-signature; bh=rz1UAK/A1ZeEJ9AMa9EmfJQOUDQLDw9r2w4RJel9yCM=; b=LNGrxu+eGBjEWT7mAsRIPAlMF89JIxBPnAHYdkSvatIy5SAAzfsHBy+1qwwbeqTOYv 1ffm/Ri90s2bJz9JgqvaR6LWKePTXF7IG3kGhwg6ctYvxae0LVwC4mnf6tZaJNaMWNz4 rvFm5+oxjQEv4wodWteDcp2nPlwsCE9GC03WJg0bRHsgRyPmPPWZ2arhSGnZh/FRfhva toWuJjJCAcesscSxp05q+XFnHyTApRDlw/UEhx/0FYd/YR3RP8FxHCloh0h+21Mcd8Gm d77y6zR7nUeXK3GW33FtX7kBbLlJ+3QyxwYMeSUnKH3Et0qNNSjiav/j0D+TIfoUO4ro 5IuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PtMKB3MH; 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 z20si2011917plo.159.2019.08.15.07.06.10; Thu, 15 Aug 2019 07:06:26 -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; dkim=pass header.i=@kernel.org header.s=default header.b=PtMKB3MH; 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 S1732737AbfHOOFT (ORCPT + 99 others); Thu, 15 Aug 2019 10:05:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:48612 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732211AbfHOOFT (ORCPT ); Thu, 15 Aug 2019 10:05:19 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 171BD20644; Thu, 15 Aug 2019 14:05:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565877918; bh=lOyzTACCHACUENr3Alx4Ml7IiaPxhwyXrxfcBKWNBJc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PtMKB3MHNCBeXVQklF3aBuT4nPDLyDVWODXEgp48SJZXXqW5ovAbc9FVn+3tX8FKE pR1oRIblVReZKrtntkhiaZUu9/e7AjwFuaI4yblInt8eTNK1NW/ZB7XjP4YTtW5VlW eNlY1nowm+mCe1y3E25iAZAab2798Rbm62UuKYmw= Date: Thu, 15 Aug 2019 16:05:16 +0200 From: Greg Kroah-Hartman To: Christoph Hellwig Cc: Maxime Chevallier , Gavin Li , Laurentiu Tudor , Minas Harutyunyan , Alan Stern , Geoff Levand , Michal Simek , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Olav Kongas , Tony Prisk , Mathias Nyman , Bin Liu , linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, iommu@lists.linux-foundation.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 6/6] driver core: initialize a default DMA mask for platform device Message-ID: <20190815140516.GB7174@kroah.com> References: <20190811080520.21712-1-hch@lst.de> <20190811080520.21712-7-hch@lst.de> <20190815130325.GB17065@kroah.com> <20190815133812.GF12036@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190815133812.GF12036@lst.de> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 15, 2019 at 03:38:12PM +0200, Christoph Hellwig wrote: > On Thu, Aug 15, 2019 at 03:03:25PM +0200, Greg Kroah-Hartman wrote: > > > --- a/include/linux/platform_device.h > > > +++ b/include/linux/platform_device.h > > > @@ -24,6 +24,7 @@ struct platform_device { > > > int id; > > > bool id_auto; > > > struct device dev; > > > + u64 dma_mask; > > > > Why is the dma_mask in 'struct device' which is part of this structure, > > not sufficient here? Shouldn't the "platform" be setting that up > > correctly already in the "archdata" type callback? > > Becaus the dma_mask in struct device is a pointer that needs to point > to something, and this is the best space we can allocate for 'something'. > m68k and powerpc currently do something roughly equivalent at the moment, > while everyone else just has horrible, horrible hacks. As mentioned in > the changelog the intent of this patch is that we treat platform devices > like any other bus, where the bus allocates the space for the dma_mask. > The long term plan is to eventually kill that weird pointer indirection > that doesn't help anyone, but for that we need to sort out the basics > first. Ah, missed that, sorry. Ok, no objection from me. Might as well respin this series and I can queue it up after 5.3-rc5 is out (which will have your first 2 patches in it.) thanks, greg k-h