From patchwork Tue Sep 3 08:46:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 11127405 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8EC731395 for ; Tue, 3 Sep 2019 08:46:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6F87F22DCC for ; Tue, 3 Sep 2019 08:46:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="JchuszWf" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728306AbfICIqZ (ORCPT ); Tue, 3 Sep 2019 04:46:25 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:34376 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726557AbfICIqY (ORCPT ); Tue, 3 Sep 2019 04:46:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type: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=A2X/lGbY6ny4Qh+4tWFl8dKaRYooojdfF0WMQcNmeAE=; b=JchuszWf/q9lBDyaxYo95Fdxc2 wcJkT0+3QL4v2MpRa/2Wrmc3Pc4uS0OymHAxcOVB1WqFYAwaZYfqobipoYPkWzF78MZHGSdto//oZ KQFwA9oS/WiFmEf2VnHxN2aH+ISCaq/rwyRCmCe4C9jY9LZOi9NO9nXHFWMgv1E2gQ6XksCT3oa/D 6OQu/CwR7/1GBZPso7+E+at+Sm2etoMmIlq4E2TR9ZirEjbzi5XyGvVqZr6A3ER9P1OHLARkUSZ1H jgnvq77YIrp95ZPGpTXo7pit65fJOMB7429JFlNndvRB6yXqMeg9k2/apb8IiMZIHvdUdvxq3DFZQ k9SP2bNQ==; Received: from clnet-p19-102.ikbnet.co.at ([83.175.77.102] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1i54SD-0003qv-58; Tue, 03 Sep 2019 08:46:21 +0000 From: Christoph Hellwig To: Greg Kroah-Hartman , Guenter Roeck , Lee Jones Cc: Alan Stern , linux-usb@vger.kernel.org, usb-storage@lists.one-eyed-alien.net, linux-kernel@vger.kernel.org Subject: [PATCH 1/6] usb/ohci-sm501: remove the HCD_DMA flag Date: Tue, 3 Sep 2019 10:46:10 +0200 Message-Id: <20190903084615.19161-2-hch@lst.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190903084615.19161-1-hch@lst.de> References: <20190903084615.19161-1-hch@lst.de> MIME-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org This driver doesn't support normal DMA, only direct access to its local memory. Remove the HCD_DMA flag to properly express that fact. Fixes: 1e4946c4412e ("usb: add a HCD_DMA flag instead of guestimating DMA capabilities") Reported-by: Guenter Roeck Signed-off-by: Christoph Hellwig Tested-by: Guenter Roeck --- drivers/usb/host/ohci-sm501.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/ohci-sm501.c b/drivers/usb/host/ohci-sm501.c index 0b2aea6e28d4..c158cda9e4b9 100644 --- a/drivers/usb/host/ohci-sm501.c +++ b/drivers/usb/host/ohci-sm501.c @@ -49,7 +49,7 @@ static const struct hc_driver ohci_sm501_hc_driver = { * generic hardware linkage */ .irq = ohci_irq, - .flags = HCD_USB11 | HCD_DMA | HCD_MEMORY, + .flags = HCD_USB11 | HCD_MEMORY, /* * basic lifecycle operations