Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3020941ybd; Fri, 28 Jun 2019 01:19:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqx23JuOO8pmJ42fOugj5qyfifqfO/ch5UTVNziG3OvXc3++chiC5M0lKJySqmT9+Dv5Sq/3 X-Received: by 2002:a17:902:4623:: with SMTP id o32mr9840304pld.112.1561709959172; Fri, 28 Jun 2019 01:19:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561709959; cv=none; d=google.com; s=arc-20160816; b=0KcgCC899rmCnXIgSJlYvsZnBSvKi9mLN8k6J8qft/MLGrF+FQSfgqdtgaEYHpnQgP ns0Q4kqEhVrQLBMHJo1NwKbAxik+lUwAB1GBnDkrX3ZQRHH5h8e60lP236f2xtq1dLu+ eaGVUpWTVzsafmjqc5UCr4NdF9ip5foCgkJP/6F484uAqnAxeYtM9BtuBW7XR1GgzoRm T680cdrq2uAaxbRcs4cqGTcq5wW96tApjE/liNkBKfyB7v6Ji09UkHaliYiMbPR/0006 qaOsKuEAxtOQBzM+Q7keP2Bu0kaeau4M+zLYayGHawWp/LqsPa1Ov7mKk8PUzh2qDFhK 6thA== 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:dkim-signature; bh=c5ZLm0gCllqmuw+vM2KsHkLCNdXwACLh2RuOW41yxA0=; b=WVNNlHxetPxZRLKzMFbAYT1KVqp/NWJUbWrEzNfAowVcvi49kO/XwWrY7yYRf3s1bh cFIjaCsi/yxiWiW/tgo04UVX7duBKccdWi6NjZd9JcHcZVevETHMKFbtpl376WeeKd5n NsYQVTOFT2ogaWWccR7zBo64jxxpH/k5vOfi/vR7YJ+bTjGFGoJdV5w2hbFCopedhe+i omTlO+yJyYGumI95JxrFXSQEZenpTleM795U4ctkgrBon5p84mC5FHBDrLgdg3aj5p72 toXkVNZZrrOvyBlv7ZX3qXGx+pZriuFPh5Lob0sfaZja7GT4e0JmmetqG02tHAczU6Db UTdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="iVgpQl/o"; 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 s37si1583585pjb.16.2019.06.28.01.19.03; Fri, 28 Jun 2019 01:19:19 -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="iVgpQl/o"; 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 S1726557AbfF1ISu (ORCPT + 99 others); Fri, 28 Jun 2019 04:18:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:47012 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726416AbfF1ISu (ORCPT ); Fri, 28 Jun 2019 04:18:50 -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 16C562053B; Fri, 28 Jun 2019 08:18:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561709929; bh=rD2QnGgrojSpM34ae6AihudP5kCQ6TOlihTyO5800L4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iVgpQl/oCK/abO+hiHK3IBZZy0vSILVWOWrnX7bEDka90LJunF1vtPkbDftREZclb aL/liw82kdvmjvPL2rTccAG5hfoUiGgrGOfabTTEXXrUP+C+rtEXbXDOAUtL6KYb2P dzzXkCttQAgBPsbSySsMmclwCY3di6UMG6iZNyFc= Date: Fri, 28 Jun 2019 10:18:46 +0200 From: Greg Kroah-Hartman To: Nikolaus Voss Cc: Heikki Krogerus , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, nv@vosn.de Subject: Re: [PATCH] drivers/usb/typec/tps6598x.c: fix two bugs Message-ID: <20190628081846.GA19778@kroah.com> References: <20190628081235.19205-1-nikolaus.voss@loewensteinmedical.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190628081235.19205-1-nikolaus.voss@loewensteinmedical.de> User-Agent: Mutt/1.12.1 (2019-06-15) 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 10:12:35AM +0200, Nikolaus Voss wrote: > 1. Portinfo bit field is 3 bits wide, not 2 bits. This led to > a wrong driver configuration for some tps6598x configurations. > > 2. Writing 4CC commands with tps6598x_write_4cc() already has > a pointer arg, don't reference it when using as arg to > tps6598x_block_write(). Correcting this enforces the constness > of the pointer to propagate to tps6598x_block_write(), so add > the const qualifier there to avoid the warning. Please split this up into two seprate patches as these are doing two different things. thanks, greg k-h