Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3106071ybd; Fri, 28 Jun 2019 03:00:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqwpyYCqbhSZ/JvVaAt4OhPAIzjDtVmMX8QrcEgykX7j6aoqe1eXLpdxzaxpbeqcRevk5YB2 X-Received: by 2002:a17:90a:9b08:: with SMTP id f8mr12143614pjp.103.1561716050851; Fri, 28 Jun 2019 03:00:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561716050; cv=none; d=google.com; s=arc-20160816; b=Z8HTtTQ3urY5DuHxp/SstnmXEOURXc70dT3BF90/ZuT8OdtbKEAz4+jTf59TOYAv+/ cxuThQWEsNl5e8Q7htWV++ZB3h5dGwD/NR3o6le0It/gb6erR6+FqSJxnT9Ple5mLew6 YhFP+HBJQCybUYCh7Tb53iZfDWx3qRA8ZMcW1l9UnptpwzmlS8dP3M+o+rsSovzchw0I 0I6VwPZ3JR/t0wrR7DkXp9hxKZzf299culNYfD1NiX2U+pNDbbE6X09VcLHQXFXpWdjb v8y5Gekr3dtDGkDTokG02hz/qgts9KF5SncKkIRfK5Ai72OMCew0ZozIb9FLFc6DtJp/ Yjag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=LQ8LU6z2dp8RFIKMydWcOP46t+wNb5SAwViLbVJOyBs=; b=Z/+M/vm52gHVnfj9G9uq3WHDlYXKkJ++Ig7ADr2az0lMWD2WFSTg2SM+2fb6X0Ewuu pNezeeCV0nLMSlEHm/qzZCZ8R1MHsw+BgAL3VZ9nUOf/G4yfHKCnix61TJC1S4w+smLd c5/TUSAo21g8RdaFeiaYddmBsvcmifr5++kDnYzOaGXBieQJeBLIVAoBldNDErfZWRCE ri7Y8H8xHezcDKKZlS8BQSgz2Kk2GQzqVd1gRP9xwmOhP1JYG5pCfWIUl1Id/0WAXds1 wOSyLyEqakplgXiRVYim+lRkPQlclqXix4G4H70HLgsQ9eeS9DIf/k0CpLc+DApZ2Vcj SyQA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h185si1789791pge.199.2019.06.28.03.00.33; Fri, 28 Jun 2019 03:00:50 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726653AbfF1J6q (ORCPT + 99 others); Fri, 28 Jun 2019 05:58:46 -0400 Received: from mga12.intel.com ([192.55.52.136]:51701 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726514AbfF1J6q (ORCPT ); Fri, 28 Jun 2019 05:58:46 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Jun 2019 02:58:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,427,1557212400"; d="scan'208";a="183657368" Received: from kuha.fi.intel.com ([10.237.72.189]) by fmsmga001.fm.intel.com with SMTP; 28 Jun 2019 02:58:43 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Fri, 28 Jun 2019 12:58:43 +0300 Date: Fri, 28 Jun 2019 12:58:43 +0300 From: Heikki Krogerus To: Nikolaus Voss Cc: Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, nv@vosn.de Subject: Re: [PATCH 1/2] drivers/usb/typec/tps6598x.c: fix portinfo width Message-ID: <20190628095843.GB21701@kuha.fi.intel.com> References: <20190628083417.GA21701@kuha.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.0 (2019-05-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 28, 2019 at 11:01:08AM +0200, Nikolaus Voss wrote: > 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 Shouldn't this be applied to the stable trees as well? Acked-by: Heikki Krogerus > --- > drivers/usb/typec/tps6598x.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/typec/tps6598x.c b/drivers/usb/typec/tps6598x.c > index c674abe3cf99..a170c49c2542 100644 > --- 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, > -- > 2.17.1 thanks, -- heikki