Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1148447ybl; Tue, 3 Dec 2019 02:31:34 -0800 (PST) X-Google-Smtp-Source: APXvYqx4Koy6N0YIIK/E+GJDqB1/xiBjJbQin7f9i0CbRjZYrAJ+XJiaYOcV+9T57qmX4rL00cKn X-Received: by 2002:aca:b986:: with SMTP id j128mr3145391oif.16.1575369094393; Tue, 03 Dec 2019 02:31:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575369094; cv=none; d=google.com; s=arc-20160816; b=j4cxHkl8hc6oadTfW1KGLLSy1aNW4rPzAoXmPCsHcNKYY7RkqaS2wT7romecGZdKkN DPzC6T4gydGoocmZ8CNzrqMnztON3Rg9TvJvji/EJbSZ3Fh2SBRP/fTkUvnQS7hTBmCu m6PYVwcPAYUDwifZv8YtFF2n8pOPlySL1P31zLDPCGoohnUMe6wRzgDayNhB7vjHIFo0 mxqaHbYT2exeaM48CqjkbejfVNKUpUzR60fJWEOLkmW/TanTOUt300N+iUcAkjWvymNf CCAoBcMlGrAnuvJh0akey5ktts/ztKyIQS8gqtkFpPP6jdSG+/z1tApnf6OaBCTImQdA CfcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:to :from:dkim-signature; bh=bM3pWSeqkB5UkxAbD3228fZVFkK6OfNc9gF3Gi65CVw=; b=A31zn8PBX5U6n58tdhf84VCJfKHv+kYPmnLz3hMk3EllrKY7JlzVfCyae6EMFp3xeP Cc248oS7BOdpqPCNOT/6mMGM1zs2q4+tnHTYy86VuNJNfuJEPaa9dVkMWDNdsfrciM2t QZSuEWfg6tlWCMvUkBFCn62ZfhFqhQceHRs6/829TIQ0T/a20uMv0j5pVVZOAIi2CQPb rG1BlJrLbHBbwxoz57WdBt3zeW3d/vKmRKIFjAyNy1AdZyH97+GSjiS099fTOp/vNDnt TL58I1SKf09y0AYbn6CsKi1eH32vxFonviTWs5dQaAE11wNMJGnnqXZlKOVXlUvxqk0w ydig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=G1OOjciX; 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=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f23si934866oto.205.2019.12.03.02.31.21; Tue, 03 Dec 2019 02:31:34 -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=@st.com header.s=STMicroelectronics header.b=G1OOjciX; 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=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726138AbfLCK33 (ORCPT + 99 others); Tue, 3 Dec 2019 05:29:29 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:32582 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725848AbfLCK32 (ORCPT ); Tue, 3 Dec 2019 05:29:28 -0500 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xB3ARHDg017607; Tue, 3 Dec 2019 11:29:15 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=STMicroelectronics; bh=bM3pWSeqkB5UkxAbD3228fZVFkK6OfNc9gF3Gi65CVw=; b=G1OOjciXP9KiviJUFCAZxsXwXh36wmMOGLYwq4FXtqGmaQ9svtqwZr0sUXX33xn450wF DOjeC9fxgDochVQXjOuHpGv7vzzbVKZ97/mAkGlaJUfJmflbfz0JzKs2p8kyAuwLbIks VlFr/wZyaGX4BQqlS7EKC1GQwJGPN7iE6ROBoCD4jiMYSEDJL1xnD4kvg1TXkJ4Yegrd xv0dXTS3S1F6XqAw736j/NNtiaKN6agD7HAdjHxM8GlX/FtKWqq93MGooh+XSG5NkQW4 lMhyu/EXL5LgBSng1HbUUp1kav23948sMj6bL4+IX/jZCURNsAugkOSDA3ZIHR+yKIHV FQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2wkee9xybr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 03 Dec 2019 11:29:15 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id E559510003A; Tue, 3 Dec 2019 11:29:14 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag3node1.st.com [10.75.127.7]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id B24E02AFD24; Tue, 3 Dec 2019 11:29:14 +0100 (CET) Received: from SFHDAG5NODE3.st.com (10.75.127.15) by SFHDAG3NODE1.st.com (10.75.127.7) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 3 Dec 2019 11:29:14 +0100 Received: from SFHDAG5NODE3.st.com ([fe80::7c09:5d6b:d2c7:5f47]) by SFHDAG5NODE3.st.com ([fe80::7c09:5d6b:d2c7:5f47%20]) with mapi id 15.00.1473.003; Tue, 3 Dec 2019 11:29:14 +0100 From: Fabien DESSENNE To: Thomas Gleixner , Jason Cooper , Marc Zyngier , Maxime Coquelin , Alexandre TORGUE , "linux-kernel@vger.kernel.org" , "linux-stm32@st-md-mailman.stormreply.com" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH] irqchip/stm32-exti: Use the hwspin_lock_timeout_in_atomic() API Thread-Topic: [PATCH] irqchip/stm32-exti: Use the hwspin_lock_timeout_in_atomic() API Thread-Index: AQHVb8Qw0weioX7Mt0ih3xTUpVlZr6eomLeA Date: Tue, 3 Dec 2019 10:29:14 +0000 Message-ID: References: <1568991643-7549-1-git-send-email-fabien.dessenne@st.com> In-Reply-To: <1568991643-7549-1-git-send-email-fabien.dessenne@st.com> Accept-Language: fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.49] Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2019-12-03_02:2019-11-29,2019-12-03 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkNCg0KDQpJdCBsb29rcyBsaWtlIHRoaXMgcGF0Y2ggZ290IGxvc3QuIENhbiBhbnlvbmUgaGF2 ZSBhIGxvb2sgYXQgaXQ/DQoNCkJSDQoNCkZhYmllbg0KDQoNCk9uIDIwLzA5LzIwMTkgNTowMCBQ TSwgRmFiaWVuIERlc3Nlbm5lIHdyb3RlOg0KPiBOb3cgdGhhdCB0aGUgaHdzcGluX2xvY2tfdGlt ZW91dF9pbl9hdG9taWMoKSBBUEkgaXMgYXZhaWxhYmxlIHVzZSBpdC4NCj4NCj4gU2lnbmVkLW9m Zi1ieTogRmFiaWVuIERlc3Nlbm5lIDxmYWJpZW4uZGVzc2VubmVAc3QuY29tPg0KP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