Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp262204imp; Thu, 21 Feb 2019 00:38:22 -0800 (PST) X-Google-Smtp-Source: AHgI3IbSKz/HrxLwvCGY+oxRbZp0zo1bTG4CorLxI0CbwjiOWe/ZLCLtPlYv7BZarcn/+bIqRvmE X-Received: by 2002:a17:902:b609:: with SMTP id b9mr20720410pls.134.1550738302128; Thu, 21 Feb 2019 00:38:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550738302; cv=none; d=google.com; s=arc-20160816; b=Y9GzxpzMZTKSKAOGu6m0xRVCmExx3XWC9qt8gbpFBWh3gp2YhXl+vO/NqHTBv0gJfe tGDyZPZWLxP4AR4s5hWDYpMLAFXGTfCTC/lVWLjiQBRD0qhVeanYMRxFPpvMgaP0ICui vR4wP68Kg7rschZSJn7njh4ESAaY4G+sk45NE54K18pZHzk1KeMtiR7mU+xO4ZYFhL01 P3iC+6o/kRzk4xCKBXzquNNVpSV89aWiS0TcED6a+If8K+Yto+yXmzjo/+enUnKctkSy nGyMgyWeqF76Xb9UlE8vX43ThMJp5dA16Lldxvhe5uQ+yWtosOExNAobNjL9QRrHnk/J 0pNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=rjOk6cZoH5za3MVit/StmWpbLOIe6j6xnBE5p41HHqg=; b=brwCTygpc/dShExCgnA/BqUVTJyvk+IuaBiLWNyicpdEtk/sJ2FzDrQ/kKyGq6lF49 Kxef8vvqmE1fCkMGVXuc2BwrrQGdo9AVXFsaTlrLxOWk+y0saIrr7OmPqLtIvQ8dA3sP Ly1VjpFiz5DxPfjJ7eIXsfJRlpXFJHnmYM/ZWPQkLR0JrzMrelZEU9PJXrUdhWjif+Nz CxwkAV1XeoVx5wIRFvQqdFJBiZhe61sjdxkIEI6E3o5g6xbha5ihHU4nkFi265hYiwPG +YTXWc7L/fpi0eZqXxK06Os9ZezV7L9uAxznDkUW6xn3no9Z1wLHc4SCR9gwid+Mrqd6 +QPg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si22059766plv.138.2019.02.21.00.38.06; Thu, 21 Feb 2019 00:38:22 -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; 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 S1727046AbfBUIhh (ORCPT + 99 others); Thu, 21 Feb 2019 03:37:37 -0500 Received: from mail.steuer-voss.de ([85.183.69.95]:46268 "EHLO mail.steuer-voss.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725823AbfBUIhh (ORCPT ); Thu, 21 Feb 2019 03:37:37 -0500 X-Virus-Scanned: Debian amavisd-new at mail.steuer-voss.de Received: by mail.steuer-voss.de (Postfix, from userid 1000) id EE6174D00E; Thu, 21 Feb 2019 09:37:33 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.steuer-voss.de (Postfix) with ESMTP id EB0564CFFE; Thu, 21 Feb 2019 09:37:33 +0100 (CET) Date: Thu, 21 Feb 2019 09:37:33 +0100 (CET) From: Nikolaus Voss X-X-Sender: nv@fox.voss.local To: Greg Kroah-Hartman 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 In-Reply-To: <20190220162214.GA2017@kroah.com> Message-ID: 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> <20190220162214.GA2017@kroah.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, On Wed, 20 Feb 2019, Greg Kroah-Hartman wrote: > 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. we are a medical device manufacturer and our prototypes run stable kernels because our main development goal is the patient therapy. However, what I do check is that my patches apply cleanly onto Linus's tree and if I see any other changes of files my patch touches I rebase and compile. I'll try to always do the last before I submit a patch in the future but testing can only be done on our prototype branch (with reasonable effort). Nikolaus