From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3C1DBC0650E for ; Mon, 1 Jul 2019 11:24:48 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 09043206A3 for ; Mon, 1 Jul 2019 11:24:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="EeGBKOOI" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 09043206A3 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1O/BynC63/CFLFbRCV6TCv/UiY8XUM5e4DQs+L5rHsE=; b=EeGBKOOIEa407P 8yXeCj3MI6yM4mQUgCFX34XaAmIkvalQ3wS3vw5Oj4qDLsn3+6wOMGJgdGnvvHW2/0yuTfN0T7Ijn lyak5ruV5t/pgagmJYXMo410lCPnsYVsLkAouG/uSbr0BBzriwiVABKMcSb/amnFBCf8jEF0SoP5Z vd9qkFsWXUtSJBtE8WlGk7eH1XjKXAb4brh7BE5J/BeFinxIpPnBimS7n4C1zhU9vttdiG3nh0jGM vF4CnDT3KOoX+DfXxCV27Xvz+rfD4H2HuhJzU+pege/6FHLis0WY+615nS4MJuR/kk7ANjdjyrTNy Ew+PoytxgeUzdLnq+SgA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hhuQP-000505-Kj; Mon, 01 Jul 2019 11:24:45 +0000 Received: from relay1-d.mail.gandi.net ([217.70.183.193]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hhuQM-0004zS-Ib for linux-arm-kernel@lists.infradead.org; Mon, 01 Jul 2019 11:24:44 +0000 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190701_042442_765018_C0E2AF07 X-CRM114-Status: UNSURE ( 9.27 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Rafael J . Wysocki" , Antoine Tenart , Greg Kroah-Hartman , Russell King , linux-kernel@vger.kernel.org, nadavh@marvell.com, brian.brooks@linaro.org, Rob Herring , thomas.petazzoni@bootlin.com, Russell King , stefanc@marvell.com, Frank Rowand , David Miller , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel