Received: by 10.223.185.116 with SMTP id b49csp448361wrg; Fri, 23 Feb 2018 01:07:28 -0800 (PST) X-Google-Smtp-Source: AH8x2248ZqpY0tOkF+QO2GkY4M3MaRO7yqmptRuzYdIPTe1DLTdP5K/tyGj+Wf+4ASQUEdyJb+KO X-Received: by 2002:a17:902:600e:: with SMTP id r14-v6mr1096828plj.200.1519376848173; Fri, 23 Feb 2018 01:07:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519376848; cv=none; d=google.com; s=arc-20160816; b=D3pgqNwYR/QueUv55sHQ8PsAijs0CbM8H9vVypByau0nMT3CbGRekUbs4ft8dnOZXi 23GFMw83o16KAdVCWJMnYvryY5huiH05orr0iaa0j1zGbs6ql3vVwGbRMEAneJrFzouH LhO5jfbJkuFQGBaVBlqQk5vAHTZTMvSvGgfoLfw1q22A4YRDvLMQSQBlBmP2bZ89W57e 3ykfTkRtyKH1IXQCi6BLP2JUr7i0cgrpX3L8NeZ8hJboxj23BNtZYLXQaNjoy4e8C9ew w5iF0GOTAk+dDUXFAhoHUjMpeVh0sdp15JuGk2Sp7MwxSi22ueWFK6rAE8dkYPt7G/3v rXmA== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=QN01HVTjrflCimsacEnMzYuSqtKDDHUXbEimZVeKi9w=; b=jCZda1SPD7TSnk4vk/w3IQ2zQ+mSZAW+yAYSZG6WF1my+qXUOUz41DqXMRJac5p9N4 RlbHKIU5WFvpj9qlOgOqWJjsEcCNii8rGd3QkZdWInb4Nz049nQQvUlDZPA52z13n2Aq raCxGZNSu5PSYcVRsrzzAAS/c8M3es2WaXesH0X/6/uTm/Uhrzs0XWHW/yv/thFEFTC6 mFC+ElpiK5fF4/vds0YUyF+Cl5LI8UZ9hvDI9aUlbmw7I5S3ZyVSW9Wnq9e7DXf3mfz0 z9xs7+XUD0VmFawGTZ1JC/QVVHdKEYYbBxrt7taNnQV6R159wbymZKLyxHx4KAqfDvey Xt0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SR0VHUdw; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u128si1264618pgc.587.2018.02.23.01.07.10; Fri, 23 Feb 2018 01:07:28 -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=pass header.i=@gmail.com header.s=20161025 header.b=SR0VHUdw; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751547AbeBWJFk (ORCPT + 99 others); Fri, 23 Feb 2018 04:05:40 -0500 Received: from mail-lf0-f45.google.com ([209.85.215.45]:47056 "EHLO mail-lf0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751372AbeBWJFh (ORCPT ); Fri, 23 Feb 2018 04:05:37 -0500 Received: by mail-lf0-f45.google.com with SMTP id r80so11340914lfe.13; Fri, 23 Feb 2018 01:05:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=QN01HVTjrflCimsacEnMzYuSqtKDDHUXbEimZVeKi9w=; b=SR0VHUdwjnPmhYYA17CTEkIoFQk3QvFcext4rZB0mAYblRMGYglXn4EVQuCM75YUm2 GvNkTpMoruyL6pJaVhioBQHmSAV0wpy77LJx7uojmuZPVkEDu5YCvLlZ3csySlkMZBaJ O5i9JHJH7g1hiPGXndnK43/+HelawvY8rod0gf7Xsr77RDRZ8uhLj/R7132etdvvq4Vz dRxorzVeC4U1YeDJoW4O2jSVWG1EX5h76mr2Ai6KZfYs1B/41tqT8pjZgV+M+3oysCa2 aGG1NBAb5Emav+8+1eNEzRR9mkXm6ur5kZSmomkgjyUxKcaqlHmpQ6+Z4tSiEnRbYvVu didw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=QN01HVTjrflCimsacEnMzYuSqtKDDHUXbEimZVeKi9w=; b=p7ObPjztchEWk9QguO7c3Yn0B6R22m0x8dwwL4IhHyjNxMdTH+q2ped3WneLheEdxx 53uNKQGhhz9umsZwHXO19Ngz15cHQd3LXGknIlDADldbnaa12UiUMS047SybdDFB4vB3 ZefxYJFbgVNvINu3lSpvTjj7bnL9vDOUhuyJRWPNbKWcYNPb7KeNuJlgmrjMdNo6LPI7 sP3YO3Vt7t94uOvztHCzxULNFpQMCjP6x/0BRuYOA0BUSwuEO8NiSelfzBx5lb2MtkHH Vig6faPcXz+NRcReBs3Ri2mKBuQgt9KAnzDmm3q2ck7pMtmtbk1AVAHpmPzHsNkccUCE PqVQ== X-Gm-Message-State: APf1xPAdFVvQla+5044aBQJQXXbs2gjJuhhBW7pSNeskUo916tH3Jb1m HuvAca8wKxNN5FHqZA5dMvuKREKdnUHcLfGzBto= X-Received: by 10.46.124.11 with SMTP id x11mr790577ljc.72.1519376735985; Fri, 23 Feb 2018 01:05:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.72.134 with HTTP; Fri, 23 Feb 2018 01:05:35 -0800 (PST) In-Reply-To: References: <6491f248c6748f21a2acf310e186d2be4f9b4e4c.1519374248.git.radoslaw.pietrzyk@gmail.com> From: =?UTF-8?Q?Rados=C5=82aw_Pietrzyk?= Date: Fri, 23 Feb 2018 10:05:35 +0100 Message-ID: Subject: Re: [PATCH v2 1/2] irqchip: stm32: Optimizes and cleans up stm32-exti irq_domain To: Thomas Gleixner Cc: Jason Cooper , Marc Zyngier , Maxime Coquelin , Alexandre Torgue , Linus Walleij , Benjamin Gaignard , Philipp Zabel , open list , "moderated list:ARM/STM32 ARCHITECTURE" , linux-gpio@vger.kernel.org, Ludovic BARRE 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 I think the HW is fairly simple and straightforward comparing to other irq chips so it's rather a logic that concerned me the most i.e. why gpio irqs were handled in a "simple" manner whereas the rest of interrupts in "edge" manner. According to specification all interrupts are edge driven and that's how are they treated in set_type callback. First I thought that all can be handled as simple but then I realized it makes more sense in handling all of them as edge as they should according to specification. I will prepare a v3 series with more detailed explanation in it. 2018-02-23 9:42 GMT+01:00 Thomas Gleixner : > Radoslaw, > > On Fri, 23 Feb 2018, Radoslaw Pietrzyk wrote: > >> - discards setting handle_simple_irq handler for hierarchy interrupts >> - removes acking in chained irq handler as this is done by >> irq_chip itself inside handle_edge_irq >> - removes unneeded irq_domain_ops.xlate callback > > if that's all functionally correct, then this is a nice cleanup. Though > from the above changelog its hard to tell because it merily tells WHAT the > patch does, but not WHY. The WHY is the important information for a > reviewer who is not familiar with the particular piece of code/hardware. > > Can you please amend the changelog with proper explanations why a > particular piece of code is not needed or has to be changed to something > else? > > Thanks, > > tglx