Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3663499imm; Mon, 17 Sep 2018 00:40:28 -0700 (PDT) X-Google-Smtp-Source: ANB0VdackN1dEt3Uw+lxrGnC+OYUYsJ0feBwCt9uDnZ/FFq1lcg5PzPHXsQqdpOdO3UAM9th4sLY X-Received: by 2002:a17:902:25ab:: with SMTP id y40-v6mr23006854pla.120.1537170028169; Mon, 17 Sep 2018 00:40:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537170028; cv=none; d=google.com; s=arc-20160816; b=qxBJ0JrTf8Nf0gGVuSaL7V7vv/7aCJ1OrT0VQ1Bd9jNehTEe5KMXg2qB6E0T6k6R4w aP/MmexJwsIoKj5wT1Y87LpqpjVx55+iVq0/7qTqmrLSiFRd/hSfIPDraxQbvLGuORmz pc7IEnojjY8qWOZigmig1WmBI0cl4REjnXYgAe6IUC1rMUYvKkSQmtusrGcgMurGXxGE 1y+fb+t2JiosJY/jZdVLiaH3J6WsYcj0nDadL1Dy+r6naSv5ZEkdTlVXnWx+IjSW1afX 9MYqhC+XFWuYZ7EOb4yJvymarfPWuarXzMmhampdwEdrlhMbqbqvQ7LufegsBKDHdtGE sFdQ== 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=aZgRiGQjRBQVs6cGrzCer3nNIY55Cpl4xvLWUjPexJI=; b=vH/nbE3lvpz7EQxyoIm5X5pwTXGJcwenhoCUjgdR4OtO38iDHzdSgKO/UGsmkN0iVM KCetZjVtTk+0ud4QLocctgF/latiGvBrRP3w1RPFYxuIObHyvgxyLt02WmlrhlqJgxwc eq998wKNyGuyar/2AEcSa80pb8GEDxM+wgg9bjtTKtzgzJKde4t/uwbK/0DLcbHXmQqA 9al5JyQnrowrAZsAUYpbhESUwRVePUT4Znmb2jHZoRaeXrGXS60c/xLZrSkv9dumzQ7x J//1VM1uzC3OQCQaO4cO9fdUu8jzHN9QE5MH0TIv712GRN6l8KH8KLF3JSkMsC9WOK8y 2qWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tzJmfrbL; 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 c2-v6si14335507pfn.212.2018.09.17.00.40.12; Mon, 17 Sep 2018 00:40:28 -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=tzJmfrbL; 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 S1728352AbeIQNEu (ORCPT + 99 others); Mon, 17 Sep 2018 09:04:50 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:43000 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727010AbeIQNEt (ORCPT ); Mon, 17 Sep 2018 09:04:49 -0400 Received: by mail-pl1-f193.google.com with SMTP id g23-v6so6994680plq.9; Mon, 17 Sep 2018 00:38:39 -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=aZgRiGQjRBQVs6cGrzCer3nNIY55Cpl4xvLWUjPexJI=; b=tzJmfrbLPW0CpHvcpJbq43738kO7NpctMUHtpPufFePztkE0zl/mEsz7khXuzZNfcM p2hBE5chl/KQlHjN/ThU9DExEZ9V+yXFw30VS7WFqplBFyXetCnly0tmbSxXq74grXsZ k2Avkejgviu1C6z2lPJWf+lkng7BSUIu0W/VP1HUJsGsOIjjxNl3coLjky9ONT0FY/Kg K/UKya2TfJslImoc/4ECt2L+2WvbkJ1rZZbV1hRrroPSx1SNGWmvKVydHhmhfEy391Vq 8gMSd/E33Wg6Ga4h+UUDUzCTwfJbzwW+6xV0kR3VaXJl08vCiAuEqi0n1kpbhcmNXM1M nTYw== 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=aZgRiGQjRBQVs6cGrzCer3nNIY55Cpl4xvLWUjPexJI=; b=GjJ9s8J1xa3+RhEj94E2yIPQpFHlIPsEfBWW3Cl6oiMVhH+FtFgU965Jof38Ms25Vr chKczaTdCHqsRNn8a7eyJ0VyFiBzI0V7N9MdQ2WWYbfqY66S5YOEpqdj2kJK00AUQFIL T51n6BjgJ15qrd32ukwQ4UUmA6fqgGGQiLnaenAuTv4n/5DK69Cx3PFxwKEobaxAYake HknMpnigjAc/OcDIsJVMiGnpaZy4X81xiDpmXLd1AwecHbARkug6FPXQh2ByIFglhXMC cAaV8gOmYNQkywN76SlNITUbD7ZH30pCbh64ld98DwzztDqwAHmyz1ZkB5dBFURtJZOq 2YSA== X-Gm-Message-State: APzg51CUB6R06mXoSnWrncdECEPPAweBkxVTtFeMgKVCsLHvN68LZpvY 07+6FfY5INCoONgJ0A9iuMfkxD+NqbQ= X-Received: by 2002:a17:902:bb85:: with SMTP id m5-v6mr23466255pls.46.1537169918808; Mon, 17 Sep 2018 00:38:38 -0700 (PDT) Received: from Eros (104.176.229.35.bc.googleusercontent.com. [35.229.176.104]) by smtp.gmail.com with ESMTPSA id g21-v6sm26093186pfe.41.2018.09.17.00.38.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 17 Sep 2018 00:38:38 -0700 (PDT) Date: Mon, 17 Sep 2018 15:38:29 +0800 From: Song Qiang To: Rob Herring Cc: jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, mark.rutland@arm.com, andriy.shevchenko@linux.intel.com, matt.ranostay@konsulko.com, tglx@linutronix.de, ak@it-klinger.de, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, himanshujha199640@gmail.com Subject: Re: [PATCH v5] iio: proximity: Add driver support for ST's VL53L0X ToF ranging sensor. Message-ID: <20180917073829.GA25896@Eros> References: <20180915095752.8116-1-songqiang.1304521@gmail.com> <20180917061933.GA15262@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180917061933.GA15262@bogus> 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 Mon, Sep 17, 2018 at 02:19:33AM -0400, Rob Herring wrote: > On Sat, Sep 15, 2018 at 05:57:52PM +0800, Song Qiang wrote: > > This driver was originally written by ST in 2016 as a misc input device > > driver, and hasn't been maintained for a long time. I grabbed some code > > from it's API and reformed it into an iio proximity device driver. > > This version of driver uses i2c bus to talk to the sensor and > > polling for measuring completes, so no irq line is needed. > > This version of driver supports only one-shot mode, and it can be > > tested with reading from > > /sys/bus/iio/devices/iio:deviceX/in_distance_raw > > > > Signed-off-by: Song Qiang > > checkpatch.pl complains that the author and signoff emails don't match. > I think gmail ignores '.' in email names, but better to be consistent > IMO. > Hi Rob, This isn't the first time I've seen this '.' issue, but in most case it was fine. The thing interesting is after I saw your email, I tried to access my account with songqiang1304521@gmail.com(just without '.'), and it succeeded! So maybe google just removed the '.' in my account everytime I logged in. I think I'll send next version of my patch with my email account without '.'. yours, Song Qiang > > --- > > Changes in v5: > > - Correct some spell problems. > > - Change tries-- to --tries to fix the count error. > > - Add MODULE_DEVICE_TABLE(). > > - Add some comments. > > > > Changes in v4: > > - Add datasheet link, default i2c address and TODO list. > > - Make capitalization of defines consistent. > > - Replace i2c_transfer() with i2c_smbus_read_i2c_block_data(). > > - Remove IIO_CHAN_SOFT_TIMESTAMP() since no buffer/trigger > > support. > > - Add information to MAINTAINERS. > > > > Changes in v3: > > - Recover ST's copyright. > > - Clean up indio_dev member in vl53l0x_data struct since it's > > useless now. > > - Replace __le16_to_cpu() with le16_to_cpu(). > > - Remove the iio_device_{claim|release}_direct_mode() since it's > > only needed when we use buffered mode. > > - Clean up some coding style problems. > > > > Changes in v2: > > - Clean up the register table. > > - Sort header files declarations. > > - Replace some bit definations with GENMASK() and BIT(). > > - Clean up some code and comments that's useless for now. > > - Change the order of some the definations of some variables to reversed > > xmas tree order. > > - Using do...while() rather while and check. > > - Replace pr_err() with dev_err(). > > - Remove device id declaration since we recommend to use DT. > > - Remove .owner = THIS_MODULE. > > - Replace probe() with probe_new() hook. > > - Remove IIO_BUFFER and IIO_TRIGGERED_BUFFER dependences. > > - Change the driver module name to vl53l0x-i2c. > > - Align all the parameters if they are in the same function with open > > parentheses. > > - Replace iio_device_register() with devm_iio_device_register > > for better resource management. > > - Remove the vl53l0x_remove() since it's not needed. > > - Remove dev_set_drvdata() since it's already setted above. > > > > .../bindings/iio/proximity/vl53l0x.txt | 12 ++ > > MAINTAINERS | 7 + > > Otherwise, > > Reviewed-by: Rob Herring > > > drivers/iio/proximity/Kconfig | 11 ++ > > drivers/iio/proximity/Makefile | 2 + > > drivers/iio/proximity/vl53l0x-i2c.c | 180 ++++++++++++++++++ > > 5 files changed, 212 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/iio/proximity/vl53l0x.txt > > create mode 100644 drivers/iio/proximity/vl53l0x-i2c.c