From patchwork Wed May 9 13:55:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 10389615 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5DB2660318 for ; Wed, 9 May 2018 13:56:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4EFBD28FB6 for ; Wed, 9 May 2018 13:56:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 43CC728FBE; Wed, 9 May 2018 13:56:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C062128FB6 for ; Wed, 9 May 2018 13:56:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934948AbeEIN4A (ORCPT ); Wed, 9 May 2018 09:56:00 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:58894 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934955AbeEINz7 (ORCPT ); Wed, 9 May 2018 09:55:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=References:In-Reply-To:Message-Id: Date:Subject:To:From:Sender:Reply-To:Cc:MIME-Version:Content-Type: 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=cImZKctLXo2sjr+PVNVO94GVGWMlYTm1FnecPgu3OIg=; b=Q0+7AKJUB+kVZ/pitM2BKQvC2 Mtp95bBIysl8LSU++FY0+4WG/IQyWHqL3qTGXHxdI4RHE71VKPsSY+Dbp7V8Oj0zmj8WzxTen6xOK nOh7L7nkmvD9HiWljfidl0b4iLZl1ADhRSw4bp9ceeC9pYH7fgCly2dzPm0qpRAOHlxltnik1Hcsp voBeL1Ogk5Cwv9XDHeTBdqFwGZNK1wfBs6mA3txfOvz1SDjocvwo5V9HAEn6T2jonfL1NrBGNG8WT Tvas6rUO9GdvwLhxuKJoitn7dXhLsLmUpYztloMk7C7yCu6X4QPD2Rb3GxpD6QXq0GIpgLPAqyxQk InjcQl62w==; Received: from 213-225-15-246.nat.highway.a1.net ([213.225.15.246] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fGPZU-0001sE-KB for linux-mmc@vger.kernel.org; Wed, 09 May 2018 13:55:57 +0000 From: Christoph Hellwig To: linux-mmc@vger.kernel.org Subject: [PATCH 5/7] mmc: ushc: handle highmem pages Date: Wed, 9 May 2018 15:55:23 +0200 Message-Id: <20180509135525.19885-6-hch@lst.de> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180509135525.19885-1-hch@lst.de> References: <20180509135525.19885-1-hch@lst.de> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Pass the scatterlist on to the USB subsystem instead of expecting a kernel virtual address. Signed-off-by: Christoph Hellwig --- drivers/mmc/host/ushc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/ushc.c b/drivers/mmc/host/ushc.c index 81dac17064d7..b2b379b10dfa 100644 --- a/drivers/mmc/host/ushc.c +++ b/drivers/mmc/host/ushc.c @@ -300,8 +300,10 @@ static void ushc_request(struct mmc_host *mmc, struct mmc_request *req) pipe = usb_sndbulkpipe(ushc->usb_dev, 2); usb_fill_bulk_urb(ushc->data_urb, ushc->usb_dev, pipe, - sg_virt(data->sg), data->sg->length, + NULL, data->sg->length, data_callback, ushc); + ushc->data_urb->num_sgs = 1; + ushc->data_urb->sg = data->sg; ret = usb_submit_urb(ushc->data_urb, GFP_ATOMIC); if (ret < 0) goto out;