From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751440AbdJEMoy (ORCPT ); Thu, 5 Oct 2017 08:44:54 -0400 Received: from mail-wm0-f42.google.com ([74.125.82.42]:46826 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751280AbdJEMow (ORCPT ); Thu, 5 Oct 2017 08:44:52 -0400 X-Google-Smtp-Source: AOwi7QC1ujgz4IriJtS4BwOFWzhp63WAEbwtB4k+ECG9+b0Lgrgw629CebQaI2kLWLKgC+wG3J8bZw== From: Bartosz Golaszewski To: Thomas Gleixner , Marc Zyngier , Jonathan Cameron , Lars-Peter Clausen Cc: linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 0/3] irq-sim updates for 4.15 Date: Thu, 5 Oct 2017 14:44:43 +0200 Message-Id: <20171005124446.26265-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I initially submitted patch 2/3 as a standalone, but it turned out during some development for iio that some additional functionalities would be useful as well. The first patch pulls in slab.h directly instead of relying on the include from irq.h. The second exposes an interface for accessing the base of the allocated interrupt range. The third implements a function that allows to map the allocated interrupt number to the array offset within the irq sim object. This will be later (4.16) used in iio, where for 4.15 we needed to keep the irq base value and to calculate the offset manually in the driver. Bartosz Golaszewski (3): irq/irq_sim: explicitly pull in slab.h irq/irq_sim: implement irq_sim_baseirq() irq/irq_sim: implement irq_sim_irq2offset() include/linux/irq_sim.h | 2 ++ kernel/irq/irq_sim.c | 27 +++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) -- 2.13.2