Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2015494imm; Tue, 10 Jul 2018 11:38:13 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd6xiYRvFPEoOKtFCu5CU1f2cyS0AjQZWQsqmXUmmgy+oOhNbTGVdbOjVG3sZl+9X0FOKCY X-Received: by 2002:a65:448c:: with SMTP id l12-v6mr1743922pgq.277.1531247893270; Tue, 10 Jul 2018 11:38:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531247893; cv=none; d=google.com; s=arc-20160816; b=RWdAsXCAQAABUS7ZShT1hNLK12puQNNCXLMBvW6gtJHCI1Igbu9wqk2wFM0WOz0BUh pkImtTwoezWNNl0fApMMgoB19DeeU7r0KMj3oWgXoJSCucstGYHyxDQJApSGJsX7IVTb m2uNgMLCZ0OTvh3M77sw3MO4lMEhGCAlNnu4najna1Rc90BgXYAl1ZKE/23XpLkTf+yK Bi7qwMqT+ihmBWsKryAgWxqZqIfV5f0emda8EOgxT5TL6W5cTYRNKGi6M9nTNGVLmA7Q Y78wWrmxIXnm0yqHXD1l+39k3xBlko3vQq89v/lgM3WJmO2EAeHD9TuS0M6MHIC3RZ/J SkCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :from:references:cc:to:subject:arc-authentication-results; bh=CVye5+ayMkxpsob1+kGfw+2HvL+zElY83BCvdgTjsao=; b=jSdu/JNF4V3ee2+RLtWB7S+v8chC2GdXbhpO36GdNT6BLWy1uaRrL0HJZz9bCSFqgU OAWqh0tzeOrpwyxG88xDlg4lOx07MMhamr9XcqjqU97BvFPBngaCI1tLWS8pHc1vYgmY SKEfzJUArVTGjskBIclAqOfO7HL7fsPEdGQBnZ0pp/RvEbyIZlEjqneEr5vhmnm/vRse UDF7cKxGSAyWP2Y0JxoMkXz4svdiaBFu+P9JRH8lFiFsj8Lvvckf9RpBMACjczW5BAY+ NFmhaJN0Keac0mTY3pgiCcckAiTewoV87D7n5WDPNu4YR4qlYwiAWudORetF4MdbuLy+ q0vg== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y20-v6si17319201pfm.186.2018.07.10.11.37.58; Tue, 10 Jul 2018 11:38:13 -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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389891AbeGJSga (ORCPT + 99 others); Tue, 10 Jul 2018 14:36:30 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:60322 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389851AbeGJSg3 (ORCPT ); Tue, 10 Jul 2018 14:36:29 -0400 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w6AHnJB6061953 for ; Tue, 10 Jul 2018 13:54:02 -0400 Received: from e32.co.us.ibm.com (e32.co.us.ibm.com [32.97.110.150]) by mx0b-001b2d01.pphosted.com with ESMTP id 2k4xutbf41-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 10 Jul 2018 13:54:02 -0400 Received: from localhost by e32.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 10 Jul 2018 11:54:01 -0600 Received: from b03cxnp08026.gho.boulder.ibm.com (9.17.130.18) by e32.co.us.ibm.com (192.168.1.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 10 Jul 2018 11:53:57 -0600 Received: from b03ledav003.gho.boulder.ibm.com (b03ledav003.gho.boulder.ibm.com [9.17.130.234]) by b03cxnp08026.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w6AHru3v60817454 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 10 Jul 2018 10:53:56 -0700 Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2FD786A05F; Tue, 10 Jul 2018 11:53:56 -0600 (MDT) Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EB7CE6A051; Tue, 10 Jul 2018 11:53:11 -0600 (MDT) Received: from oc6728276242.ibm.com (unknown [9.80.208.154]) by b03ledav003.gho.boulder.ibm.com (Postfix) with ESMTP; Tue, 10 Jul 2018 11:53:01 -0600 (MDT) Subject: Re: [PATCH v11 5/8] i2c: fsi: Add transfer implementation To: Wolfram Sang Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, benh@kernel.crashing.org, joel@jms.id.au, mark.rutland@arm.com, gregkh@linuxfoundation.org, rdunlap@infradead.org, andy.shevchenko@gmail.com, peda@axentia.se References: <1530816030-13010-1-git-send-email-eajames@linux.vnet.ibm.com> <1530816030-13010-6-git-send-email-eajames@linux.vnet.ibm.com> <20180709224114.4h47enyt4tucqcou@ninjato> From: Eddie James Date: Tue, 10 Jul 2018 12:52:58 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180709224114.4h47enyt4tucqcou@ninjato> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-TM-AS-GCONF: 00 x-cbid: 18071017-0004-0000-0000-00001461762D X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00009346; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000266; SDB=6.01059403; UDB=6.00543709; IPR=6.00837324; MB=3.00022090; MTD=3.00000008; XFM=3.00000015; UTC=2018-07-10 17:54:00 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18071017-0005-0000-0000-0000880A4502 Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-10_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807100190 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/09/2018 05:41 PM, Wolfram Sang wrote: >> + cmd |= FIELD_PREP(I2C_CMD_ADDR, msg->addr >> 1); > I just noticed this and wonder: Don't you need the LSB of the address? > It is not the RW flag, this is encoded in msg->flags. So, the hardware interprets the LSB as the RW flag. It wouldn't be possible to have a device addressed with the LSB set on this I2C master. > > Also, no seperate handling for 10 bit addresses? Technically, 7-bit 0x50 > is different on the wire from 10-bit 0x050. This is minor, though. There > are no 10-bit devices out there. Still, did you test 10-bit support? Indeed, real 10-bit addresses require some additional manipulation of this I2C master in order to work. We don't support it right now. Thanks, Eddie > > Rest looks good. >