Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp752088imp; Wed, 20 Feb 2019 08:23:01 -0800 (PST) X-Google-Smtp-Source: AHgI3IYJU4e0oDsXDW8/kgKvFi3KU3EKegRWz+thM0VM/PRz1roA+602/d2Lp+C9Q6me7C6STu8E X-Received: by 2002:a17:902:8f81:: with SMTP id z1mr14985947plo.265.1550679781894; Wed, 20 Feb 2019 08:23:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550679781; cv=none; d=google.com; s=arc-20160816; b=hZn6GcL+p6ZOHzbO+u97oR5ZoVWZsHV0fbOwu/83HjRr2wiOv49ypG6fIH4MklNZTV ANjfP5RXeIsm1h/vTeKIVwO08360Nqh3S57G9uA1jjfJ/t4qR2uXxmICbbjJQ4Cgepfl 1RDSMse6o21U72IAtm4xZzh5NvDKtRqpuw9lMnCTkgp2gmkk0tza/CohODtBgc+Arll5 nf9Kv6pLfntjjWDqzMiqU4hn6UlbhpmKE1SNtxnr02D7h1wJijMQ2QJ90qVOd9VTC855 vyPlb/uLygECnVawPQd6wVcBZM/TUQt4QF8Ev0acXTUEDE4XAOVme9OpYmR31BL9rN9t SnqA== 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=WWFHvYFu4rClYT1pkaXI5ej/e2+0KuC1tZxFQIWLtk4=; b=oM1Zy0d283j+iP/nxL3I4WhtTCahuMPRgLQIGao4jPTz+FQ2gHnkpLWZZNwPpy7fSw 5ZpnojIzm3hQ5WpcQ3zZfVY3elZXMIR45MTiyvXZKubCSqoKDV+8bT2MP58fczUR+yGj Tnow5Ncb/fPCs9es90D7Y1ldEDvvyaJX0GlXfM+eY3dLxyrzhBh6VbqedC8CxqkawcB0 JEyK55Pp/chKpSFRhYSCQA+kQ0XLeehBLCghk1IeGxy2eRX0tMVQLau3mdSEqFUHvfQJ ddvtBCHNDl2D+f0hOdmFp0uiBz895RM3Pkw6OrmtZy6HU+gG10gktShSt5RsVx16gg1c SXOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=szbFMox9; 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 d12si19323415pfd.183.2019.02.20.08.22.45; Wed, 20 Feb 2019 08:23:01 -0800 (PST) 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=szbFMox9; 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 S1726462AbfBTQWS (ORCPT + 99 others); Wed, 20 Feb 2019 11:22:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:50276 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725836AbfBTQWR (ORCPT ); Wed, 20 Feb 2019 11:22:17 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.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 C91892146E; Wed, 20 Feb 2019 16:22:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550679737; bh=fhYMzW8a8EF9pe32EJElYf1tc9spgS9Uz6UOvPJERAs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=szbFMox9vttCEethehu0Ekvfn7uE5GK2Mbos/gLnWVfF9C4dM6n0nZ8ZcheUH7QPM 3newzFKmHa/hXQzMt6dL/t4jgqXYC2B6A6k0KZyLT96daIRFV8D52I0BSWwIuwMhxy Khs1K5vsv37jNqKJYXa6DcZX/7hs1rEFTyDL7Xiw= Date: Wed, 20 Feb 2019 17:22:14 +0100 From: Greg Kroah-Hartman To: Nikolaus Voss Cc: Heikki Krogerus , Guenter Roeck , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCHv2] usb: typec: tps6598x: handle block writes separately with plain-I2C adapters Message-ID: <20190220162214.GA2017@kroah.com> References: <20180425142209.30745-1-heikki.krogerus@linux.intel.com> <20190220110017.BFA344CE86@mail.steuer-voss.de> <20190220125731.02E274CFE0@mail.steuer-voss.de> <20190220150227.GA17103@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 20, 2019 at 04:22:00PM +0100, Nikolaus Voss wrote: > > > v2: fix tps6598x_exec_cmd also > > > --- > > > drivers/usb/typec/tps6598x.c | 26 ++++++++++++++++++++------ > > > 1 file changed, 20 insertions(+), 6 deletions(-) > > > > > > diff --git a/drivers/usb/typec/tps6598x.c b/drivers/usb/typec/tps6598x.c > > > index c84c8c189e90..c54b73fb2a2f 100644 > > > --- a/drivers/usb/typec/tps6598x.c > > > +++ b/drivers/usb/typec/tps6598x.c > > > @@ -110,6 +110,20 @@ tps6598x_block_read(struct tps6598x *tps, u8 reg, void *val, size_t len) > > > return 0; > > > } > > > > > > +static int tps6598x_block_write(struct tps6598x *tps, u8 reg, > > > + void *val, size_t len) > > > +{ > > > + u8 data[len + 1]; > > > > I thought the build system now warned when you did this :( > > I must admit I'm developing on 4.19 stable series, so no warnings... Ick, no, you are 6 months behind where the rest of us are :( Always, at the very least, work off of Linus's tree. For best results, work off of linux-next. thanks, greg k-h