Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2088825ybl; Thu, 15 Aug 2019 06:24:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzHCUx8/PtqtWABdxLNnxRNL04CAV6UviwIsS716RQHYGDCeCM8exVPGHBHZ9SdusUkX0tr X-Received: by 2002:a63:1d0e:: with SMTP id d14mr3521892pgd.324.1565875482626; Thu, 15 Aug 2019 06:24:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565875482; cv=none; d=google.com; s=arc-20160816; b=JSMI61Ru3eGyQ0h96V83IqpyerfNf+9x/RV9WgP4e+j/gAoLOJbCQWQ5SjbpCCftdG dLkQlSSzYg+N2PCE39npJFQs6KyAWOjdYg14+JzJjGf/rnHrHb0SLlhYrcbF9VEpsQcI KUoVhJqxBP4QXNw17kyXoGz6OD2F+TWDTqXuCDw6sJRsrMwQ9m3GJnir4G+nucCGcIs/ C9Va1S0AV54qwXCvunxl4j0L/q4U3DeILGoRSRT8rbZXBseZH2XF298JqvIWyADn+nIS LqOD2RLHrUi0Qb/MY6b73FWDT7yUJOG8l+XEAMrw1Wm7DfWGZKNoYDKg2s1PzHX30mfe EXNw== 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=Ywrtqq2tepXqLscnaVNq4s5XGdyzmMDD/FqEtz9Jn/w=; b=HIpC4JeyTIM0c/Uykt6ycloNsXAfDkKJSiU2pNa7EHFWLaLWXjmbvc31iEAwYVOpiO /qDF3M4XaIFzJA2JKExfPGPB91cZvWMTIJeyi8Ui0uSUoAhhaT5zE8mW5tik+KtjorSQ NprhE15Ap71LagYgqaN2tklotP/e8hqtHeeSZAH5Ddu4044+wQ1brWgDdLVzk5eJY2D8 TgCA+yOfCrG75yzHuQ4g0VcGCwGn93EBR3XYrB6kaQChMnYl9HiQiuEygQNbzrkzPaZZ 4JVHthgX0VT7t10WNQffySAgj8w0Q8EBI3dpPhTABWPZEwEjLyRTBC3qlkLoKAM625+f PU1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="PIdKCMQ/"; 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 v19si942076pjn.96.2019.08.15.06.24.26; Thu, 15 Aug 2019 06:24:42 -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="PIdKCMQ/"; 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 S1732282AbfHONXV (ORCPT + 99 others); Thu, 15 Aug 2019 09:23:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:56330 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731660AbfHONXV (ORCPT ); Thu, 15 Aug 2019 09:23:21 -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 B11572084D; Thu, 15 Aug 2019 13:23:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565875400; bh=v8T3qwF6qiZM++7vAT7AL0JPe0r/NT0kv4QeyOYP/rE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PIdKCMQ/Lb50XgkTlSzI4dcJJpEBGXjfxY4vMHFbCuhE6F7PCaSzRKr5kWXihgsd6 CYq+SBnCJXFALaYcaG3aif6qNMb45WH5wI6jKS8CZyb2VbP+PYmponIEA+124IIRAp rJJ2vhvhUrSSeOp1mohuc3t3W+bL3ZyLQHR5jtR4= Date: Thu, 15 Aug 2019 15:23:18 +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: next take at setting up a dma mask by default for platform devices Message-ID: <20190815132318.GA27208@kroah.com> References: <20190811080520.21712-1-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190811080520.21712-1-hch@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 Sun, Aug 11, 2019 at 10:05:14AM +0200, Christoph Hellwig wrote: > Hi all, > > this is another attempt to make sure the dma_mask pointer is always > initialized for platform devices. Not doing so lead to lots of > boilerplate code, and makes platform devices different from all our > major busses like PCI where we always set up a dma_mask. In the long > run this should also help to eventually make dma_mask a scalar value > instead of a pointer and remove even more cruft. > > The bigger blocker for this last time was the fact that the usb > subsystem uses the presence or lack of a dma_mask to check if the core > should do dma mapping for the driver, which is highly unusual. So we > fix this first. Note that this has some overlap with the pending > desire to use the proper dma_mmap_coherent helper for mapping usb > buffers. The first two patches from this series should probably > go into 5.3 and then uses as the basis for the decision to use > dma_mmap_coherent. I've taken the first 2 patches for 5.3-final. Given that patch 3 needs to be fixed, I'll wait for a respin of these before considering them. thanks, greg k-h