Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3412329lqp; Tue, 26 Mar 2024 08:30:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUCFZUW0pC9B4G1ZcCkqW/qFYEO4oCCjvzk27XsDnBjhKZP0IIXpDt6LBD45IfycHIqSAWWhmSnxSGIs/Vjl+Oh5RTjrF9UFbTQzdMDXg== X-Google-Smtp-Source: AGHT+IEInkLQ8Zo29ikMaF/qlE/mCpojVONFQyOc56We/+O6RZ0KH7ZpbdzPTcqZnI8szLDFtu5r X-Received: by 2002:a17:907:869e:b0:a47:4cb5:b66a with SMTP id qa30-20020a170907869e00b00a474cb5b66amr6921679ejc.61.1711467019456; Tue, 26 Mar 2024 08:30:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711467019; cv=pass; d=google.com; s=arc-20160816; b=LwrmGLIRk9yUY+nCayu5WQex8b6CCCNPeJ/S/OW8nTcgMayDfyJGhIQC7MPVjEimbL s7oRhsSB/qfuX6c5rmPBkPPKn8TABA85wNYtZn4vlLWTmJ178VBWvvdIH7qv9H0x1Cd3 h4HfdiYhInT2fIvXXCLLE8X2I+yGpSRbQd3HrloY5CxuOlUIDsyadbg+TXytsKYHy5LQ wDAaI+YMp/K06q6LaAu3wXbGiEM3p03nHnDikhXhGv1JNbXjZkKRGRfSy6MGQ7Wa5xsS h/tEOMseOuZQM8OAbZHRSvrRdBE1Agcpk5Zwznz/V3Ft00LLAJx2Cub4H1oPOgM6P7X9 u2XQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Zx8744s6axbOtphhuuWPg2DVYxfpJHRUFo6xljEDa5Y=; fh=FuL775v2F+fCYA7TdDYdSmlf+D/dybUn7yTJz8PJUXw=; b=WO0QYCOtQm6tyEajPY1hLG9VhOHxBhHc82GrCcPa0x6FViU/kUZ3+GJP+lepSiKzKh 9PDk5OTty0Tf+sgxFKogc31a/JNv/D2PBu2QWf2yDivYCMwKJfFhXdgT+k4glYKEdLJu gMNvqYA7+hQxWttR4JPFxfpocLH9ij9lCOeduwHUbrABBt5v9aABcGGUKfWsk78+wSCm g/amirv5jS6knyMEhgilObbWEeTuiotc1/wVCC/qC72Qfk+LiDhvS0GzU2Rcfl7Bqi6+ OAZ4tdwUQTF8zAZvVZIBGtCxXn+9FCJeYldwV7rW+yQataL3lxBqrQkGJGhLUiy/sTB4 5kmg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UY5g8I1g; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-119316-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119316-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id bw4-20020a170906c1c400b00a469cf32fe5si3800898ejb.213.2024.03.26.08.30.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 08:30:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-119316-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UY5g8I1g; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-119316-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119316-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2E70B1F67137 for ; Tue, 26 Mar 2024 15:30:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3A21913C8E2; Tue, 26 Mar 2024 15:29:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="UY5g8I1g" Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B7D2E13C8E0 for ; Tue, 26 Mar 2024 15:29:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711466993; cv=none; b=BBw7V1imicCkbhWNJZfsSHjN7Xq4+rgijkJqlxFN6hDr0fFdUBeKP+YTxJuEUO2/yrZJXccITC5yvkt6iI7tWNpUF/cXCF49xajKLtnZQFjlKgTUoLarrJVihkaEaJuLTekUUzd90rSc7FlR5SblmNGWU/3ZFP2XgOv9amfShBk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711466993; c=relaxed/simple; bh=ENQhz3CFs9PeNkMdqKMu5YXn5aNCoXD+ovnzubZ+amA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZEI/oKKc8YGxQxSRWerVk6o5vbXZ2Sv/ZGCJEq20blxmdwf2IIQ60mRvu73OmoYpXjvKBJrZ/YMZP5Sxy3SXiEqzxjPuwpkYYi32Lx9ZQ5LfRjHTXJ3wQEWifn8fz8X/3gOQ/s3m7zaLJesYXjjIf/9CQdwysyV1WEYRKZYsmfA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=UY5g8I1g; arc=none smtp.client-ip=209.85.208.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-55a179f5fa1so7304047a12.0 for ; Tue, 26 Mar 2024 08:29:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711466990; x=1712071790; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Zx8744s6axbOtphhuuWPg2DVYxfpJHRUFo6xljEDa5Y=; b=UY5g8I1gjSSp26CR66RZ9c1tutGzu61rIhlQNqw9W7Pt3o2YboCiyBgw5KMpSzS16F dpwdC3+bqADhULni2f4Q04cWYtHcBfygri2sXK+i+7h+CGHqliX6I3rZ9f0V0I1747PR gZS0kcW9LR613oR0lBQSivfFfkFZxyfAAuvCTM67laDBd2gSP9Bjzmb1Vnfx/4aUDHEX y8+crhAnty9ls9himzW0tGpwV6Z12Jn4PedsQ+yrJj9RTnJ47b2xHXbWrxVAU2BdeNeY zmyW5vBA70PmUdVeHs50i8y07kxX7AvVZOkBlZnOOcpr2EmkVtJYC77fZoxeamTOXJzu BXPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711466990; x=1712071790; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Zx8744s6axbOtphhuuWPg2DVYxfpJHRUFo6xljEDa5Y=; b=TxHxvaT5eNsBZ88SvIBl86PtRYeQKTgoA4LkffF4dmgoM+UhLwmJE7aUDEoDRgUjZ6 pV3ULN6i/Z8agzlwZ4hMh6ONSsiKnKOKKV1BL2VTeC1A1bs4dJGAQUhDEHRscu7hru27 jgs2iw7dPz2qH5BYyO2TLLCg5iROUGxIrq0LkTaq8tVkuM/2qQN9DgOlKVtfgDgika3v 6fwI0BWNfpr2Luw6vj64bDxqrVyrMjm2abGls6I1GD1dQYHuSC/kJ0ssdi4kccZTQZzr 5tSZHhrki6Rme9sTdMUUHL6xurzIexrNkMFtDXoRca1o7vDEMYbqVNYAK/vvaSgu3y9o pfbg== X-Forwarded-Encrypted: i=1; AJvYcCX+JrS+C8WiUwFJ9qj2IA2zgFBsJq4z6tPmkrMQYAx9jZx15tfoABVURz+O2WkXHv4MGhmtFUV+0wMOF8izWYfGINoaRhkG8ivGZlSk X-Gm-Message-State: AOJu0YwAGPSeUPJjbTajbA/LZ+qpF9L57rxJq0scWBtUPbLUnxZ8r67R anwIHsJdVyR5ckoZE/WrsuWuFO/sAPwDezXwP4wuYbJB6fS1Y3pCsH15T5ePwBU= X-Received: by 2002:a50:d517:0:b0:56b:f461:5de8 with SMTP id u23-20020a50d517000000b0056bf4615de8mr8354391edi.29.1711466989812; Tue, 26 Mar 2024 08:29:49 -0700 (PDT) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id en21-20020a056402529500b0056be25367absm4252289edb.40.2024.03.26.08.29.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 08:29:49 -0700 (PDT) Date: Tue, 26 Mar 2024 18:29:45 +0300 From: Dan Carpenter To: Markus Schneider-Pargmann Cc: Grygorii Strashko , Santosh Shilimkar , Kevin Hilman , Linus Walleij , Bartosz Golaszewski , linux-omap@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Markus Mirevik Subject: Re: [PATCH] gpio: omap: Fix double trigger for level interrupts Message-ID: <6ecd284a-e3f5-4b69-b6d7-129da6b385c1@moroto.mountain> References: <20240326145439.1293412-1-msp@baylibre.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240326145439.1293412-1-msp@baylibre.com> In the bug report email thread Markus Mirevik said "The interrupt associated with the GPIO module still fires twice" so while this patch is an improvement, it might not be a complete solution? > This patch was originally proposed by Grygorii Strashko. The way to give authorship credit is you make the first line of your patch: From: Grygorii Strashko When the patch is applied then git will assign authorship credit but remove that line from the git log. On Tue, Mar 26, 2024 at 03:50:14PM +0100, Markus Schneider-Pargmann wrote: > Set gpio trigger before clearing the irq status. > This commit message needs some work. When you're reviewing on email, it's kind of common to read the commit message without reading the subject. See how the patch looks like on lore: https://lore.kernel.org/linux-gpio/20240326145439.1293412-1-msp@baylibre.com/T/#u The subject is up on the first line, but it's mixed in with the headers so it's easy to skip. Go ahead a restate the subject but in different words. But also copy and paste more of the problem from the bug report. To me if I were a user the important bit is that the bug ends up hogging the CPU. "The problem is that the interrupt handler was is run twice for each frame. It hogs a lot of CPU time. Fix this by setting the GPIO trigger before clearing the IRQ status." regards, dan carpenter