Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp510673lqc; Fri, 8 Mar 2024 04:27:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVRd4vwhkjOzozkBrLpvet34VgXzld4tPQgAE9bEYQDw5laWe5nbYu3Xi0Hu4/Va9gJFpaXP4rL8Mi2Xx2dNoZhcjBdnAPh/TEukdFXlw== X-Google-Smtp-Source: AGHT+IEBeDDf/iZeB3yPanxGXYdP7kBiHAma19tf/NYwzbgJslLvHJhR62XgI4C5I8J/wimGp8Md X-Received: by 2002:a05:622a:181b:b0:42e:e554:d10c with SMTP id t27-20020a05622a181b00b0042ee554d10cmr8989914qtc.52.1709900865541; Fri, 08 Mar 2024 04:27:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709900865; cv=pass; d=google.com; s=arc-20160816; b=nFYclOapg0Vww4CZv7UZ4jcCs9k/ejgstpvxvhCgTFKO5yO3dT+igiqPB8Of5nc4kJ 8DPIV5LhStWIZ+18mw9nnI839vm+ecVPh2a9haiwXYjCUkSHoZJIXXTrpggdAr3P/6ZI hhOMVR/Cku5bfiuz8sAzlCFTI0/vSsEGj6Mchrbc763B20Z7x/H/CYdhiXKShuj1vKlt Qr00GpPDcCb7+5Xfo0q2oAYfM3kIYXLCTfiUHbahbyF245wP3XvvJ2J9ho7QzNmXFy/t P0IY+1VMfhPu2QfRURsGDC/d+rWKCEkGIkjMO7xW1Ba1rWbMQzoteq1KlCSsxS7SOtez /gDQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Q8I3bqwmLMWXwA1I2kmIGYnrOKpE9qZ0dwDMrgftMqc=; fh=1q6TAyv4+uvoD05zXfUVZypl5VRTDyuHf/QdNJKZINs=; b=umCP2Hgkddust82Wb9lgnZy8BFs4vaM6OKG5E2MpDgv6+6nc77W50tXK57zBBrAkMn KrtJKiyNQINL4hFs7WpZL/E9ExyqPC+QpV+CZF/lIAS7DmmH0lcnyhTjRsHjykUG7fWq DUSfELZQ7rG2A6fNng8GBK9ch0oOarJmKe4b6N8UzAyddDI1s78z82/g5IZcuIoU7swf abehTYD4l4SGdOzL/Lg6k+xyK8tS91Rwi+M/vrotES5K5m0s4dShL3efmc6n48jdPxhM X6OplQ6XcKM4+7QOSOSUWYUl3Qx7bK+zEZOzwrPdW9O+ctcC1yloY8zmtPS9iuFrPJ/c z7zw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="iT86/EPm"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-97001-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97001-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id p15-20020a05622a13cf00b0042f0187f3d2si7946608qtk.290.2024.03.08.04.27.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 04:27:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97001-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="iT86/EPm"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-97001-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97001-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 48CBF1C20BAB for ; Fri, 8 Mar 2024 12:27:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DD39E57335; Fri, 8 Mar 2024 12:27:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iT86/EPm" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 0A9644C84; Fri, 8 Mar 2024 12:27:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709900857; cv=none; b=cjtuxErSVyBl4Jd8PIS+0f97ZOKYjlBBQACE/hsxtAhWXynsG+HHKoHhpyPkrdgsSMZyhQqB71JGEZzv9PciPkfjHoFkTbWb6gN+j0lfTtL3w51o28SofYrmuD3FasIvmK0gLERXow1i2zYRdVR46i1Hwsn6Nh6BeOUmtBwci9E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709900857; c=relaxed/simple; bh=9aWRkRp0aXxu1FToQ1QE8fJZnNk6EJp6E8aVbwyrDP0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=r4GHDAL7SDit4ceNNuF8DRITNpFE+B7YHuXSAdtzqKX1+CMxk0p15bIbAaIygvy6HNQNqIDZAJ9tQIKbR/rCsT4WRPTbSsGoshARjd0IaJY1vnPtbfieBU5tS0cg+r6K6LujJWioBCPJOmNnuUgnrO312M+yCMxxAfRbTYs9xsY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iT86/EPm; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1186BC433C7; Fri, 8 Mar 2024 12:27:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709900856; bh=9aWRkRp0aXxu1FToQ1QE8fJZnNk6EJp6E8aVbwyrDP0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iT86/EPm5LHZwza+SQqVakxv6gjc5AGIgV0djoqUqkPu9XXrYq5Y+nnwcjEEipodv 0aN07GYrVHXA2whdiMbqINTItGFTGNDeoj2TRHocHSpN2zEixiT4o0s9+WBxYhMxY5 /QJrfWmiCM0RJUjpbxCAXRxsKbifep3nC3xYfk0o3ZvARqVC/NuDuDydqujQ38DDfJ M+pyLQoBSSh6tSdW2q1F5M2cLfz/sUKFQlWpdki2YehLfBQVLuzBH0KzKeFXmqUK86 dYegQdStk7x25XwRK/BprvQJfaMXezwQybLbNoT1md3kuoNEmTw+UeLdUKJgquCREy GuWrk5G0AnIxw== Date: Fri, 8 Mar 2024 13:27:33 +0100 From: Andi Shyti To: =?utf-8?B?VGjDqW8=?= Lebrun Cc: Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Bogendoerfer , linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, Gregory Clement , Vladimir Kondratiev , Thomas Petazzoni , Tawfik Bayouk Subject: Re: [PATCH v3 03/11] i2c: nomadik: simplify IRQ masking logic Message-ID: <3f7zpl4yu5gsojmfhdrbieev3gatfcgag5tnmgmrv3u46y4pny@tamjf6cq5g3v> References: <20240306-mbly-i2c-v3-0-605f866aa4ec@bootlin.com> <20240306-mbly-i2c-v3-3-605f866aa4ec@bootlin.com> <422szb2dtgnq56xznfqsqtqs3dai2jipnntrp6yb2og353whs7@g4ia5ynnmqu6> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Hi Theo, On Fri, Mar 08, 2024 at 09:57:39AM +0100, Th?o Lebrun wrote: > 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?o Lebrun wrote: > > > IRQ_MASK and I2C_CLEAR_ALL_INTS both mask available interrupts. IRQ_MASK > > > removes top options (bits 29-31). I2C_CLEAR_ALL_INTS removes reserved > > > options including top bits. Keep the latter. > > > > > > 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 > > > > > > Notice I2C_CLEAR_ALL_INTS is more restrictive than IRQ_MASK. > > > > > > Reviewed-by: Linus Walleij > > > Signed-off-by: Th?o 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. mmhhh... right! No need to resend, if nothing else is needed from the series, please paste the commit message here and I will fix it. Andi