Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp701413imm; Fri, 14 Sep 2018 05:10:22 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb7WTuj38oicrbcEF+LOoQxRXQDx82Q3PW0s/Px0Ce8XXxlkDfUAT+bZQwjS21Yrz/B7ck5 X-Received: by 2002:a17:902:7683:: with SMTP id m3-v6mr12164419pll.255.1536927022115; Fri, 14 Sep 2018 05:10:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536927022; cv=none; d=google.com; s=arc-20160816; b=cHT19Wa78xdIvv8lqAAEF27j0nOuKjV+Pmbpbr8X2aKzsS3/zP12gf+nQnhlwtZ2Ei 89cM9/iR3hD2cHdxqJCK1PsFPMYypvsCXUhAhHqs150rHxyVkWvh/utMgzvsXylRuKJN k5KZC5tLXpOIWo0ryOyZ/KlethiCdXJUds7mCdpXsMw/JT9/bVxTR2oITTz8KCIcgq/Z n2/sHEN+wRCYyfEC7+fABvumMuwQn5QKBILYoLBIJYaFw4XtG8A/TH3bmO6oYsm9zXz8 lCh2Cu0xhbDaUNyRnXqup40kjo/VghBeYXd0hIkrve3Ht4hwdHO4bSUlgKfCjR6WQ2VV EtZg== 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=u4mrFzQch0+fNESchU2ZODdGxUaktajvU+olTbZQQCI=; b=dRkiF7azJAg1gRIu7f4/tXH+MPgXTy/+rsIMt9DbayhS9LHVsr1JlAl5SZe+TBYbe3 W2w/ZEbGClQd9IK9qC4/vteHt4xfo/kVMxDIbMzhRKl5gWsWVONwtu0Gax44tGQW1Jx7 zp51oeHI3vOSK1lP7jWRO5ABODcXHtIx4Z9obOdVGS9H4d5Dbip4S0ncL7q/RG+jCYLD TLC2aQQtp30AsJqKGxVa/j7L37ZtpDCVWZEf6itwwJVXtECi4j0jTRVaPvyTft+29PSb elQybdm8E8BQlNsioB4iIiwNs+I5ja28HNHWpk4Tx8/DnD3Gw3tBKpHm9Cu8LKRYEnJi Q1AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fKV3fAzH; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z71-v6si6771662pff.223.2018.09.14.05.10.05; Fri, 14 Sep 2018 05:10:22 -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=@gmail.com header.s=20161025 header.b=fKV3fAzH; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727749AbeINRYL (ORCPT + 99 others); Fri, 14 Sep 2018 13:24:11 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:40078 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726905AbeINRYL (ORCPT ); Fri, 14 Sep 2018 13:24:11 -0400 Received: by mail-pl1-f193.google.com with SMTP id s17-v6so4119087plp.7; Fri, 14 Sep 2018 05:09:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=u4mrFzQch0+fNESchU2ZODdGxUaktajvU+olTbZQQCI=; b=fKV3fAzH+C4kXo8xJIs8JjdIkNZuw8XrKt7hFm4+z2ny/tKxQ3pmwWkOqB1vSYwkzo vwr3HbUjMxtBamFc8L6FdK9kxC4LwJ1syComG2S8IzjynmcIbvJxrn6qeI1Vh3WDHT6a xErp+iWiNEUJ+6SNKB+XH4ifThNe0Oip1KkzquOjHAY0llh9BC4B8ADHVaaecvO02NjZ CtxDABd8hi94TQdWbugk7nrciVV6I2ynFzNcUPnGtjD0/oT8VOiaYYX3x3FwqB95AK5D ktp7tc2JxB/E055xrZpETKLobL6ndCHBQLl/N40yBDn7YyZSQTF51fAoLLObacU/P4NL hvAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=u4mrFzQch0+fNESchU2ZODdGxUaktajvU+olTbZQQCI=; b=A86kvfAne5BbKN+79Vo4XeJRx92xpLCCI/g2yarD6wK9dp1aaHkZskbMNeWi2iNjdQ k8cMNA68Rqom0L6BhKZzt7eHPB90y8AVLIErxbqao7xj/VkO8bfpMnJ1KiVKKVwf2rn1 +XT3HJs4hr9PTpTO/uW/fb3wxXPwnl3Y7vyq8Lsxrk2rMDTWHFmnEs5uixh7eFAlzqwD KiPl6Qa2n7l/XVhXzARpGYxIoQf1jDVLIAu/YKz8+36uAWeQaRwiu1x1eyyktP+dhNy8 qc/FZSdFSzg6AC/NQiZC0if7PlnrUAP2v/9LjgyRyvl4lfTo48Ay6v4UMcuMZqz/30AX K66A== X-Gm-Message-State: APzg51BP0updN4DCl3LeADIdx/ibCt0FPArMKSATpSeVOc5AvmWKUEwH zdmP2qf/fMv837SQAM+H3rM= X-Received: by 2002:a17:902:a716:: with SMTP id w22-v6mr12053146plq.334.1536926999082; Fri, 14 Sep 2018 05:09:59 -0700 (PDT) Received: from himanshu-Vostro-3559 ([103.233.116.134]) by smtp.gmail.com with ESMTPSA id f75-v6sm11572424pfk.85.2018.09.14.05.09.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 14 Sep 2018 05:09:58 -0700 (PDT) Date: Fri, 14 Sep 2018 17:39:51 +0530 From: Himanshu Jha To: Song Qiang Cc: jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, matt.ranostay@konsulko.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Song Qiang Subject: Re: [PATCH] iio: proximity: lidar-v2: replace i2c block access method with the one already implemented. Message-ID: <20180914120950.GB6465@himanshu-Vostro-3559> References: <20180913035145.28056-1-songqiang.1304521@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180913035145.28056-1-songqiang.1304521@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 13, 2018 at 11:51:45AM +0800, Song Qiang wrote: > This driver tries to access a block of data on a i2c bus and it tries > to manually make a device command frame and a consecutively read frame, > then uses i2c_transfer() to read data. But this has already been > implemented in i2c_smbus_read_i2c_block_data(). > Sorry for not having this device by my hand, which is a little expansive > for me, but I have another i2c device and tested with both i2c_transfer() > and i2c_smbus_read_i2c_block_data() and they all ends the same. > I'm not familiar with the SMBus, don't know if the lidar_smbus_xfer() > function is the same as i2c_smbus_read_block_data()? The original code > is commented with something I'm not sure, but I think if it's a standard > SMBus, it should be able to use in here. > Hoping for someone to explain. This is not how you write a commit message. https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes > Signed-off-by: Song Qiang > --- Your doubts/suggestions/rants all should be here just below the `---` line, so that if maintainer applies the patch then your queries doesn't get included in the commit message. And no need to reply an explicit "thanks". That is implicit ;) We already have a ~30k email traffic on LKML... https://marc.info/?l=linux-kernel&r=1&w=2 Thanks -- Himanshu Jha Undergraduate Student Department of Electronics & Communication Guru Tegh Bahadur Institute of Technology