Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp856253imu; Tue, 20 Nov 2018 08:00:47 -0800 (PST) X-Google-Smtp-Source: AJdET5d6JVo6kxhWc1qzRJ3hlfdWkiQdDObNYOXFIa2xeMnliVjxoQ64hh1omjCBdX+uVYX4ltQW X-Received: by 2002:a62:5504:: with SMTP id j4-v6mr2766688pfb.166.1542729646991; Tue, 20 Nov 2018 08:00:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542729646; cv=none; d=google.com; s=arc-20160816; b=UgYFKZRrcbTc3umW4BzP2W3deRvF4BctdoKxY5xO865oM7JAIdsBsrgmreGlYXx5AW OpiF45SH1UbKvcmrKlNiUhzNsQNx18opESCgztfRpURYJODztaRbxyFuJ20YPzb8MSfg G7U72AMj+6RZI6ACDQXEiJWMxDikIPuS3V10F/dkvFN1XkcHeqmDWp43TJOp/AV+YRaq QAAJG5YkIcMsDz1s324TJe8M5peUs8YyN3dL0y93JajSplkZtmbD6koKP6Fe2cDCzVcm aGN+/W/ljld9d0+rmZH4dSCSC4xHq1nfuRXV5Nb/u5nDrNWVy1aqiuN7I0tBa+f/+APE WKOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=yx1WFBCVhmRGMcW/zuuIYQ5+sU7fBDj29lf17Ej0/WI=; b=E1DmFKBSgBKuMREOo9xKzoUmyZf2CGWvuee3p6g1o+fGrWhg+eD0a9NX3EyxJNypdr xh08lpjH02tLiq9gNy5JiJAmfunD01P2m4obp2TrD61AfDucLRuIjQadR+yB+6tMqZva fpDmGg5ajrQRweHwOSdhF2ORqtGrVNXd1VINyK4jV/jU+b/RoeRY1MSTJhNP9MP6/jMs f9kMmoCoUsHkTJ6WA4wsjNvpbVU0bbEEd6y5PWAkXBEz2vSK6IX+sUKmUoMXXbYvzDFf +EjhrF999QEFwTYKcwldvfYc9wOkgLOX6VRRjbXCuund7Vs0FmVyyMfZfFYncUuvuEpU vnJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=ZSkKzqC1; 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 n6-v6si44150536pla.245.2018.11.20.08.00.30; Tue, 20 Nov 2018 08:00:46 -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=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=ZSkKzqC1; 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 S1728062AbeKUAJx (ORCPT + 99 others); Tue, 20 Nov 2018 19:09:53 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:51797 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725843AbeKUAJx (ORCPT ); Tue, 20 Nov 2018 19:09:53 -0500 Received: by mail-wm1-f68.google.com with SMTP id w7-v6so2174300wmc.1 for ; Tue, 20 Nov 2018 05:40:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yx1WFBCVhmRGMcW/zuuIYQ5+sU7fBDj29lf17Ej0/WI=; b=ZSkKzqC1shRByu5rrH0UQQCOT1+PGccf/YJiz7jKg7dunQK/fFPQeO4eZ1oEl/Uj8X nZreYF4wZZ0Xe01otKV8Ad0qQS8EYcBiHjJq1+1lMeaZLtEtq35Tdv9bjrXATP/K0oWT hkNQAkqnVJnR74PQkF6nItOwhrxitpRDfs2ZlATov0/ApHGEiefX3ncooagrZssL0Tlw eCZMkzY0n/tR9sg7z1MXFMWgpiau7wnx5D6VxCfYB57icZ1lgTyvdtCAis1wS5aGTNDa ixpUC6iv7SGDevDF+zr40S7U+wGBUZ941pQR9xzEnKvvr1pNUn2MBYc/z9nk9rH2F0OR wqLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yx1WFBCVhmRGMcW/zuuIYQ5+sU7fBDj29lf17Ej0/WI=; b=immzPQCDy3kzxfmW4RgTukudNw83hOI8cPqLMpZtukocNB6Ys2itGKGIBRge1BTmdw jDs6ywceFzVCrOFdyKl8oIWTVJbvd/8SSB92e4Lc0inNmoo8pU1jDVNfPginh2MAw3ab LdY9J6+DUV7sX0wNx/JJ4ZXfh0GAb1PzJSY/SLeOxk/UOfog8PmRMlC0zsNj5ofbvDBT 6ZrLwnW+FlFIyTbwEGMhKxUQ/MQHe4n5z71j+UmaS92b7hlSaCdikz1Ax7iB1i3/wx/t iIzMMoAyYfnobW8jp3Ai8ZsN2PQjR9MqM2NHM/gR+D2jXaj6O3TPTbu+SOOGxjPVzTV6 5/Lg== X-Gm-Message-State: AGRZ1gJKBeGMScqlfm5vj7h07ssjzvFTBPX8pZj8yT/E7MNQHy6F9bEm fUDf4hUjUEl8Y0yCJFONkhGNQw== X-Received: by 2002:a1c:ccf:: with SMTP id 198-v6mr2377110wmm.6.1542721239813; Tue, 20 Nov 2018 05:40:39 -0800 (PST) Received: from debian-brgl.home (lfbn-mar-1-609-89.w90-118.abo.wanadoo.fr. [90.118.185.89]) by smtp.gmail.com with ESMTPSA id j129-v6sm36962901wmb.47.2018.11.20.05.40.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Nov 2018 05:40:39 -0800 (PST) From: Bartosz Golaszewski To: Thomas Gleixner , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Linus Walleij Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 0/2] irq/irq_sim: provide a specialized variant of irq_sim_fire() Date: Tue, 20 Nov 2018 14:40:30 +0100 Message-Id: <20181120134032.31645-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The interrupts simulator has a limitation in that a call to irq_sim_fire() always fires the dummy interrupt - irrespective of the flags passed to the irq request function. This series addresses a problem with certain libgpiod tests failing when using gpio-mockup with simulated interrupts since commit fa38869b0161 ("gpiolib: Don't support irq sharing for userspace"). The tests are failing because irq_sim fires interrupts for falling edge events even if gpiolib requests a threaded irq triggered by rising edge only (and vice versa). We're introducing a new function: irq_sim_fire_edge() which takes another argument allowing to specify the trigger type for the dummy interrupt. We then use it in gpio-mockup. Patch 1 applies on top of my previous irq_sim changeset[1]. Patch 2 applies on top of the recent changes to gpio-mockup[2]. Since test breakage in user-space after 4.20-rc1 can be considered a regression, it would be great if this could go into 4.20. [1] https://lkml.org/lkml/2018/11/9/1418 [2] https://lkml.org/lkml/2018/11/8/1012 Bartosz Golaszewski (2): irq/irq_sim: provide irq_sim_fire_edge() gpio: mockup: use irq_sim_fire_edge() drivers/gpio/gpio-mockup.c | 5 +++-- include/linux/irq_sim.h | 2 ++ kernel/irq/irq_sim.c | 30 ++++++++++++++++++++++++++++-- 3 files changed, 33 insertions(+), 4 deletions(-) -- 2.19.1