Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp852784ybi; Fri, 12 Jul 2019 05:43:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqwzK0y2a15qWXo52B/PqA67Cw4PSNqXM2DFrxY2gP6KsPzFIcbaA0U4bbEeRTOebVQyEOMq X-Received: by 2002:a17:902:d917:: with SMTP id c23mr11280427plz.248.1562935438015; Fri, 12 Jul 2019 05:43:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562935438; cv=none; d=google.com; s=arc-20160816; b=0h5n4yWLBoPqmpoZrT8UPuCgCxYVg6Gd8tQFIX3kGqay+3rzKiW63O2d964AHE6jH6 fwHjOeKgk5j23McEZMICK+IbymZ1LQhFG5jNjJq5S+B0Oqg5kWxH0uzzdCTKtdRhNLW8 ZQ23LqBIU4Mya1tFJtOLQdCPeSkVW+vTod/eCZZGDOnoE0Hr2ykKX8E0hGiXsTeZTJ3c vp+qAaFevfIuIib9LRaeIfv9Scz7qG5yiIxi5Jk+ShwituR5exnZsv9u9nTPLhtQHUHS 2yUc9qKjukfW7jIFMuXinkyu3s+/m/pSYEnzdlLA6CUO1rQ9e+TidQ/graVGFXt65xfp BG1Q== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+13sswYaupXyhDRtMqXFGnhh7TwJDb9OYrEuQK8JzF8=; b=d3NHWaPwX+vka4kDwzHgiK7FnPQYtItWkWgN+nwbSc1n69+FrMdZqfq9fD4c6wfOxl CPU/BChXnm2J0PWkLaSf+8iVEIO2ilHZLbXCObkV6bLzPmcpOXvkR7BVrIlJwjClVAUi f3qaxYdfXnMRii12/8+WMvtkCzvBZE/POCHx7Owpn98DrWYkIt2cCn1HemTxnRv0e2oB 2xbHs97908lApor001S1SKMYLbE6naqwWcjSERga9TE4BlG1x0hryd1isVMAIIPWllpy yfRFL8kVUpGCcttc2FLnUiHo1+c2eZ+gmyiw9/dNGbqb2nWFtJLaO10Ds7RYX5+U550X 8w/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="oJG+/7bK"; 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 j64si8037533pge.556.2019.07.12.05.43.42; Fri, 12 Jul 2019 05:43:58 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b="oJG+/7bK"; 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 S1728003AbfGLMXz (ORCPT + 99 others); Fri, 12 Jul 2019 08:23:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:59778 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726930AbfGLMXq (ORCPT ); Fri, 12 Jul 2019 08:23:46 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0EBD321670; Fri, 12 Jul 2019 12:23:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562934225; bh=43W3IJXwTnhwsItxfOvtq/5NvvS0V1W8cRubBxab6o0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oJG+/7bKyfeJkFlsy21Cb36Wy4fA5sD+4uBoIpad1rba4g3ZXV5A9L0i7FsxVYuAl boo6tzZSmcPiKAj//kh9y0OztVAxB/4RMrPgw4spqtd8wuU5PMkUXwvNAAaJzvAdlt a1u03wuJV39djdUkIPeo9NEJV4q/fJX/NUWjBzbs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nikolaus Voss , Heikki Krogerus Subject: [PATCH 4.19 76/91] drivers/usb/typec/tps6598x.c: fix portinfo width Date: Fri, 12 Jul 2019 14:19:19 +0200 Message-Id: <20190712121625.890370354@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190712121621.422224300@linuxfoundation.org> References: <20190712121621.422224300@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nikolaus Voss commit 05da75fc651138e51ff74ace97174349910463f5 upstream. Portinfo bit field is 3 bits wide, not 2 bits. This led to a wrong driver configuration for some tps6598x configurations. Fixes: 0a4c005bd171 ("usb: typec: driver for TI TPS6598x USB Power Delivery controllers") Signed-off-by: Nikolaus Voss Acked-by: Heikki Krogerus Cc: stable Signed-off-by: Greg Kroah-Hartman --- drivers/usb/typec/tps6598x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/usb/typec/tps6598x.c +++ b/drivers/usb/typec/tps6598x.c @@ -39,7 +39,7 @@ #define TPS_STATUS_VCONN(s) (!!((s) & BIT(7))) /* TPS_REG_SYSTEM_CONF bits */ -#define TPS_SYSCONF_PORTINFO(c) ((c) & 3) +#define TPS_SYSCONF_PORTINFO(c) ((c) & 7) enum { TPS_PORTINFO_SINK,