Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3129838pxj; Mon, 7 Jun 2021 03:08:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzf7lZWX1YXHPosUzTF8QJfGqkaGljOOWNV3+vIMBJ/CGrxLATOOTbIUq8tSl+ezYaBlybU X-Received: by 2002:a17:906:5293:: with SMTP id c19mr16954565ejm.245.1623060480550; Mon, 07 Jun 2021 03:08:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623060480; cv=none; d=google.com; s=arc-20160816; b=A2Jlef+xOMeEOgBGky7Lyhg2pXmqXf6b+KCM9Iv9VqnFHLLocQP+gS+uC2/IINWZ9y hA2umLCbsYFFI6l/I+rkZAS6XUA87CpU9p+tmjh06/0YTBIy0KDu3w8MSkP0MXOxSr7j 2Dqd5V/IkY1TgEPc4ZIfzEmpBxkxPQEvbTsQbJJh7b9bH0VvM74F7wKqN2uxtxiPXWvd 83rUiEBL9K+BXCu6T+M9uYUPcv0HVeWR+OFR+iLP9pFyVkiHbX1gVT1jnkXn5mbCM5hA TjgFy0hvA3/qO2z9FP738KrVVSFruWn2Oz5H6R4sHl/coicJcT5+h2voQ1JrtNHcUOBa SB5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=MZ7HfAxUNA4sYdVsS00Xo7tdZCEzY0DVG7Cn33xC8v8=; b=w3g1PPFc4yr24HvL0lMi0z8fZYRgEHdfMghXGCY8MYirMp28fSe80M57+TQt3RCGL9 8T1PVMfNSpLRrhhxzZtyvchwhjtqLQvLYA0EGSr9N/kyjNoBjrT2wRZ0BVq7vTIP5jrF yTin7VIRF1WMRixvaUR6im0pYAe1Ai9sQSDUQQV4CLCRdbhy0jHtKswm4DF1nIdUSnIy Y9czEFkbdp2wVJt7sE4pUhYfSs3z8WkLVqMRC+f+ketVo9EL3qG6FPkLfyTQLRLMbQ7J scImLOIjPHStR7gZbtOQdb8xrK/BM1nGXTkBu1odhwrWp3KuT53ivpxNKsCXAV8I+5qE WGpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=NHhzUqvj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h14si7186658ejo.641.2021.06.07.03.07.37; Mon, 07 Jun 2021 03:08:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=NHhzUqvj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230207AbhFGKHL (ORCPT + 99 others); Mon, 7 Jun 2021 06:07:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230127AbhFGKHJ (ORCPT ); Mon, 7 Jun 2021 06:07:09 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F05CC061766; Mon, 7 Jun 2021 03:05:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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; bh=MZ7HfAxUNA4sYdVsS00Xo7tdZCEzY0DVG7Cn33xC8v8=; b=NHhzUqvjE/88wRep0AfweXDHHq vnYYAd++myvzOWjWTD1II1Bu9A3TB74TCcw06wWRbySdDulZm0r3BC5HRHh5FwVnYHLO4z9+wHL6i p/fa3AEMDHFi0f/uADdb2db4WU0b/tVYdZkvuJVV2jzlPEmTG12zqHCUCGed3eIE1/mvODLVu00T0 QI+8vDW7g89u5JHsF0bUh84188OOlx6o6NwAxbhdwX9xYRFzvLo+lbash0Cc+J4J8yDtenNzRhvig vKVSjTmZzDd2ps08y5vtKXnfo2AF7TwVW/m697YlTu61FYuLh/9A6HAEkZJwceEi7F0NrzyAMXDeU qBachZ0Q==; Received: from hch by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lqC7s-00FbrF-Tg; Mon, 07 Jun 2021 10:05:01 +0000 Date: Mon, 7 Jun 2021 11:04:56 +0100 From: Christoph Hellwig To: Arnd Bergmann Cc: Sven Peter , USB list , Felipe Balbi , Greg Kroah-Hartman , Linux Kernel Mailing List Subject: Re: [PATCH v3] usb: dwc3: support 64 bit DMA in platform driver Message-ID: References: <20210607061751.89752-1-sven@svenpeter.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 07, 2021 at 09:25:43AM +0200, Arnd Bergmann wrote: > This will now fail on machines with dwc3 connected to a 32-bit bus (or a > bus that is accidentally not annotated as supporting 64-bit) when there is > some memory that is not addressable through that bus. No, it won't. dma_set_mask_and_coherent with a 64-bit mask will never fail if dev->dma_mask is non-NULL.