Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1891797imj; Fri, 8 Feb 2019 09:01:55 -0800 (PST) X-Google-Smtp-Source: AHgI3IYYFzdJvrmdaHquVPTme6CoYE9YI4lJ9AGnTFnJER9Q5/blUXH3+Ot53cHF4q3zIQmhdSj7 X-Received: by 2002:a65:4904:: with SMTP id p4mr6371934pgs.384.1549645315686; Fri, 08 Feb 2019 09:01:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549645315; cv=none; d=google.com; s=arc-20160816; b=axOjs/forUbf8/qDFq0fB+czby80gPDsau1uU04qIanGGl/yiUjoy2YsbSpg6jzmc5 5c98MZkPSy2IM4LggOIRxzR109MpXwiZTzWNsLI63eE7zPjIatTSBDrZiNdII4zH8kJf SdCOpnfpfnZ6fxMYFjw2X2NfIrVNXbvsq86Yc5pap/EtsWW9WrRioGnP9ebMqMkVI59H w43aLQHBnjfyHoHUYDl8S2PENqCasjtS1AoFJ2GhsvWaPaVnZ1cfV0nFsBgTXWG7tG2y Uyl8p5bxfO7Xu9+UIcQmcJ6zZoazkhHYshXe54e1VJ7L6++jaGJuPm4pJjVNU9xbwhZn wiHw== 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=4o0xSUNUq51GNelN0go2QOdvaapvNWxd82lpZTYqDsQ=; b=WULI9n7jgWK9SVTiNMR9S1Q0UnnJdUNGXhNckb51EhpManGPV5uTzygqipJwuUHRyY m4JC87kdm+Z5MPNTQb2FmkC5bwDTmT7QstdT2W74u/9TILrykKEaKIrOHc8GUyodgdVN pTy0rWYZphdbzig+g6ns02d4M/HjLkrvWnraaS9ObEXLTkXYpKROKXhAu04BM+mEaBKO u9ucVy4t1TrQdV5gfjI0EdLiKVsiDbDGBmzkWuwvFNODNIThOGJw2f/SwZUs4zhhLnIa rDN1r9fIlmh45DC6+Bg4rvfM8T2pHv4K5ERC1+sr7J4Qsuf64k22lRQXK6ZFE1bLfmwZ csMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=HPe8AyBl; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gn11si2301010plb.94.2019.02.08.09.01.38; Fri, 08 Feb 2019 09:01:55 -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=fail header.i=@lunn.ch header.s=20171124 header.b=HPe8AyBl; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727516AbfBHRAG (ORCPT + 99 others); Fri, 8 Feb 2019 12:00:06 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:44198 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726522AbfBHRAF (ORCPT ); Fri, 8 Feb 2019 12:00:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=4o0xSUNUq51GNelN0go2QOdvaapvNWxd82lpZTYqDsQ=; b=HPe8AyBlqylXJ2onQbVdTeplJm vdkB5dhrhExPKorERAxQypg6OPo8ka1lkk3R00fwm+oEqz6hd6JFk1YRi3+ht+axhmvI+Or2znADJ 8DfYRDSg9YHTyv/vcLS/r9MRvBXO0vygrutzRxqSi7P13Yw5he0aPLHKHq2jC6LOhv8s=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1gs9VT-0000Xx-98; Fri, 08 Feb 2019 18:00:03 +0100 Date: Fri, 8 Feb 2019 18:00:03 +0100 From: Andrew Lunn To: Federico Vaga Cc: Peter Korsgaard , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/5] i2c:ocores: do not handle IRQ if IF is not set Message-ID: <20190208170003.GB1853@lunn.ch> References: <20190208161201.7860-1-federico.vaga@cern.ch> <20190208161201.7860-3-federico.vaga@cern.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190208161201.7860-3-federico.vaga@cern.ch> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 08, 2019 at 05:11:58PM +0100, Federico Vaga wrote: > If the Interrupt Flag (IF) is not set, we should not handle the IRQ: > - the line can be shared with other devices > - it can be a spurious interrupt > > To avoid reading twice the status register, the ocores_process() function > expects it to be read by the caller. > > Signed-off-by: Federico Vaga > Acked-by: Peter Korsgaard Reviewed-by: Andrew Lunn Andrew