Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp841583ybi; Fri, 12 Jul 2019 05:32:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxYJY8u9BDXHcnxYXi7p21uzYgL+5iYa7ybT3FYR9D78k1IexLREhLQUQnrk36JsSs6kQ/f X-Received: by 2002:a17:90a:1a45:: with SMTP id 5mr11749368pjl.43.1562934775654; Fri, 12 Jul 2019 05:32:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562934775; cv=none; d=google.com; s=arc-20160816; b=D5dyY5vpZi1b9gZgpPirAOINKnXQxNSfxQsKFwniopNc0za552+lCBmoONy54Dxf0m 7WBQAL0OgNBD/joIZ2pr3yCV6PCIi3lFVEFF0qqv62iEc6uTlshm8MdRYNWgNah52JAY vGPZPSeYRHTCE3P9xQDosKC6idjojdqQv6t6/0BYJPI3JGLIJCsR6YScRHBvYqaqOojM lmlvjMRrd0riCD42T6SGqvYWx13+pZB1zCPZhmU3EiJjleS+dkWD9MIYp/X+aA4G2+jZ YVwyZlKxWQDXFLuqT903ro4GJiw+gpBuJA3rKw5PPQdBC8QlxCdYA8H/QdVa/lWEZH0z Q2tw== 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=9pqMDl3wSO2+ymDADL+kuIzIjL3nSN2IgBaJl6HE3Zo=; b=GzyHl68E9xQJ2N49MxBjGKB/mDHyRNEexdH3SqkYsTHwU8FbB+JxohzuHW8cE3q6GY D5FXODyURi+byrLi8z/T8kSdzhNZSKKHsoQXOYXu0nIECoZdb00Hqy41+d31dpvLTJH+ 67zBf4xdFhQr870rXFcG3T8alrr5BCsMrZMm7cFsQMKWv1y1u2xT8iES+DYxtKV6HKOM tj9m5Ehz5/E12D1FrXPivNeSldCDJeLVGjfuc7nLh7CPMDyHuJ9UZJ+zpRXyW8eSA2n2 SvUfqhqY0zw0/HlsK/ATgfqCzCeNiOn0+CiNpkrXjhxc7XLQRvoGvAluB6/cfv2wGUob SAIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Hj54K/jj"; 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 g11si7979526plm.390.2019.07.12.05.32.40; Fri, 12 Jul 2019 05:32:55 -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="Hj54K/jj"; 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 S1729092AbfGLMae (ORCPT + 99 others); Fri, 12 Jul 2019 08:30:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:46380 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728624AbfGLMab (ORCPT ); Fri, 12 Jul 2019 08:30:31 -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 B41652166E; Fri, 12 Jul 2019 12:30:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562934630; bh=LBmyqgbnBKkr9u56Jmv6B6Cb4CS4Txs8SH1cF9sv1D0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Hj54K/jjRyPiCnlds1FnVCS9mL4CnyGbErP8MBMPVqrwlZA4qqZJwwFYn4snNoTz+ tbIhgUKZ6jIaV2hgDuSEr+TpqvRxQy1YDrtERL8i6dokWcZ8nOR46ufhEkRMt5022I fhQgr6MX5WveZ+ZPTsZCOKJjMT0eq3ebGst5O9+o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nikolaus Voss , Heikki Krogerus Subject: [PATCH 5.1 116/138] drivers/usb/typec/tps6598x.c: fix portinfo width Date: Fri, 12 Jul 2019 14:19:40 +0200 Message-Id: <20190712121633.200574579@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190712121628.731888964@linuxfoundation.org> References: <20190712121628.731888964@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 @@ -41,7 +41,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,