Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2687803pxj; Mon, 31 May 2021 08:16:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgpSnIdic2uwkejUKl93/ATRB7+OYIUhXEa+vqEqoMma1Nttnle430PjCwffak2aIeZO1t X-Received: by 2002:a17:906:3b92:: with SMTP id u18mr23385115ejf.450.1622474196452; Mon, 31 May 2021 08:16:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622474196; cv=none; d=google.com; s=arc-20160816; b=S6YP5IEdyDh2S5HFhCb9djjCQUP4syfi8I+MY/hsH/h1SbfpXb5qqPEjjFpe/sglhe N8yfwaTwMZvMMUf9Yw9HJdXMC6m+5Z53MYV2HQm5wvhUU6izdAr67Tmb9v2xAmgdszv9 4XAuaUT7LxBhmxKuvXkDdmh0muTlulExx7FZY+X9VWHsNW6ZBkvIRTeixayaELXFvKPU bqUK/z3fhV272GE4OSOfNr4YDRRDWljtx8pflnkZpQg55zYxaMltVydu3Ev9pWidvb3i Zs/ErWx2SJSpRqGIotVHDArG7of+XKPf+GG1H5wcbqXgCu8h5YnXWq/NUY75eug9Po16 ZShg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=pnNfZoPOeNLQpZsE+obUhpxpCyhDniwHtj7tqiooLDU=; b=ZAxuA06PHFxNFihjbNOLY8mGrDYAIAPX8K9PSSlr+wN/V/ZoNVxuk/DYM1RJOyQEGc kXLGzAadXPjtRzSEOFcTaokuwt8J/eeTLm18p37ic7amzd8JYGdtpdzUj2fDSTVuVfSG sLhGR+F/+19LeqPMLPJUIJ38ndwSah0ewbvVNTSc3tOyBbxULlHgxhHOPhpmYVeBFBGB oE1zoDgcligu8MV1QdTgi6bPbGHA86P6dvBsXOa8hxI42YwxulH76z2Qo1CSNIJQ4W1T 0tsiKQZI6/feIPTJS6mpzZOrjKHZ/p7J1qnSXLaKjpdhd+hIHRpSd82I2fw2m5D9vOCL hYQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Lo02YeEV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z11si6756552edr.492.2021.05.31.08.16.14; Mon, 31 May 2021 08:16:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Lo02YeEV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230405AbhEaPOw (ORCPT + 99 others); Mon, 31 May 2021 11:14:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:40564 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233289AbhEaOMF (ORCPT ); Mon, 31 May 2021 10:12:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 11F8F61460; Mon, 31 May 2021 13:41:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468492; bh=vWzu84KDPR4m9KQqki4TpwcoGMXj2QMHBkh1UmR+CQE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Lo02YeEVf5SLwTtwwJUiKyF8QplkTYrv+SAoO3eZo0HOsPVgGVbWyaPj/HBtTkm6h OtFzM4cq9o5rrlTdrXSHCFMVSZTfgCrj42jNbp0+7tzLkSwmfZC7uIjRDMnqVmLB4B QYHGfYmUOFr/76l1w0YeqsIeb5U1P7JgKNXHor+A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Geoffrey D. Bennett" , Takashi Iwai Subject: [PATCH 5.4 002/177] ALSA: usb-audio: scarlett2: Fix device hang with ehci-pci Date: Mon, 31 May 2021 15:12:39 +0200 Message-Id: <20210531130647.977054036@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130647.887605866@linuxfoundation.org> References: <20210531130647.887605866@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Geoffrey D. Bennett commit 764fa6e686e0107c0357a988d193de04cf047583 upstream. Use usb_rcvctrlpipe() not usb_sndctrlpipe() for USB control input in the Scarlett Gen 2 mixer driver. This fixes the device hang during initialisation when used with the ehci-pci host driver. Fixes: 9e4d5c1be21f ("ALSA: usb-audio: Scarlett Gen 2 mixer interface") Signed-off-by: Geoffrey D. Bennett Cc: Link: https://lore.kernel.org/r/66a3d05dac325d5b53e4930578e143cef1f50dbe.1621584566.git.g@b4.vu Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/usb/mixer_scarlett_gen2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/sound/usb/mixer_scarlett_gen2.c +++ b/sound/usb/mixer_scarlett_gen2.c @@ -635,7 +635,7 @@ static int scarlett2_usb( /* send a second message to get the response */ err = snd_usb_ctl_msg(mixer->chip->dev, - usb_sndctrlpipe(mixer->chip->dev, 0), + usb_rcvctrlpipe(mixer->chip->dev, 0), SCARLETT2_USB_VENDOR_SPECIFIC_CMD_RESP, USB_RECIP_INTERFACE | USB_TYPE_CLASS | USB_DIR_IN, 0,