Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp264689imp; Thu, 21 Feb 2019 00:42:34 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib6B5spzigEaa/BYmpNx5d9GfUGjtvaC6WDbacS4toGuszZvWXZtE5v4ibv9OQO3D1wHLWt X-Received: by 2002:a63:6cc1:: with SMTP id h184mr3053449pgc.151.1550738554373; Thu, 21 Feb 2019 00:42:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550738554; cv=none; d=google.com; s=arc-20160816; b=AhTp0499lXhb8NQ+kWcsdFvGbQnWHlFcH17JAUyTjcDsql6S069KIjlMObq9s4TFZ+ lAf/Wr6eZnD8qqPuZ0C+2xmFO8hjNApzDgJrltcIGB+Ja+ajQcVEX0spT8rmAnn6PO5U azXcP9RJH1TovfcbgJa4WFbA/uugZ1Sz5hHFUwmLoqIYV7bB+41QAWHkqGdNvLdTa5Co F/W7ujlUtBeKkwGERKHnl8drRZE07sEaMkx0dUUEXf0PROCIkg9xil8+JN654kKb5or2 zSZD4D2xuEt3eYbQ/80kp0Yz4fRadMcjHNgvyQcsHeIG8mp0X5g/OjV4jh+X+HzCFqqh F3AQ== 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=oNxUfKWqpCrP3/y/SykyO9vF/i1A2oImgLP28m8yq64=; b=nMH5eOOOrzBjRSlbfhbW9zhDWgwGnay1gAWBA9HQmbCqTcMN8sC535tDctURF+ZFUT A8vHJocwPdB5dFcdiXpmC5xgR2uSXaULpTTOXNfg7DRqNTlVkYBbH9Kz/fS3tyotQRZQ gvEiBTu1Rn49taYMdyxLriajGdxRcXQXw7phLG5uy5B65MkWBVF1yBTGALMuR9HjDJId HZAGOfCaTiuTXLK+IABbi9jA1JI/bXBKLchhbcYXq/yVWiQaBe/lnTUOvEQMFEhiJmN+ l3IT5O9VpRn976Jrd+GTmiqNjUBQx1VEY2WZQB86O0/Rn/+DgI82qUAL2d2J4gtqv4Mt vHTQ== 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 n32si20386500pgm.439.2019.02.21.00.42.19; Thu, 21 Feb 2019 00:42:34 -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 S1726761AbfBUIlr (ORCPT + 99 others); Thu, 21 Feb 2019 03:41:47 -0500 Received: from mail.steuer-voss.de ([85.183.69.95]:46390 "EHLO mail.steuer-voss.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726354AbfBUIlr (ORCPT ); Thu, 21 Feb 2019 03:41:47 -0500 X-Virus-Scanned: Debian amavisd-new at mail.steuer-voss.de Received: by mail.steuer-voss.de (Postfix, from userid 1000) id 689274CFC0; Thu, 21 Feb 2019 09:41:44 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.steuer-voss.de (Postfix) with ESMTP id 675994CFBD; Thu, 21 Feb 2019 09:41:44 +0100 (CET) Date: Thu, 21 Feb 2019 09:41:44 +0100 (CET) From: Nikolaus Voss X-X-Sender: nv@fox.voss.local To: Guenter Roeck cc: Heikki Krogerus , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCHv3] usb: typec: tps6598x: handle block writes separately with plain-I2C adapters In-Reply-To: <8dc1a931-c9f7-a46a-42dc-fdcd2274343b@roeck-us.net> Message-ID: References: <20190220110017.BFA344CE86@mail.steuer-voss.de> <20190220151138.12332-1-nv@vosn.de> <8dc1a931-c9f7-a46a-42dc-fdcd2274343b@roeck-us.net> 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 Guenther, On Wed, 20 Feb 2019, Guenter Roeck wrote: > On 2/20/19 7:11 AM, Nikolaus Voss wrote: >> From: Nikolaus Voss >> >> Commit 1a2f474d328f handles block _reads_ separately with plain-I2C >> adapters, but the problem described with regmap-i2c not handling >> SMBus block transfers (i.e. read and writes) correctly also exists >> with writes. >> >> As workaround, this patch adds a block write function the same way >> 1a2f474d328f adds a block read function. >> >> Fixes: 1a2f474d328f ("usb: typec: tps6598x: handle block reads separately >> with plain-I2C adapters") >> Fixes: 0a4c005bd171 ("usb: typec: driver for TI TPS6598x USB Power Delivery >> controllers") >> Signed-off-by: Nikolaus Voss > > Reviewed-by: Guenter Roeck > > Note that tps6598x_exec_cmd() is only called with in_len == out_len == 0 > and NULL data pointers. That's probably why I didn't notice I missed patching tps6598x_exec_cmd() in spite of running and testing the driver for half a year ;-). Thanks, Nikolaus