Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1548218imu; Sun, 16 Dec 2018 03:25:52 -0800 (PST) X-Google-Smtp-Source: AFSGD/X3jtrP5ZwyjKWxgLCIOKxFnG7mzst6L0pFYdfZ6TQIREQKIYUP4tsGgFQrc5iufvCo4f2O X-Received: by 2002:a17:902:4:: with SMTP id 4mr9259853pla.20.1544959552881; Sun, 16 Dec 2018 03:25:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544959552; cv=none; d=google.com; s=arc-20160816; b=ueHHfBOdjFr9aaU9WfkLQhuKaw2VkLfOwkKVRaG88KH/fiV+FW2DxCwBfwcNKAZcmr 3Ya11FpHWGUYgHQMW1TxU6JDgQlPXMmcBeRA6U0fSbnThBEcypiPcBGJIi6MD5Rm4tGm nF3bpWEgpktq1Rqfte3QKCnqCTmf72xFzfTgBE6BYSdIn1gxu5UjlsQOEGqGfwKkt4yb JJJyMO70JRtyHIboYCFT1dY+4THLU7ePdGZcbGoCIobNXIW5hA26IOJjy0sb2fQ2OSHN aYsEunULYOSI+1CuTvoNHKllk2sQYKOZVQ3Gciwgc6VpeRnF894H7BGkIpWk7wFInK2M aRIA== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=2AbjKyL9Eqgfzi4YYTf6UgCRzqCzAse5jEsSXraBfS0=; b=EG4+9L0/KdUT6w2H3JupxJgE2XpK3/gWmg48CdoiA4DdzN8mRP6qX3Vmuxsz0C9QEw aLHUpk+Mnrq9u9Tbmke0VJv4Jyn5BOVdirJ6wbWAoGGntqBJv2vQJMXufXVyHeXohnBw 7ETcpuS5PlrpBziRp3quc6vs83tXk2pyrkymFHqwnnItbZ1yk9QDXt8YBARqDO9QRYXj Mj3r/pVsDnVT3Q2RQzVFXBCIRO6H6sw9u/uRj5fFIYuQwsN9U3lQ2hfYDrjVWs0zmN2i aM9381zQZHbrgLQv+jb2/V4mARbhxnUpCB3ob4crzagF2b4sQhI9UCG+vnsCW4YIH4D7 QHvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XQbQnrO7; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g10si8115998plq.371.2018.12.16.03.25.37; Sun, 16 Dec 2018 03:25:52 -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; dkim=pass header.i=@kernel.org header.s=default header.b=XQbQnrO7; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730266AbeLPLXl (ORCPT + 99 others); Sun, 16 Dec 2018 06:23:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:44948 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729821AbeLPLXk (ORCPT ); Sun, 16 Dec 2018 06:23:40 -0500 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 225E2217FA; Sun, 16 Dec 2018 11:23:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544959420; bh=pfaUUOeARHVl/8SBswulyYjSmtIgwjgKGBuc1bMdI0I=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=XQbQnrO7AW/Uj7KDAJ0JpMQgT7SxhhiL5ov+iUbdATm0PWa9Y+DKgd9Di3Rn8Nrgv i7MsJc87IPXgJTbpZF3/jg7afC7Yrsjd1nB/wgTfwNicmzjOYZsRnzfKCPyJ78P+PP RAFqFZIC2bqvvyaTS0SowQBMhJyLJMRPBbbirEWc= Date: Sun, 16 Dec 2018 11:23:34 +0000 From: Jonathan Cameron To: Dan Carpenter Cc: Jeremy Fertic , devel@driverdev.osuosl.org, Lars-Peter Clausen , Michael Hennerich , linux-iio@vger.kernel.org, Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Peter Meerwald-Stadler , Hartmut Knaack , Shreeya Patel Subject: Re: [PATCH 02/11] staging: iio: adt7316: invert the logic of the check for an ldac pin Message-ID: <20181216112334.537f4e40@archlinux> In-Reply-To: <20181214061820.GV3116@kadam> References: <20181212005503.28054-1-jeremyfertic@gmail.com> <20181212005503.28054-3-jeremyfertic@gmail.com> <20181212081949.GH3116@kadam> <20181213220629.GB2496@r2700x.localdomain> <20181214061820.GV3116@kadam> X-Mailer: Claws Mail 3.17.2 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 14 Dec 2018 09:18:20 +0300 Dan Carpenter wrote: > On Thu, Dec 13, 2018 at 03:06:29PM -0700, Jeremy Fertic wrote: > > On Wed, Dec 12, 2018 at 11:19:49AM +0300, Dan Carpenter wrote: > > > On Tue, Dec 11, 2018 at 05:54:54PM -0700, Jeremy Fertic wrote: > > > > ADT7316_DA_EN_VIA_DAC_LDCA is set when the dac and ldac registers are being > > > > used to update the dacs instead of the ldac pin. ADT7516_SEL_AIN3 is an adc > > > > input that shares the ldac pin. Only set these bits if an ldac pin is not > > > > being used. > > > > > > > > Signed-off-by: Jeremy Fertic > > > > > > Huh... This bug has always been there... > > > > > > Fixes: 35f6b6b86ede ("staging: iio: new ADT7316/7/8 and ADT7516/7/9 driver") > > > > > > regards, > > > dan carpenter > > > > > > > Should I include this Fixes tag in v2? I wasn't sure how important this was > > in staging. I think most of the patches in this series fix bugs that date > > back to the introduction of the driver. > > I was just curious to see if it was a cleanup which introduced the > inverted if statement. > > I think the Fixes tag is always useful. For example, it would be > interesting to do some data mining to see how many bugs drivers > normally have when they're first merged. > Absolutely agreed. It's useful information even if we don't plan on backporting. Note that some staging fixes do get backported but I'm adding a note to most things on this driver to say don't bother! It's too far from 'good'. Great to have multiple people working on sorting that though! If you and Shreeya could review each others patches that would be cool. I do have one of these, but I'm usually too lazy to actually dig it out to test if there are others who are working with it more normally! Jonathan > regards, > dan carpenter