From patchwork Fri May 18 17:18:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 10411677 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 665BE602CB for ; Fri, 18 May 2018 17:19:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 570C128932 for ; Fri, 18 May 2018 17:19:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4BA4628973; Fri, 18 May 2018 17:19:18 +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 C7AA428932 for ; Fri, 18 May 2018 17:19:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751363AbeERRTQ (ORCPT ); Fri, 18 May 2018 13:19:16 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:45518 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751936AbeERRTE (ORCPT ); Fri, 18 May 2018 13:19:04 -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=ku62UlNfVxAHPHOhxKD/paT7s q/tDsN0KCfHZv13kfBBN8c2nkIS7R7CpsfLnLeAYPW7seRCgAeqDhWHKS0dJSVwoTzYL1jmq9Is2l xotCMWTJHlnDFac9Q9W34zlFaxjdf9izcIcHTmTSUHwi4P6KQ3yEjUAXIL7bHtAgj0P/qeHeef6wz c5GGq4X+9wy0jCBNwgJMXxglDHv1Ew3gUExExkzsDtefPnyl4aUdJ6q5Gs4cly4l2RVZ9e5ae3zCB a6vy7DbcVuKMmz7IUwvyR1x6ns5J9bjnn7PgnrbZg0uEHt6Z3nOiKYKksq0wY2W6e+tph4anVn0dw 54hh1CYxA==; Received: from 80-109-164-210.cable.dynamic.surfer.at ([80.109.164.210] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fJj20-0007CY-02 for linux-mmc@vger.kernel.org; Fri, 18 May 2018 17:19:04 +0000 From: Christoph Hellwig To: linux-mmc@vger.kernel.org Subject: [PATCH 5/7] mmc: ushc: handle highmem pages Date: Fri, 18 May 2018 19:18:45 +0200 Message-Id: <20180518171847.16419-6-hch@lst.de> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180518171847.16419-1-hch@lst.de> References: <20180518171847.16419-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;