Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp681156yba; Mon, 1 Apr 2019 14:37:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqxy7l+OKAsNDNESzvfiKZFd5FgMJuxmSfPxMHlpwUClqH2lpDaynZTrgsPyamDy+PVDoFQC X-Received: by 2002:aa7:8458:: with SMTP id r24mr30947009pfn.231.1554154652085; Mon, 01 Apr 2019 14:37:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554154652; cv=none; d=google.com; s=arc-20160816; b=SfgHMF5G3/5mDYGtUV0tg3ty18wC+nbCUufxVfgOXF1t+iNgBPLKG4Kn7y9OHdyU5p VDASrn+X7VYCjsXpOYfklqIaV8QtWbbHhmSGLKT5Z5L+44siiZj6UvsOyHz7t03di3J3 +7nt/s3vN1GvC5OPs/sCtoIgwopyvzr0fOewurd1Z8Mlm6sG422l6hxNLPqJBocZXTyw 335F0NhxLMtTmz5E5V+dyJa43uT1HRYbcJ+TpM/RJbN9vVCV3VgJlTXAwT7WudcUHsiV Rawsox+dxWQ42Vdn9R6SDPM7ZHHmkbC3vwHwMMvYSWzhK08J9rCvG2vnGc0dmk/XI4I3 at2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=WcYFxlU9bdthLYIkwreKbLvVDGvlwPgcLrSJxtq5PvM=; b=x8ERw7b8zvt800sQcr3NrS3T+Sw4o6Xbe1fSnAJMVtwrjNE2IBsD2APL4qU8N+lfvj iVn/pgaGMTLMIGAu9VP0jfsv5J3CSe9twvduyKG6kKEeWbuOcGigLIkb8f4WTt7Pqj9k 00q6xk75UAfWxGnmF/KVjTBGBvMvThPUpfG0oHRKEdymM9cW2pVMzXVUIHNo9nqtriBX q1FHTOWdKigYHb5nPzIi7KBPK3aDUANP7VS/nUQemsPyE5KIoPgKtYOjwGpL/sTWoQSD TYqC2XtgXbbs0diMhrUl8/qUfqbXA55MLe/uyHERuWRqjbYkILFy14YAx6DdBQPVrTiG kyFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=ZuCNYAXm; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v9si9369263pgr.462.2019.04.01.14.37.15; Mon, 01 Apr 2019 14:37:32 -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=@broadcom.com header.s=google header.b=ZuCNYAXm; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726864AbfDAVfV (ORCPT + 99 others); Mon, 1 Apr 2019 17:35:21 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:39328 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726284AbfDAVfV (ORCPT ); Mon, 1 Apr 2019 17:35:21 -0400 Received: by mail-pl1-f196.google.com with SMTP id b65so5120982plb.6 for ; Mon, 01 Apr 2019 14:35:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=WcYFxlU9bdthLYIkwreKbLvVDGvlwPgcLrSJxtq5PvM=; b=ZuCNYAXmRwsdaf7E4pB8EAuHKWU8sS9BDaU96TmHruCZs8ICFPddXXrWlo6n1ef106 Xxom8f9twErNRrX8UXiCQ2owTE5vTpxNFuVe4yG5UejCoYA3zFlorleQX2tsrUooZNWk pP19B1AFFRGBOHtQmEpe+bUfA6eDSrj1bGvus= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=WcYFxlU9bdthLYIkwreKbLvVDGvlwPgcLrSJxtq5PvM=; b=D9ZZj0TNsgVtDphRSqXZxTCwN/wdgFwZhNK+fMJdDZvFlh25TgBR34DC2R5nV9o93+ qmvmz2jcjHgUe9iFDbI2mpZqmJfdv5jWEpw2+1iHDDuGAwYd/kVGtgk7niwQLfu/Ytzf pwotPO1Gw1BQ4xSmzr9IJUY1W6jI8A6pFbgqrK6iE10NnO9rr50Hhqt6gImplPKWokqF H0NSfsE1XVSX0kCRx2cA3kGAaVwzB6CKGhRiE0xVCTB5cjNLwsMbCf2I/9yu9FR9UH6D kkgRWBsoP28wD/zjfinnSAClX8T2+KjU9m22sRZhnL4BEfASmJY+uKSkEbn0cCZGMyfy HPOQ== X-Gm-Message-State: APjAAAXJmbapodAbYoE8xBcdy3g8sUkBry75eQKvolxAgW1ollSQj6VR yjR/S/nlHw5qYG9NMJvCFRinwRupwQXuwg== X-Received: by 2002:a17:902:7589:: with SMTP id j9mr1627952pll.287.1554154520714; Mon, 01 Apr 2019 14:35:20 -0700 (PDT) Received: from [10.136.8.252] ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id c134sm22369287pfc.87.2019.04.01.14.35.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Apr 2019 14:35:19 -0700 (PDT) Subject: Re: [PATCH v5 1/8] i2c: iproc: Extend I2C read up to 255 bytes To: Wolfram Sang Cc: Rob Herring , Mark Rutland , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Rayagonda Kokatanur , Shreesha Rajashekar References: <20190214175725.60462-1-ray.jui@broadcom.com> <20190214175725.60462-2-ray.jui@broadcom.com> <20190327221732.GB15396@kunai> From: Ray Jui Message-ID: Date: Mon, 1 Apr 2019 14:35:16 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.0 MIME-Version: 1.0 In-Reply-To: <20190327221732.GB15396@kunai> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/27/2019 3:17 PM, Wolfram Sang wrote: > >> + if (!((readl(iproc_i2c->base + >> + M_FIFO_CTRL_OFFSET) >> >> + M_FIFO_RX_CNT_SHIFT) & >> + M_FIFO_RX_CNT_MASK)) > > Don't be too strict with the 80 char limit. I think the above is hardly > readable... > Right, that makes sense. Will change to make it more readable than trying to be compliant to the < 80 chars rule. >> + break; >> + >> + msg->buf[iproc_i2c->rx_bytes] = >> + (readl(iproc_i2c->base + M_RX_OFFSET) >> >> + M_RX_DATA_SHIFT) & M_RX_DATA_MASK; > > ... this here is MUCH better. > > Rest looks good. > Thanks, Ray