Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp846375ybi; Fri, 12 Jul 2019 05:37:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqy9ZdZZpfX4Yme4yIWFXmiL7ojJENiKeVFaVOfPET5emqeHlen7HlGDs+SBiiMAQrS4Asio X-Received: by 2002:a17:902:6b02:: with SMTP id o2mr10355056plk.99.1562935045776; Fri, 12 Jul 2019 05:37:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562935045; cv=none; d=google.com; s=arc-20160816; b=HnpSpYDDv1TiugYcFAG8oJ5pPP7BjA/tCHqFrBYT2/0g2nrAPn9A1cvB48VNtbNzuq M0wPfargNlTd4kPFP+GMloCcuzWQLX7c6udlp3hYy7FYx/50Ix8I7Vdpft3moKCXXwUE A/mYlZ/ROOSP3UHSFLp2ju+PocYkkpsAOjSopUMJBv9Xb8lOMEe9TkZqsO2Eg/LhvlMZ 9fo80HEvMFHPVROydVVHtIQmbZxH4Ds2gPRZhC032G1P3bSDOfFgCWHTtI5MtrMaqPMe ePlYYYA4FMZXFNDtR0YTMqq+b94S5sEw8XWtyF2rBfwbisL2fPM85MLLWcOBBlHEmTu5 /eOQ== 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=gNBv8HdRRf17owkQzZy4ntBK3G6ajllvMMmJxa/ZgWsZRARR/qpoHeYj5swnMNqmA2 XkqL1zyZdKdpiXNw5hm/F1pVdmwyKyv3hXBgTkh0n92lx/eWbsw+nbusFnc9FgdQ58C/ k2YMTzkUiailWwl+1gReLTOqkQsHXysb6mJ1R657UgMNKC0EfhbK4+2iDEyTXHWr6V3K FN8E8uSVadMg+zX5NgaPBVmclKyigWW73GuH5aPyXbuzFJDB8FCeFE71mSpd2uXfh9vK fgVcUEShsQOCvs+xFXKxGZgsncmkRYcwz9qXitTEIZ4o44R0bNzB4dAwgOL+4AChQU+u +Cjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VQxU4Cqa; 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 q13si8265950pgr.514.2019.07.12.05.37.10; Fri, 12 Jul 2019 05:37:25 -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=VQxU4Cqa; 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 S1728791AbfGLMdU (ORCPT + 99 others); Fri, 12 Jul 2019 08:33:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:52268 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729590AbfGLMdP (ORCPT ); Fri, 12 Jul 2019 08:33:15 -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 A6F732084B; Fri, 12 Jul 2019 12:33:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562934795; bh=LBmyqgbnBKkr9u56Jmv6B6Cb4CS4Txs8SH1cF9sv1D0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VQxU4CqaM4lo/JV7fY2aHWtUnftCBZT358D7p5zhXAXMfgjH03Elu72AyD5DENYpW uPZwWFf81forblds5bKbJ07OxVmJK5CEw2cS8uLF4y+0ftMtIXR6AktpEAU5PAvdb0 BC8XAkRZUBksBzmml+vhGxxspm1ooXzosZCGNIW8= 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.2 32/61] drivers/usb/typec/tps6598x.c: fix portinfo width Date: Fri, 12 Jul 2019 14:19:45 +0200 Message-Id: <20190712121622.324355537@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190712121620.632595223@linuxfoundation.org> References: <20190712121620.632595223@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,