Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp415670lqc; Fri, 8 Mar 2024 00:57:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV21sQwh6oCywtkcFRD4Rk1QgP9yomq48OvvLxO3IzNsKkHB5Qj9tu3A7vCeMJff5JAEt0pxqotZwLPcmU3CIexWrIfblq3VYCXFQZzLA== X-Google-Smtp-Source: AGHT+IGpS4jJMx6MOBfEYfRkMqllYr/tugBvINWkcBJWnUcREaigRPkOWUxmyovJSFkDzRpNDzjQ X-Received: by 2002:a05:620a:1495:b0:788:1c2d:d0c5 with SMTP id w21-20020a05620a149500b007881c2dd0c5mr11180207qkj.65.1709888274491; Fri, 08 Mar 2024 00:57:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709888274; cv=pass; d=google.com; s=arc-20160816; b=SEHeH0KE1h5ACl43isP7vxiF2gNnOaygsBItaNbE2osr7YICSANQCacZirRtLmT9wN RDJjFzuBzNdYx9dhnJw4kheAHZhA0baOouYIIWmRFB6+0rGdaHMcjSluKWPTVfmZ5B33 OcUEgWACLG8NJdDHEgCeCfFT+X4qj/JG2DdbWAaDeS9c0znrvrrvMujhKFjrZu8jjL/I extT+9yv62AKFQKJV8ZxtYLAjTyaCjeqbwjkXciyUpGOsVEQ4Mf33Fzi4q86GScCnGv9 GApxQtwcFHQEmoFXryECm1vSK3L/EUtXLZ2oYQvvNxZ0HCq6h6zQL2325xB/M11k04ha xu+w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:subject:from:to:cc:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=6wpE0Hg9jSaOaaAHVX5lz1UQTKT/gbia9ZxM7ce23zk=; fh=PLWYQa/SsrRmUoweQCAYBgo2MlXB4aKObXg9xY7m44Y=; b=bjWVgvRZY6gfzUn/Iai4icbGH4fPtKztnhPIPmC87gczH9/6RyiZMBiMmC2K5/ulW7 P3beazyf+kCt3lPXDrAPrQJUM2cVw+MXh67Q23aEdG/r7t/ZBtOp5KZc3ce5olLgQTmX jGe/nHOrKkdoks8KSI4Lq7GWc7bsX0ozUYVhYak9OYejlV7LE9T8YJpVzIphT1P1pIJH 9NBA3l2e8w0orB0lQSWYhTwcCm8m2w/NqSZgsO/54ndtuYmRWkDlzEyAJ1BqHzW7Dd6G f5WNY4YBTucDVdOOMYbrKSrFzHR43SpZtj+1aGDpGQeYyH7TIOCrGugNG5uTNAaG7fKy Q/pA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=fSSGiIhj; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-96713-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96713-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id q12-20020a05620a0c8c00b007884e44a655si1625964qki.682.2024.03.08.00.57.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 00:57:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96713-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=fSSGiIhj; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-96713-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96713-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3B5711C21F0D for ; Fri, 8 Mar 2024 08:57:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E695B51C36; Fri, 8 Mar 2024 08:57:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="fSSGiIhj" Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D2F4DCA78; Fri, 8 Mar 2024 08:57:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.193 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709888266; cv=none; b=kHLjeExHCwntr0r21LX/1Rju1gnNEiCwvcAplwvwOik1QarbgFwgzTEKV72bC3yZrn8jqpoQsRsq/9Wy0RxrWrTWdxz7Eg94Ld+RDEWDe6ADSExpA3myzAjM4LqUvylUMOC7hoy3aeutIGOz/9NQs9sCUPmzGNjEoPZvI3WskuA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709888266; c=relaxed/simple; bh=uJ3EyYuTfpSTSeJvokr2q70eVIcyAYGuvsrPShpdwLk=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:To:From:Subject: References:In-Reply-To; b=AZEHgHB44XTx9/E95N6crSAygnvzRIGRDAx1aYnLluSLKW8Py/r+/8eZf9MdByx86ZVPeC7yCi+oO/yOZ7+SzYuXkC7ivYiJ7sA+jxvW0jxMfOxQqyk6n60zXEdpCmCmZcpuBgnY4SyxnBDi2hYftFk5TPFLIecwvfVA5LCXIWw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=fSSGiIhj; arc=none smtp.client-ip=217.70.183.193 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 261D5240012; Fri, 8 Mar 2024 08:57:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1709888260; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6wpE0Hg9jSaOaaAHVX5lz1UQTKT/gbia9ZxM7ce23zk=; b=fSSGiIhjdhlTXL7ypsCX8Q/rGBtXrmUC+3UmYox8nwCoFM+QtNq05DuKpwfjwAgwjDeQ87 +dMbqmsTqmv9bjhkIPw9lxpasMEL+liUQNJiyBxSqUmQPn6N8D3J6H3pRZTYZR16dDW/i3 DyzzmTr6FT60wlkCts2xU9tP5muwJW0cJ9ir5wCQzVcqdjmWNdiPt4WFI4frZq99DYk5iL PANweUx4Sw3BBo8Hw9VVbo3IAE+k8kTSxQ99WCJUs1dxkCVHK6oHdkfzh44hEPN2xLxQCi yAonmeerihXrGFRu/4e0+DKdlgKHApehOnlARjjGme2WUhMTfqZzaVO2P1rr5Q== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 08 Mar 2024 09:57:39 +0100 Message-Id: Cc: "Linus Walleij" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Thomas Bogendoerfer" , , , , , , "Gregory Clement" , "Vladimir Kondratiev" , "Thomas Petazzoni" , "Tawfik Bayouk" To: "Andi Shyti" From: =?utf-8?q?Th=C3=A9o_Lebrun?= Subject: Re: [PATCH v3 03/11] i2c: nomadik: simplify IRQ masking logic X-Mailer: aerc 0.15.2 References: <20240306-mbly-i2c-v3-0-605f866aa4ec@bootlin.com> <20240306-mbly-i2c-v3-3-605f866aa4ec@bootlin.com> <422szb2dtgnq56xznfqsqtqs3dai2jipnntrp6yb2og353whs7@g4ia5ynnmqu6> In-Reply-To: <422szb2dtgnq56xznfqsqtqs3dai2jipnntrp6yb2og353whs7@g4ia5ynnmqu6> X-GND-Sasl: theo.lebrun@bootlin.com Hello, On Fri Mar 8, 2024 at 12:01 AM CET, Andi Shyti wrote: > Hi Theo, > > On Wed, Mar 06, 2024 at 06:59:23PM +0100, Th=C3=A9o Lebrun wrote: > > IRQ_MASK and I2C_CLEAR_ALL_INTS both mask available interrupts. IRQ_MAS= K > > removes top options (bits 29-31). I2C_CLEAR_ALL_INTS removes reserved > > options including top bits. Keep the latter. > >=20 > > 31 29 27 25 23 21 19 17 15 13 11 09 07 05 03 01 > > 30 28 26 24 22 20 18 16 14 12 10 08 06 04 02 00 > > --- IRQ_MASK: -------------------------------------------------- > > 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 > > 0 0 0 > > --- I2C_CLEAR_ALL_INTS: ---------------------------------------- > > 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 > > 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 > >=20 > > Notice I2C_CLEAR_ALL_INTS is more restrictive than IRQ_MASK. > >=20 > > Reviewed-by: Linus Walleij > > Signed-off-by: Th=C3=A9o Lebrun > > You did answer my question in v2, thanks, Theo! Oops my mailer syntax is telling me that the lines starting with '---' might cause issue as it might mark the end of commit messages. I'll fix that in next revision. If it gets applied before that it should be checked that part of the message doesn't get lost. Thanks Andi, -- Th=C3=A9o Lebrun, Bootlin Embedded Linux and Kernel engineering https://bootlin.com