Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2056466ybi; Mon, 1 Jul 2019 05:27:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqyI8+dg238yJ20xir+1QQnRAjD9uXhZB+450OUOZQw9GW/XZILMpCMw0mXXDlbdoY2CJfjI X-Received: by 2002:a65:4045:: with SMTP id h5mr17881170pgp.247.1561984027505; Mon, 01 Jul 2019 05:27:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561984027; cv=none; d=google.com; s=arc-20160816; b=O+Qo3ygyRh7wMziPbiKhicA5z25tfcEH/nB2AR/w8H30BDrqJv4MQEWkzvcND7v8Ws AskAHiFqBQ2C3N/7B0sFi+Q6coTlYSxNfmEy2PDDzr6+reSGJSdLvuUxoekbdZxFt3PW i4cxna1Z3PKaDzW5O8AsWvJI+OGxfGohDQ9SLnwbjxiDP/SZquhfn65U6cPhS/QnOQOq B8oAWH0FfnYgkRyxGuKeMrO7e6MGzwy/8qmk9LGnBX7kZYJ94OehKjOYv3L7zn+fMDwu dhNOS5ecqqqt6sV8ypffzMN45EqaRaj0dkhfFJ4xxlI1y7VGbDvmfru7OO8fLyQbkmBU OUOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=lAFd+ZxJ2Kcacvczq2+zPom3CBhgFSj5qpEg96WlJok=; b=vWZ06VSz/nOhT3SiR66RuCOuu5OJMJZ0Yuc/5KOLFAz/7v0hfEGd6UCgTxUkwvY6eU fgrovg5lj0cYWGyFIKqiuk8VI6qgyEaatss+032QVakfITj6Iz4+Mu+XZHecPmZVNqr3 /OqcNp5mY1mRK9B5XMyQp3MpxkvpPErVQgNfsDURDvdRiKKbi+1fP96YpYgG/zI3Pa+V ekTp37btnyAdYgJYwyPWIYrrD5HfEsJnp9kc84Xr4KTCrJ9VHMTfdT7rRZohDbAky/Q+ TG+RsT3DPr5cYGiNhBGjxtg8s3JPY8ShBEXNnqgExYPSzlgxvyDYf7EU69qYTtTeNZwO Yrnw== 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 c7si10035484pgn.464.2019.07.01.05.26.51; Mon, 01 Jul 2019 05:27:07 -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 S1728374AbfGALYc (ORCPT + 99 others); Mon, 1 Jul 2019 07:24:32 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:60107 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727239AbfGALYc (ORCPT ); Mon, 1 Jul 2019 07:24:32 -0400 X-Originating-IP: 86.250.200.211 Received: from bootlin.com (lfbn-1-17395-211.w86-250.abo.wanadoo.fr [86.250.200.211]) (Authenticated sender: maxime.chevallier@bootlin.com) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 434A124000D; Mon, 1 Jul 2019 11:24:28 +0000 (UTC) Date: Mon, 1 Jul 2019 13:24:39 +0200 From: Maxime Chevallier To: Christoph Hellwig Cc: Greg Kroah-Hartman , "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: <20190701132340.21123dee@bootlin.com> In-Reply-To: <20190628155946.GA16956@infradead.org> References: <20190628141550.22938-1-maxime.chevallier@bootlin.com> <20190628155946.GA16956@infradead.org> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christoph, On Fri, 28 Jun 2019 08:59:46 -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. I agree that this the real solution, it just seemed a bit overwhelming to me. I'll be happy to help with this though, now that you took a big first step. > 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: I'll test that on my boards too. Thanks, Maxime