From nobody Sat May 10 05:29:58 2025 Delivered-To: importer2@patchew.org Received-SPF: pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; envelope-from=linux-kernel-owner@vger.kernel.org; helo=vger.kernel.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org ARC-Seal: i=1; a=rsa-sha256; t=1612877566; cv=none; d=zohomail.com; s=zohoarc; b=G2ZpaEYdeyQJfg31IofjJwQ+MZuCky0LFdLgBCVqdJSWDKBdEGVQRYU36H/zadW3+QP/ktPpNdsjsRmNeLtW/1MuFL/6n3Xhst4P4ysDHIgRjm1CRWw5F8/O1G1n93CqySaR+lRRggKIPhgPJQH9UoiHHRRJHVnzmQQuP8GWQT4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612877566; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:MIME-Version:Message-ID:References:Subject:To; bh=lduRyAoxgIxVCQylqzBQTH5yxMhYzLooO1actsXv0Zw=; b=UBWP11zuUomWgDLsFBHWFh4BtAPxrZaIxzLMHJIDxIIZRgpy5RCakz3CVYr+XW1bcBQz2Ux9JJ7kr0g7R10IwTZ7XCSheY9e+dYdzJEg8Yqgfpok+erUvY9cUzegDs2Uf5YN8CPPHX/aDZEvTSvXJXwzENOojHfZWD87konYreQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mx.zohomail.com with SMTP id 1612877566594890.3256364749371; Tue, 9 Feb 2021 05:32:46 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231459AbhBINcM (ORCPT ); Tue, 9 Feb 2021 08:32:12 -0500 Received: from forward105p.mail.yandex.net ([77.88.28.108]:50204 "EHLO forward105p.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231217AbhBINcF (ORCPT ); Tue, 9 Feb 2021 08:32:05 -0500 Received: from iva8-f240adbdb32e.qloud-c.yandex.net (iva8-f240adbdb32e.qloud-c.yandex.net [IPv6:2a02:6b8:c0c:1090:0:640:f240:adbd]) by forward105p.mail.yandex.net (Yandex) with ESMTP id 090084D40336; Tue, 9 Feb 2021 16:31:22 +0300 (MSK) Received: from iva1-bc1861525829.qloud-c.yandex.net (iva1-bc1861525829.qloud-c.yandex.net [2a02:6b8:c0c:a0e:0:640:bc18:6152]) by iva8-f240adbdb32e.qloud-c.yandex.net (mxback/Yandex) with ESMTP id LxUrp0zlDJ-VLHaWaEY; Tue, 09 Feb 2021 16:31:21 +0300 Received: by iva1-bc1861525829.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id aJNFhJtpP6-VLoaIiCG; Tue, 09 Feb 2021 16:31:21 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1612877481; bh=lduRyAoxgIxVCQylqzBQTH5yxMhYzLooO1actsXv0Zw=; h=In-Reply-To:References:Date:Subject:To:From:Message-Id:Cc; b=oL3DjYHxhTQ4LDWWRt3fqlJc9jsGukxLvaI2EN/TyVzrhtq7QYrvna+1hiVsV4EZX 4ZFP3/3LVUmZR18oJpcjXepC3mPh6CzTt2vAhzZKYW+DYWobZpmpmSFNyFKxmx9NTK Lksw5woq70189/arxsZDH79LgwYVKJ43gCGJ92B0= Authentication-Results: iva8-f240adbdb32e.qloud-c.yandex.net; dkim=pass header.i=@maquefel.me From: Nikita Shubin Cc: Andy Shevchenko , Nikita Shubin , Linus Walleij , Alexander Sverdlin , Bartosz Golaszewski , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 3/7] gpio: ep93xx: Fix wrong irq numbers in port F Date: Tue, 9 Feb 2021 16:31:06 +0300 Message-Id: <20210209133110.7383-4-nikita.shubin@maquefel.me> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210209133110.7383-1-nikita.shubin@maquefel.me> References: <20210209133110.7383-1-nikita.shubin@maquefel.me> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Port F IRQ's should be statically mapped to EP93XX_GPIO_F_IRQ_BASE. So we need to specify girq->first otherwise: "If device tree is used, then first_irq will be 0 and IRQ's get mapped dynamically on the fly" And that's not the thing we want. Reviewed-by: Linus Walleij Acked-by: Alexander Sverdlin Signed-off-by: Nikita Shubin --- drivers/gpio/gpio-ep93xx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/gpio-ep93xx.c b/drivers/gpio/gpio-ep93xx.c index 94d9fa0d6aa7..3dea4ce929ab 100644 --- a/drivers/gpio/gpio-ep93xx.c +++ b/drivers/gpio/gpio-ep93xx.c @@ -416,6 +416,7 @@ static int ep93xx_gpio_add_bank(struct ep93xx_gpio_chip= *egc, girq->default_type =3D IRQ_TYPE_NONE; girq->handler =3D handle_level_irq; gc->to_irq =3D ep93xx_gpio_f_to_irq; + girq->first =3D EP93XX_GPIO_F_IRQ_BASE; } =20 return devm_gpiochip_add_data(dev, gc, epg); --=20 2.26.2