Received: by 10.223.185.116 with SMTP id b49csp4187595wrg; Mon, 26 Feb 2018 12:49:35 -0800 (PST) X-Google-Smtp-Source: AH8x2242haWvExpkIwfIVySX4nOSTh9zc9MoL8+QzkNgUUqUANiqNpntRecyG2/hydFjskx+jG0c X-Received: by 10.99.38.67 with SMTP id m64mr9398171pgm.2.1519678175298; Mon, 26 Feb 2018 12:49:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519678175; cv=none; d=google.com; s=arc-20160816; b=VmzuKxcLVOV6qzU9QUAdWOGEK8SMoMDiM3gBsUEUPwL+hSxhv9CMhsM9HfbgbbEY9p 9NmJzVJYI9I/WO08TqdwmFkR0beMqIINJeSeBTGwFr5CgULiZMqw6jcWHY51jFof4YS8 CqOCbiIlQ1UPhn18Nssa4rtzyKRBKipEI/Ex1ob/ROrTyRzEsPd5oKLGD1Nb+8TBqGYw /oM+xxzdUtEX+7wKNfGkVI/gbMEgCjTT0F5Wy+tdoJflah1nfX1qEfMeVK8fMhJNNBNA FT/db5xu7KjHb48uDT1MeckIuku8hwUTmDFq101yd8OEYLiRK5dxFWDj5VL2Ww6+V9Hv mq6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=dLLVdZQBGX42yrbJ7CHI75pFZBmUreA5Kr46dmodlrg=; b=hyzwmOwXR7xH4Ty1GbIynYMCdNS81xb8f50hL1xfUDvPu8+zjZlypdeb1fOqcEO696 ttoBST39808zlpQLkBs274/cx5lCXguxEkEM5pIZpK/9vuOjwgS0YrkFBfYbsYwwfVpu 9nRjJQW9eNTg1bXZp5ZxRUntMgaZqIb7NA/pK7MZiIwzIsuFZnhGPPt7CQ+mrhc9+X4/ 0jIuKYiwt6+Oi8qoBsLOmqScnnFz+8Zy1PjwyUw7ji1QjiM/+g/selKIMB8/Jp2FHWd5 yPE8DeoixCly9+z0Uxb1yf2x/fBqZ1uWi+0JIuPuAKbLZo9CD0FsfRWYmahi3euxcRxk fsZQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d70si4512800pfj.238.2018.02.26.12.49.18; Mon, 26 Feb 2018 12:49:35 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753223AbeBZUZn (ORCPT + 99 others); Mon, 26 Feb 2018 15:25:43 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:35504 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753210AbeBZUZl (ORCPT ); Mon, 26 Feb 2018 15:25:41 -0500 Received: from localhost (clnet-b04-243.ikbnet.co.at [83.175.124.243]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 0BDF7FD8; Mon, 26 Feb 2018 20:25:40 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Peter Chen , Alan Stern Subject: [PATCH 4.14 38/54] usb: host: ehci: use correct device pointer for dma ops Date: Mon, 26 Feb 2018 21:22:15 +0100 Message-Id: <20180226202146.259675323@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180226202144.375869933@linuxfoundation.org> References: <20180226202144.375869933@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Peter Chen commit 02a10f061a3f8bca1b37332672f50a107198adbe upstream. commit a8c06e407ef9 ("usb: separate out sysdev pointer from usb_bus") converted to use hcd->self.sysdev for DMA operations instead of hcd->self.controller, but forgot to do it for hcd test mode. Replace the correct one in this commit. Fixes: a8c06e407ef9 ("usb: separate out sysdev pointer from usb_bus") Signed-off-by: Peter Chen Acked-by: Alan Stern Cc: stable Signed-off-by: Greg Kroah-Hartman --- drivers/usb/host/ehci-hub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/usb/host/ehci-hub.c +++ b/drivers/usb/host/ehci-hub.c @@ -787,12 +787,12 @@ static struct urb *request_single_step_s atomic_inc(&urb->use_count); atomic_inc(&urb->dev->urbnum); urb->setup_dma = dma_map_single( - hcd->self.controller, + hcd->self.sysdev, urb->setup_packet, sizeof(struct usb_ctrlrequest), DMA_TO_DEVICE); urb->transfer_dma = dma_map_single( - hcd->self.controller, + hcd->self.sysdev, urb->transfer_buffer, urb->transfer_buffer_length, DMA_FROM_DEVICE);