From patchwork Fri Jan 11 17:54:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loic Pallardy X-Patchwork-Id: 155358 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp853740jaa; Fri, 11 Jan 2019 09:54:49 -0800 (PST) X-Google-Smtp-Source: ALg8bN4iMGBlG/zv8Icdv4HE7UZ0TaGZXtZ0IlyzJMvcEaYONu+9xaduz/CwmpaKmdmi52IOOUDC X-Received: by 2002:a17:902:b282:: with SMTP id u2mr15818323plr.89.1547229289415; Fri, 11 Jan 2019 09:54:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547229289; cv=none; d=google.com; s=arc-20160816; b=YMz5bremf7FJUK5prQ8q7eU3WamBIGgHPUARp5W7M3oaaC1/5OfA2MdLcV0JbYgzao TX+4JOfEbCoAsIODaAVMYnvho+fm1UEa4bltzG+DphXs5RLMF/Znk7SredQ9C5M+abBl Sagfr9J4uexHTNtbXu/nWbhxIStY5Er4k9PNqWEHsqIbfOYA5S2F0Ats5Wf5ujJLFapV 26O7fE0h/VmQW4WS/EddVQZb1pne8olZuvGGv7O8uh1Jp+mDBClpT6FYirqyQXf/AMME hyBO3w+EESl7CrL4DLNeYq7yU39dIOEh3Gi3LaQlyBElyoBKYdmqaHMT0wl5wh130gd/ jhQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=3y8inS4fJvf185qA90ChVdPizDyDwykX4b/1DzPQt6w=; b=faPXcSP4dD5znIFLttXODTRJFOl6vLePDwB3qqcKwhtlog8hT9ttm7eDK2ixxBovdO KuFz2CwjCDG4pemLyOBsl96Y/PrWZUTyXZLdMQ/bLO+gF5BwqOwOx9UE4xxmH6Qz51vO MHdxEe8HLCZ3H7kME+jVv2t2Che6pWqTP1p/PUN20TVhCw8pmOEvzegTHSl8ZXJ6oJB2 cYeDDkyItRibMxzBes/+LZiJq/KZsHEezR3Qxzo7wnpmAY5ncPrpzh0//jboov0drZJ8 FCgeNcODJ0Sx9/rFJSUSMHxy1ssBpGj68wfGRNCrGwL2sMgOwYN9bjAj+gTbMbSQRSVW kYTQ== ARC-Authentication-Results: i=1; mx.google.com; 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 e6si72894086pgl.471.2019.01.11.09.54.48; Fri, 11 Jan 2019 09:54:49 -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; 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 S2387796AbfAKRyr (ORCPT + 31 others); Fri, 11 Jan 2019 12:54:47 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:46871 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728616AbfAKRyq (ORCPT ); Fri, 11 Jan 2019 12:54:46 -0500 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x0BHftKo021941; Fri, 11 Jan 2019 18:54:28 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2ptybngbew-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 11 Jan 2019 18:54:28 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 68FCE34; Fri, 11 Jan 2019 17:54:28 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas22.st.com [10.75.90.92]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 39C0B5623; Fri, 11 Jan 2019 17:54:28 +0000 (GMT) Received: from SAFEX1HUBCAS21.st.com (10.75.90.45) by Safex1hubcas22.st.com (10.75.90.92) with Microsoft SMTP Server (TLS) id 14.3.361.1; Fri, 11 Jan 2019 18:54:28 +0100 Received: from localhost (10.201.20.178) by Webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.361.1; Fri, 11 Jan 2019 18:54:27 +0100 From: Loic Pallardy To: , , , , CC: , , , Loic Pallardy Subject: [PATCH v2 1/1] irqchip: stm32-exti: add domain translate function Date: Fri, 11 Jan 2019 18:54:31 +0100 Message-ID: <1547229271-121399-1-git-send-email-loic.pallardy@st.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.201.20.178] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-01-11_09:, , signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Domain translate function is needed to recover irq configuration parameters from DT node Fixes: 927abfc4461e ("irqchip/stm32: Add stm32mp1 support with hierarchy domain") Signed-off-by: Loic Pallardy --- Changes from v2: - Use irq_domain_xlate_twocell helper - Add Fixes: tag in commit message --- drivers/irqchip/irq-stm32-exti.c | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 Acked-by: Alexandre TORGUE diff --git a/drivers/irqchip/irq-stm32-exti.c b/drivers/irqchip/irq-stm32-exti.c index 6edfd4bfa169..a93296b9b45d 100644 --- a/drivers/irqchip/irq-stm32-exti.c +++ b/drivers/irqchip/irq-stm32-exti.c @@ -822,6 +822,7 @@ static int __init stm32_exti_init(const struct stm32_exti_drv_data *drv_data, static const struct irq_domain_ops stm32_exti_h_domain_ops = { .alloc = stm32_exti_h_domain_alloc, .free = irq_domain_free_irqs_common, + .xlate = irq_domain_xlate_twocell, }; static int