Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1249173ima; Sun, 21 Oct 2018 07:41:59 -0700 (PDT) X-Google-Smtp-Source: ACcGV62eIGQY+NqxqS2ol8Q9OnnznOpmt4OTCMbquArBlwMwYflb5r00c73Ru7Na30vgQDmVpwX2 X-Received: by 2002:a63:1066:: with SMTP id 38-v6mr39976319pgq.254.1540132919868; Sun, 21 Oct 2018 07:41:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540132919; cv=none; d=google.com; s=arc-20160816; b=Ugl2P04+3x4sf+bC/HgkVPjNF4v0Mp2k7EfwT5b10Bg86Blxp+iEGY10TFrB1gdxhV KCqUElb0wg8a/AKudTMN8tMwfaaT7rQFZ7re+1UnAzxCkwtk+UeUc4RUYYhkIehKj1A8 OgwL6ftMerGA2b4KDg0ZzBMbkz5owYUsytBa/tCTvJS8Ry57ifV1fH3Rbvq73ThM7sW/ E3zYLqgc1LJGWO22JKQNxwc3cMbO8OAR8laD3eaaH8dcwlbLWVJy5y5L9uBRG80tARzd vX+6cCSQdYqP6NNcDwpJWiN3IYyxeFlKDxnKdnBf5X86TYkSf2ohuSPUDYo4LAWAfhqm dIxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=FvJrMdTqasSaSF9zrYxVPKOoq+EUN3lhwPDiYYehUEI=; b=sX4qmDPbMMfSFO9n1hpE3oHdRlljnKsRl3UCJIV2Porefp1gaqQQFli9aLDXkRqsV/ jr2NTOh2BHz1YJSp2P5KtaSfWl6RdLDia+BUxdYuaK2veH9rgkSoeB3wcnOEbEZ9FTkD 7fLICU986F+UX/GLAxXP2l2GYVuxVNzq6/+MsrV4V1MM6EGDrpy90u2Vel7/z7C73eN2 WzeUeGHZfC8RUuWF8gHeKiMiXdd6tIX3NAWwZI/z+JPH23TvybYXAt3AYRrV0TL4S8qT P16epHQDkgvwI0JItcw0oAUGRn9HMoczJwi1nYuoJ9qvi6IHKQ3mwvzmOSLwUW4sA8XV soRg== ARC-Authentication-Results: i=1; mx.google.com; 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 72-v6si32656252pla.334.2018.10.21.07.41.44; Sun, 21 Oct 2018 07:41:59 -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; 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 S1727688AbeJUW0x (ORCPT + 99 others); Sun, 21 Oct 2018 18:26:53 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:45743 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727266AbeJUW0x (ORCPT ); Sun, 21 Oct 2018 18:26:53 -0400 Received: by mail-lf1-f65.google.com with SMTP id c24-v6so1933257lfi.12; Sun, 21 Oct 2018 07:12:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FvJrMdTqasSaSF9zrYxVPKOoq+EUN3lhwPDiYYehUEI=; b=jdaWpkDTCNBaO+4cxPCtSjP2IQy28DfFdGu87pzL9BJN2L0Yj/3Pm1wKeAT0A8u8GF zyQMwZPA0kGCqjaet1GDfhEDtwUZx8iDRZ8rtxeE/Oe90+AfY997Arc03huXG6tmNCFp 75LCl1/EIV1UEExW5dPmnW4ndfdZD6uNXq5H15lmMyPrvAAa6GqnBG57YvoT3JRDx7ti iVWw59yYzdUckF9RJkGuY+Xr+zvJPxziO68CEWJbkyG9JSFYoVEv2mFW+kEU0Rzq3vh3 U0DV96+0AhuYKXrBC+3sXAXqBVbSzImIaXQ/I3UaEFq6eAAzBEeR2EKVcUN5nFBY2Ek7 7WOw== X-Gm-Message-State: ABuFfoinYGxZqzcQx/0tKp6dTCmHyH0W1jX4Z4zkMpK+8n8TSGxg3eot SGcVNJzbyeaBMhNhVV7BGN7OsPdEqnzDWJ+VnWDcv52Q X-Received: by 2002:a19:660a:: with SMTP id a10-v6mr6992005lfc.100.1540131142621; Sun, 21 Oct 2018 07:12:22 -0700 (PDT) MIME-Version: 1.0 References: <20180625161303.7991-1-federico.vaga@cern.ch> <20180625161303.7991-3-federico.vaga@cern.ch> In-Reply-To: <20180625161303.7991-3-federico.vaga@cern.ch> From: Peter Korsgaard Date: Sun, 21 Oct 2018 16:12:10 +0200 Message-ID: Subject: Re: [PATCH 2/3] i2c:ocores: do not handle IRQ if IF is not set To: Federico Vaga Cc: linux-i2c , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 25, 2018 at 6:14 PM 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 Looks good. Acked-by: Peter Korsgaard -- Bye, Peter Korsgaard