Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1717494ybl; Thu, 19 Dec 2019 01:41:06 -0800 (PST) X-Google-Smtp-Source: APXvYqysrLhimr1PSK9WIF6ADBHa9CThvYE+b5Uho0F8xRIyZdf9ELiBpR/W7VUjsAeH1kWdLSaW X-Received: by 2002:a05:6830:595:: with SMTP id c21mr1343302oth.208.1576748466774; Thu, 19 Dec 2019 01:41:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576748466; cv=none; d=google.com; s=arc-20160816; b=ufa47Y3Vbv6Q2S5dWEHk1Qs9hgoeSQ8U0WE6nTLilzJEd0Sko++WEG6Z09KC7Bp3oC 8YVKTADXnJSkGzDnhPR+RmjeK+/BRdJ0JYIBTDGodUFrPlhUqKvo6x9x8jLupBmIbZYV KIH1eU15dBiC1Du7dnrEZ+cYMHoki6PxGEq+EPvjol801SWgzd6CXjAOkdernW9/0xie Basy9KjELgTzSbCPkPbAvOSuunvL6gXFcBHPGrtsZU1pyhfhRdN4cAeWGkPt2B7eGi/c vR4MXoHN2vtskNgSeYciRxOY+F8WSdFIubCxjJUPSqh/+eStp0njHBPwgXvrJtUQQYFA ZRHw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=UaU6i9zWU3yr9QJvcRz0VGGzrcUKaBIv86YipeMOKo8=; b=bxRMHrNeGikiGd3uRPTHQGf8laCTapWqMTXOHRdqJSYuwTFQuSrniwnsp/N70UOG9K mt/BKx66OnX95B4IU0Vt5N+ajAQOukV4hwI9tOXZrCq3pXPHYflOGedrcTXs11znodEy h+6YEtjLbMez8IQQUXk+AbnTofnppbsESG1a3M36bKdRtLueO7NoAPvMgUYelkh8SzKT WISicP3FVjSQ5E+U7jOLT0z+CONGskBzlUW5wpy8a3kr9ng5FwoClTbgXa3vvxiZjeT3 EPHgSJ5slGzZe5mHthEoZd68LlnBUY7aNFJIP/Yyecc+TXNzHyu7dPew8ZTreXFG1mma LAqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="LyDg1/Lf"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u188si491382oia.80.2019.12.19.01.40.54; Thu, 19 Dec 2019 01:41:06 -0800 (PST) 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=@chromium.org header.s=google header.b="LyDg1/Lf"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726884AbfLSJkJ (ORCPT + 99 others); Thu, 19 Dec 2019 04:40:09 -0500 Received: from mail-pj1-f68.google.com ([209.85.216.68]:55813 "EHLO mail-pj1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726789AbfLSJkI (ORCPT ); Thu, 19 Dec 2019 04:40:08 -0500 Received: by mail-pj1-f68.google.com with SMTP id d5so2245390pjz.5 for ; Thu, 19 Dec 2019 01:40:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UaU6i9zWU3yr9QJvcRz0VGGzrcUKaBIv86YipeMOKo8=; b=LyDg1/LfFyRwWJTxBF/LnsfrTJSpgla5kvA98Hg+eeijCP9Q4VYEvCBGyN5xVxKn7p eEsQscd3wujq8XMHgepAaRQXBH0E1PQZo9FaDL3lWv8qT+wBABdwjQ6wBRbPQczrwZhV xi1HLrIQxvVPsnnXebX2B39JQ8NlNTXox5+ak= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UaU6i9zWU3yr9QJvcRz0VGGzrcUKaBIv86YipeMOKo8=; b=cN5WLF832nIQwuaiCcl43Gq7PuigfEddf37JAEmbhHfdn1ts+zVl6SE2HNc7olNYQz IfD4oooIN1gJusH1wfF0sttIOmTYcZIcyO6htT5778DAuOEXRwZcLdIX4atXZFZeIhkX 7cpeGdiIxWG7TaOML+n4LHFU92SKrd8Q4Iz2OKzpXzD6HCh4MLsysSCi269d+QvvW0D6 BDLt05MufYBIxkvgNLRcTx9cQTEYV4jX186I7ZbZ48knbIZALBrZMHlOyMJb3bSfHlvi memifPuq4y5ieOu1DVdNItLh7HlX220MKyoZJeRQER0ZlMBvz/Z772SToROe2LpcCMqf SNeA== X-Gm-Message-State: APjAAAWCDEBu2aTrC0JwMt5blS7T4ePYF89pFThlCdg72CUjx4Jl6xIS ZBZM+id8guRH43cy17FKdOqXvQ== X-Received: by 2002:a17:902:8bc5:: with SMTP id r5mr8257114plo.189.1576748408099; Thu, 19 Dec 2019 01:40:08 -0800 (PST) Received: from tfiga.tok.corp.google.com ([2401:fa00:8f:203:f5fe:2a5e:f953:c0ed]) by smtp.gmail.com with ESMTPSA id d22sm7057694pfo.187.2019.12.19.01.40.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2019 01:40:07 -0800 (PST) From: Tomasz Figa To: linux-usb@vger.kernel.org Cc: Chunfeng Yun , Matthias Brugger , Mathias Nyman , Greg Kroah-Hartman , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Changqi Hu , Nicolas Boichat , Shik Chen , Tomasz Figa Subject: [PATCH] usb: mtk-xhci: Do not explicitly set the DMA mask Date: Thu, 19 Dec 2019 18:39:54 +0900 Message-Id: <20191219093954.163417-1-tfiga@chromium.org> X-Mailer: git-send-email 2.24.1.735.g03f4e72817-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The mtk-xhci platform glue sets the DMA mask to 32 bits on its own, which was needed before commit fda182d80a0b ("usb: xhci: configure 32-bit DMA if the controller does not support 64-bit DMA"), but now it has no effect, because xhci_gen_setup() sets it up for us according to hardware capabilities. Remove the useless code. Signed-off-by: Tomasz Figa --- drivers/usb/host/xhci-mtk.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c index b18a6baef204a..bfbdb3ceed291 100644 --- a/drivers/usb/host/xhci-mtk.c +++ b/drivers/usb/host/xhci-mtk.c @@ -488,11 +488,6 @@ static int xhci_mtk_probe(struct platform_device *pdev) goto disable_clk; } - /* Initialize dma_mask and coherent_dma_mask to 32-bits */ - ret = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(32)); - if (ret) - goto disable_clk; - hcd = usb_create_hcd(driver, dev, dev_name(dev)); if (!hcd) { ret = -ENOMEM; -- 2.24.1.735.g03f4e72817-goog