Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1152788ybi; Wed, 3 Jul 2019 10:22:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqyss18zmlvnvEJgW4V2gXpe4fVPbEsumFnVFxKdWULaiEWQB5C8+AJZ7i3e176MeG4wmqNN X-Received: by 2002:a17:90a:d814:: with SMTP id a20mr14121213pjv.48.1562174578679; Wed, 03 Jul 2019 10:22:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562174578; cv=none; d=google.com; s=arc-20160816; b=njKx0LObwjFcZD2RIJkdtz8GOd4w1khlKSNf3rhkGkInvy7ChQH6/ZDewZG0Tpb0fK /cbsIIrP0hZLe4PRqwvqloaI3leP915yTGuL1c6pz87cOWwPeJsFp5EoIzcPzCV/u+nj KbLNflHYGhpALbeGFmizwY4dp8CcZZa0GhBzINhehO3PgWIt2wYYGt/NsYiaOwwGDWPN x8CUZ23fWUt7ZURk4UIBdTWD5mzkt5e7Xuiv0xcbd7JYwn7SkiuVWWEWES5E3Jm8wpgW 7/Og/caRbxI4eL3Y/vmv3PLY2633hDmhHAd5KvQfdnDsOf+CFFD2JpeXhxpFl0TiUKq4 mDNw== 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=KLNpXUeBNjOGtXnDQ3qzX7M6wN19aQMGgVhJjQ1BSuc=; b=G8jK5fdw5VaV9/uUQpJ1RGhwU4LLxjKbNhGjF/4NlbZMMBKU2wSHRF/4l/IFWqQX78 rdUU3n4cpsz8yqOzpNcpj1q0lbJ/9tpl39Ovtv7MJRVLCMR4R33KfhwCFIAAbZh7XJKY +n+Y/GWe9VPLhxy+/l/x0k2Fp6SadWwHmMNKwJ/ceU5SOh7tDF2oVvzA390HsH0laNsF upbYc/tJKJHrv9jAVcKAuPza5bgZJbwvNwFm4O+uTsVd8A4CSg5WKqfgXgCFcVCNT+s/ n6Gh08bijVW/bM+Kjj8FMddhYbV6gQ5z4ENtipknZPweI40N0d1gqSoFSxibuGgsO8b+ k9zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=p54r3CaT; 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 bg2si2532000plb.263.2019.07.03.10.22.43; Wed, 03 Jul 2019 10:22:58 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=p54r3CaT; 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 S1727237AbfGCRVm (ORCPT + 99 others); Wed, 3 Jul 2019 13:21:42 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:48060 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727119AbfGCRVZ (ORCPT ); Wed, 3 Jul 2019 13:21:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=KLNpXUeBNjOGtXnDQ3qzX7M6wN19aQMGgVhJjQ1BSuc=; b=p54r3CaTxN1VjNO3vNGbNNXLB djZuP4fanPNsLlBqMzU5MoP+1WLXTYZva0j3m3P7OUtM3wERwG+ot3qGTaebOvLcOlZE0NaZzIL2D /HTFZdIBzKlwn1NFvQKlPE48i6NLNn5ZwqhLc804x/8rUCdrK0U+KhMah1s+XDe5M9w0MpvU4susf HjmAYtShG3Hd42th/Q8PDRRdMRwIQH7zILUpUh67kFTwPYTmmjHzvF5JLUV7gOAchy78zV/lHSv4x sJF1Mv54B5XJdRqqtIALihUynxzBVmmmmiJsl7TXUVScwRO2NcTplls5IExQYeZMS5sUhuWfEg2+L 0h3Q2PXug==; Received: from hch by bombadil.infradead.org with local (Exim 4.92 #3 (Red Hat Linux)) id 1hiiwW-0007Al-2D; Wed, 03 Jul 2019 17:21:16 +0000 Date: Wed, 3 Jul 2019 10:21:16 -0700 From: Christoph Hellwig To: Maxime Chevallier Cc: Christoph Hellwig , 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: <20190703172115.GA22034@infradead.org> References: <20190628141550.22938-1-maxime.chevallier@bootlin.com> <20190628155946.GA16956@infradead.org> <20190701132340.21123dee@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190701132340.21123dee@bootlin.com> User-Agent: Mutt/1.11.4 (2019-03-13) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 01, 2019 at 01:24:39PM +0200, Maxime Chevallier wrote: > 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. I think the first step is to resurrect my original patch to default to a 32-bit DMA mask for platform devices, as that will cut a lot of crap from the platform device declarations. IIRC the problem back then was that USB uses the fact that a DMA mask exist to decide if it uses a DMA vs PIO path in the HCD core. So I'll need some help from Greg or other USB folks to clean that up, after that we can try to apply my patch again (preferably early in the next merge window), and once that sticks clean up all the 32-bit dma mask initialization for platform devices, and then turn the dma_mask into a scalar.