Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3028296ybt; Mon, 29 Jun 2020 13:18:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxn5JmkH6UmjVRGPJTc2CwKX7OVTEteEqxdcCNUwZF9NfexRvLZCNAFA1/giALelePNZxvt X-Received: by 2002:a50:8186:: with SMTP id 6mr19826890ede.45.1593461903732; Mon, 29 Jun 2020 13:18:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593461903; cv=none; d=google.com; s=arc-20160816; b=uUD59pH5HMRaFpD8ydWXrsJMpuBab7ZZSIcK3+g2KtwTP2pghsG2WcDTojZVoU2gJk CdmVeCdyi7/w6WqeG02+JWUx35IuSBd40p1ncmJ1IYVysdNfTalg+watOyR9DvuIgeeM XPY84hCLc/aAUuXddCKbRNkCIIxRmd7FL6EbrmP3UHM/Q5M8fAnN4Uz3ZoOsIpVZrS1g rZBUrn/jwwitJJ/tBuXTxXnLJB4lJfRaLtpnktGDuMA1MzY6ICwPNrNVDf/1MEkhy6PZ Z43uI1h4EzvUk06WLrsLEU4gfFz977Cufmej/aFLaauJ9Dl/5fWJLpHOOVT/25rO0g7V mzpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dFCJnnrodwq0sAezI2Q+1wXdTCR8PkgmmPx/gxzkhT8=; b=WrYx0idIsax0rl496YopVVVYW6Db3uxLcktWzPZWxjZc5zju6OhLYOEOCf2lmqleH4 5zPI4CvKKu+ChuU2aE32MXB2ZgmrFEA4Etx1ZNrLeESKSaNcFVrmvlZCN47rH+an237t qXEemXpZ/Z8ketClKH8+3K4glRiuFtckFDxjNucVw5u0emxm3IuduVoiWbV3cjwK4d7T XFAUjVn5MM5vkY6KLHZb9NsPcowYKUEQsqnxBLhfGQbHaiyRXSX5J0VBNjld0dRtPynV c5AVKdXVfQqKHbR3/VaS+k6r7iFoAse5B413a9LkeW22uYb1gvx0Y2akWi3qJ+HKeP1j 4h3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Tx72nvOn; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o15si339472eja.702.2020.06.29.13.18.00; Mon, 29 Jun 2020 13:18:23 -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=@kernel.org header.s=default header.b=Tx72nvOn; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729855AbgF2UQh (ORCPT + 99 others); Mon, 29 Jun 2020 16:16:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:40568 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732813AbgF2TaQ (ORCPT ); Mon, 29 Jun 2020 15:30:16 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9C3972523C; Mon, 29 Jun 2020 15:35:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593444955; bh=Mexa4EipNkHkN58XW6bo6kyGbN+IljX5NLie9H/M6sg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Tx72nvOn0Grjkf5hAlLOV84VD0Smux5ngYXxiSp32zndkWUSRf93Ka0jafQ7Pxc0Q bTHF6C9R+B6bDrZQ7WSgDtkoVfygat0rTgSEZUZ0pVZdq9VJ8Xae6FUfwrzByJp8Y2 DM3uDI4vQzdSjCdUCnCi8WhXmSVKefRaOSKnKWqQ= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Mathias Nyman , Greg Kroah-Hartman Subject: [PATCH 4.19 053/131] xhci: Fix incorrect EP_STATE_MASK Date: Mon, 29 Jun 2020 11:33:44 -0400 Message-Id: <20200629153502.2494656-54-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200629153502.2494656-1-sashal@kernel.org> References: <20200629153502.2494656-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.19.131-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-4.19.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 4.19.131-rc1 X-KernelTest-Deadline: 2020-07-01T15:34+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mathias Nyman commit dceea67058fe22075db3aed62d5cb62092be5053 upstream. EP_STATE_MASK should be 0x7 instead of 0xf xhci spec 6.2.3 shows that the EP state field in the endpoint context data structure consist of bits [2:0]. The old value included a bit from the next field which fortunately is a RsvdZ region. So hopefully this hasn't caused too much harm Cc: stable@vger.kernel.org Signed-off-by: Mathias Nyman Link: https://lore.kernel.org/r/20200624135949.22611-2-mathias.nyman@linux.intel.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Greg Kroah-Hartman --- drivers/usb/host/xhci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h index 4dedc822237fc..39efbcf63c11d 100644 --- a/drivers/usb/host/xhci.h +++ b/drivers/usb/host/xhci.h @@ -716,7 +716,7 @@ struct xhci_ep_ctx { * 4 - TRB error * 5-7 - reserved */ -#define EP_STATE_MASK (0xf) +#define EP_STATE_MASK (0x7) #define EP_STATE_DISABLED 0 #define EP_STATE_RUNNING 1 #define EP_STATE_HALTED 2 -- 2.25.1