From patchwork Tue Jun 10 14:30:39 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonio Borneo X-Patchwork-Id: 895366 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C9B49246BA4; Tue, 10 Jun 2025 14:32:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.207.212.93 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749565980; cv=none; b=ANH/xRnJM0BqDZHKjo45cN2LFLYH1AChfw7NQPO8PHtshwTs58MLCYgzHcoQ4Kui82snqxa3ff2bMY90PhPjIJhe9ZrVItUZYOAR4jyjuU28qQUmMp/ZOGSS/V2zSqToaaM6pMG2RJVLq8Vx/N0xMtZ7jaGJoM2jaeKk+mEBjkQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749565980; c=relaxed/simple; bh=mGM9I70m+qDSEJRukuPmO8m4OrkGWT9TxJfQIBK8xhU=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=tpuc0bkWrEdk9LPYAGYuiNEPjxrchslIhIsOeL8Q4vw/0Hrs/+rnNl83PNm3uZ8XOqxff+zw+ZomKI6Hwc2JDBB835ioSaEQOAbPwQ9oAVpsGowRHN4KNJFOXjuRgKMU5CZghvKGx+OV3lGm8i8j7vRnDomC5+AgXl+GQMkfJnw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com; spf=pass smtp.mailfrom=foss.st.com; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b=nfTY66za; arc=none smtp.client-ip=91.207.212.93 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=foss.st.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b="nfTY66za" Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 55ACLD46020329; Tue, 10 Jun 2025 16:32:46 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=selector1; bh= f1YjJZ+rVA0yqOXQO5b73/Moyy7cIi0WrLG+x3W7mq0=; b=nfTY66zaPBEo3liu PuSm0b9RxZfTywjshCTMt5PTCY+GpD03ftSvm6NXO8SXRx6GtGaB7z3aN0ZiX2hH BmtFQ6XNZcqe7cDvCGlENwyl5QA1iJfpm9hSQp98nao+8g0LBGrNp2ed++04vh4F wzXihVJE2Ns3NFK87mklPXKiCd/iLVGN1ftd9bs3Rfn2WwM1B5W8jTkmD7XB9QLz k+q0kPgKzaF9gmPz6k4YzmUJpYXaLqwEJ69SshDlGswediR0A3bocuVnIN4Khtqa U44YNeFTBquxtMIuTsj7POHlA3ok9EBhN6zY7t3ltRM+dBOOO5RN0M8CAjVYEAXc K2EDNA== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 474aja4vty-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 Jun 2025 16:32:46 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 5820A40061; Tue, 10 Jun 2025 16:31:43 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 4F686B37BF4; Tue, 10 Jun 2025 16:30:47 +0200 (CEST) Received: from localhost (10.48.86.132) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Tue, 10 Jun 2025 16:30:47 +0200 From: Antonio Borneo To: Catalin Marinas , Will Deacon , Linus Walleij , Alexandre Torgue , , CC: Antonio Borneo , Maxime Coquelin , =?utf-8?q?Cl=C3=A9ment_Le_Goff?= =?utf-8?q?ic?= , , , Cheick Traore Subject: [PATCH v2 2/5] pinctrl: stm32: Manage irq affinity settings Date: Tue, 10 Jun 2025 16:30:39 +0200 Message-ID: <20250610143042.295376-3-antonio.borneo@foss.st.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250610143042.295376-1-antonio.borneo@foss.st.com> References: <20250610143042.295376-1-antonio.borneo@foss.st.com> Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: SAFCAS1NODE2.st.com (10.75.90.13) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40 definitions=2025-06-10_05,2025-06-10_01,2025-03-28_01 From: Cheick Traore Trying to set the affinity of the interrupts associated to stm32 pinctrl results in a write error. Fill struct irq_chip::irq_set_affinity to use the default helper function. Signed-off-by: Cheick Traore Signed-off-by: Antonio Borneo --- drivers/pinctrl/stm32/pinctrl-stm32.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/stm32/pinctrl-stm32.c b/drivers/pinctrl/stm32/pinctrl-stm32.c index 3abf47e31c019..e0e3e649976b8 100644 --- a/drivers/pinctrl/stm32/pinctrl-stm32.c +++ b/drivers/pinctrl/stm32/pinctrl-stm32.c @@ -413,6 +413,7 @@ static struct irq_chip stm32_gpio_irq_chip = { .irq_set_wake = irq_chip_set_wake_parent, .irq_request_resources = stm32_gpio_irq_request_resources, .irq_release_resources = stm32_gpio_irq_release_resources, + .irq_set_affinity = IS_ENABLED(CONFIG_SMP) ? irq_chip_set_affinity_parent : NULL, }; static int stm32_gpio_domain_translate(struct irq_domain *d,