Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp479279ybd; Sat, 29 Jun 2019 00:53:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqylO+fGkZuqq2cRAX0GwdCdJB2oaOiFK0zRgde4eK4NyqYExGpfZUNFsS6F7weEZRx0WkYq X-Received: by 2002:a63:5045:: with SMTP id q5mr12565126pgl.380.1561794824186; Sat, 29 Jun 2019 00:53:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561794824; cv=none; d=google.com; s=arc-20160816; b=Z7Ooo2W3YkxAuofxQYUxFRDsPsyZDzPloMtLbiwB7AuRmCwWhs1lXgkHyFCkP1FCi+ 5F7sK85GIRRWMTim2jav8GfwLwbX7mr8q1DyvmtRjf3fMIRVBu7IPBZjzYvR56tvRh8A yd5/HRhrLBi7wQ9iVfGSquA1S4toYG4kqpYD7wMB23qyl4xO3E4OyD2DsO3t127NOeWk pOIB8VxVxI2hL5zj446th3FY4WPKmPb+Om6oFLz0YATYuu5QjtXsl70BIPQhjzAsPeEO IegVC8GRQ0a2f7amx6SQp/NkhCE4U5BHTXUF99YFlkvamtXm2OU3p3Vvu1exuHij+zsB ydaQ== 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=4MVaEUcHlxRnQxnMVeEr0hhvq2UKt2tRjTQHq2DH2UY=; b=lXbRaPSFRUaL97357w3/XnJeFA1HMPUFJNYN0NO1MdTT0GrzZduUlPLwtkoPA+RTCI EzOHx6OCNiR5TnvVbq5fSfBvJ0N/3SAfBzhU68ilU9WNRxw0VKEpvawdYGNIr0frjRCt eGZZSMudQpHiPhKBqqffpBHsAyGtoa1+R7mt7odOuJ5Gs04BpqOsdrG86uHoH7Ohuo+y 3jPPCZh3TPHIO3sLO4ub30SYIOr1kQHDsvpX8LQ+v46Zdl0Xh7s4/vyt1NGajx/KCAdd 9yy55nXuzzlDNCBrBLdFvSpWJ8ixJMNDDfqO2Kz1zCuVljlKfVRyYpAqU2ZpBMIvnmqs Vt+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ODorpqjj; 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 m11si4314156pla.154.2019.06.29.00.53.28; Sat, 29 Jun 2019 00:53: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; dkim=pass header.i=@kernel.org header.s=default header.b=ODorpqjj; 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 S1726843AbfF2HxR (ORCPT + 99 others); Sat, 29 Jun 2019 03:53:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:58634 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726789AbfF2HxR (ORCPT ); Sat, 29 Jun 2019 03:53:17 -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 06BE02083B; Sat, 29 Jun 2019 07:53:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561794796; bh=eXUSg5gAEOz4gIaibl+P2xmyG9y3MtvzIka3bgkCHPk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ODorpqjjRnnfWVgc4AoMyhb95CgAYXOg95HTZNCI2fdm9S5IZJzrwvPKO+bvpfZoB l8I7tpjsrJxntfggfnIGQR395WNwx/gxF1kdqB11ihc+NsRu8mKMAnoBtICevomkBL MweFIxCIiw01QKFBB0/3L9XQFo0lCVYl1sWcnc2A= Date: Sat, 29 Jun 2019 09:53:12 +0200 From: Greg Kroah-Hartman To: Christoph Hellwig Cc: Maxime Chevallier , "Rafael J . Wysocki" , Rob Herring , Frank Rowand , Russell King , David Miller , brian.brooks@linaro.org, linux-kernel@vger.kernel.org, Antoine Tenart , thomas.petazzoni@bootlin.com, linux-arm-kernel@lists.infradead.org, nadavh@marvell.com, stefanc@marvell.com, Russell King Subject: Re: [PATCH] driver core: platform: Allow using a dedicated dma_mask for platform_device Message-ID: <20190629075312.GB28708@kroah.com> References: <20190628141550.22938-1-maxime.chevallier@bootlin.com> <20190628155946.GA16956@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190628155946.GA16956@infradead.org> 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 Fri, Jun 28, 2019 at 08:59:46AM -0700, Christoph Hellwig wrote: > I'd much rather bite the bullet and make dev->dma_mask a scalar > instead of a pointer. The pointer causes way to much boiler plate code, > and the semantics are way to subtile. Below is a POV patch that > compiles and boots with my usual x86 test config, and at least compiles > with the arm and pmac32 defconfigs. It probably breaks just about > everything else, but should give us an idea what is involve in the > switch: > > --- > >From ea73ba2d29f56ff6413066b10f018a671f2b26ac Mon Sep 17 00:00:00 2001 > From: Christoph Hellwig > Date: Fri, 28 Jun 2019 16:24:01 +0200 > Subject: device.h: make dma_mask a scalar instead of a pointer > > Kill the dma_mask indirection to clean up the mess we acquired around > it. I have no objection to this at all. I would love to see the indirection go away. thanks, greg k-h