Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp123616lqr; Wed, 5 Jun 2024 00:26:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWRL5jqukJyOtO4P7vTXkcH3VJw4bFMV8L4dwaM/gcv4wxRpsE5TI4frXn/6CD+MLsHUONzNrvMtNQ/LDTxXqvhOufR4corTGK4tFWF4Q== X-Google-Smtp-Source: AGHT+IFvF2TscH9CLuzZpQPF2UTamppqWUZX/fK7rlxnrIv5jw+WVazAYBoElxz6jjdX5EEtR/LH X-Received: by 2002:a05:6a21:3290:b0:1ad:7bfd:54a1 with SMTP id adf61e73a8af0-1b2b6eb4e29mr2337891637.17.1717572414529; Wed, 05 Jun 2024 00:26:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717572414; cv=pass; d=google.com; s=arc-20160816; b=xsKVCpQ79ggxBA/j42Blgoueugt5qhZ0YBMPPFgWK/6LmwMp0EGMHXCctC6k7uG0/G 5IaNeH83XoNQRk9Qz23ZuI+H0sILH1Mzc0h9dEkoTczq0j2L5u0CIFboQPIr07Ntc0+A 0m72yzevOibt9YiNkUzwRU1sIZoSeJAJ815V3JDUUJLsvz8uoYiMjlA4VQc59NzFMl3w uRtZihno+C1ABQnNhArDTugCHB1qK/kLMyze3QReyM0zhnlgJ3hWa3n0l99c2NdktTCy DMGY/NWUg1p7FRlKbPGASfUV8+TQ2mdy+Y6BTeqwcEUazqQnR1B+G30y+FuM7wVbV8Bp BPxA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:dkim-signature; bh=tny4urOKP1hG4GyostbdQ0tj+3C5fvmupwv+Tji7RE8=; fh=zRvtD0viTvS65deMmSLJHuMGflctGx+8M+0li3tXURQ=; b=IneKOcl58/Y1CpLgfvujuaHmxbeDSPqdiT8YaMPISbyOoCknCRoTxl823fxmR9kEmL mBsVuVQJcH/lJSRzgFLaieEf/T71ds0Pzzv6pCyc+ZtCAnokzkrPoZ+UEPiVs6X4u2bs LAs/1+/X6tmLZc+GcSWGgOY2xwSor2llEvSnYe8sPxnNhfcPxI1l0OEK9QoD1sbcYVY8 Rp3GuXqlIO33IUSNiHLGsopobKh3CL2D2TcIlX7gBnOhVXqV/BBWiIzvatwhj4jXHsXM J/jpLpGtzOe4TtYdYp6z3kL9O8J10rXUy1k7mrZ1iK012VNpGOthVXu/8qT/KFedoiir Gf4w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=jOk6yNC0; dkim=temperror (no key for signature) header.i=@ew.tq-group.com header.s=dkim header.b=Ydim+jt7; arc=pass (i=1 spf=pass spfdomain=ew.tq-group.com dkim=pass dkdomain=tq-group.com dmarc=pass fromdomain=ew.tq-group.com); spf=pass (google.com: domain of linux-kernel+bounces-201834-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201834-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tq-group.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c3540f92ecsi2441682a12.15.2024.06.05.00.26.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 00:26:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201834-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=jOk6yNC0; dkim=temperror (no key for signature) header.i=@ew.tq-group.com header.s=dkim header.b=Ydim+jt7; arc=pass (i=1 spf=pass spfdomain=ew.tq-group.com dkim=pass dkdomain=tq-group.com dmarc=pass fromdomain=ew.tq-group.com); spf=pass (google.com: domain of linux-kernel+bounces-201834-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201834-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tq-group.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id AB7AAB28F08 for ; Wed, 5 Jun 2024 07:05:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CCD9718F2DB; Wed, 5 Jun 2024 07:04:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tq-group.com header.i=@tq-group.com header.b="jOk6yNC0"; dkim=fail reason="key not found in DNS" (0-bit key) header.d=ew.tq-group.com header.i=@ew.tq-group.com header.b="Ydim+jt7" Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) (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 B1A0E18F2D9 for ; Wed, 5 Jun 2024 07:04:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=93.104.207.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717571086; cv=none; b=KWPqbG6eB2gUSYTdtJQQqtSoDQ1VS1W0JR+IADdGM4BOPBYm+wrQAxHZb+RDse5fk+Cqn4n6YA0FhHJbhW890HQXRHkPQve0XyWsA9lMokGNB4G/tt5vrx4givsU1IpTTAnWFkbb3xQ52d4iMnMWTrt93MQor/FrdW2eLVfhdss= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717571086; c=relaxed/simple; bh=aA3gzgfxZL7ODPzMLLZcULXmBm86Hfo91sSHuzsGWZY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=mVHfTiM44zajmPQdKUqShJHAZz6CZCHPEGYhVI0Q4DLuccoJ2jp2GySuDDBUanOsOUpcJzTI1HvPmcOEOXPl6xnQWaY2xUTr17sbvXl+7cnYj5JW3SIz+r0H3W+bBDsx5JPX1z2fK+I2XuSn0V3w+HKeMaDWBReRRWMkjli+zxg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ew.tq-group.com; spf=pass smtp.mailfrom=ew.tq-group.com; dkim=pass (2048-bit key) header.d=tq-group.com header.i=@tq-group.com header.b=jOk6yNC0; dkim=fail (0-bit key) header.d=ew.tq-group.com header.i=@ew.tq-group.com header.b=Ydim+jt7 reason="key not found in DNS"; arc=none smtp.client-ip=93.104.207.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ew.tq-group.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ew.tq-group.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1717571083; x=1749107083; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=tny4urOKP1hG4GyostbdQ0tj+3C5fvmupwv+Tji7RE8=; b=jOk6yNC00M3Zq2uWC6G1wGTI3hrQvUDuRQUeNXVefx83mbDqpMYGzNS1 Wly+sBEYYZsvt1KFpct+gx/AAOt7kNdJRO1wKJh3BXr32xJ9Chuqp6+mr 530QryV5f394oaRCIzmT+KZgQg4sDr5FsJ/WPXyAxdlDwcXz2UNLlig/f +mQvewLl5XU/skCprG0n0XwS0SagBWW9nIN0rGsctRikXpKmluLluPVNa 8SCwrVc4FW+g5d/HWxdgn/FN7AbhPanp7fhttCAycpenja9ExJZ/zxvLN /sbU0GyUAXSmcjvl5K/BkYpm3vOovsi2aq609In7NtlMOaWDBqfiqwl/b Q==; X-CSE-ConnectionGUID: oMdMGqVETyKaZS/Z5gcyIw== X-CSE-MsgGUID: MxYZKWRsR4OICf8qWKnHyw== X-IronPort-AV: E=Sophos;i="6.08,215,1712613600"; d="scan'208";a="37226798" Received: from vmailcow01.tq-net.de ([10.150.86.48]) by mx1.tq-group.com with ESMTP; 05 Jun 2024 09:04:41 +0200 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 7A26B16F8D6; Wed, 5 Jun 2024 09:04:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ew.tq-group.com; s=dkim; t=1717571077; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=tny4urOKP1hG4GyostbdQ0tj+3C5fvmupwv+Tji7RE8=; b=Ydim+jt77lc2GCS79Gq83lvss+v0OFlzt7CZfFYQ9d1RgPBZkYtfHNaTSECeo+y+H3yw06 FELqAZ1b7MkKQOW6xq7T7Jqq/SJFpw8L06oNoVXJrOg3RdP505v5N23e+8zJrsngUP3H2/ qIl1F+9BWkyXl39dlUyHZrI4zFfwfh9bJh1Th5SwRQsvj1HPPTe9ZGxd5TcoccAuA/i9BZ 9fr+LPMPirw2vbauw/jEDxZZKXPHvTET48J9SGlUOYZJu/7vj/E2EevbAR7j6rNfCV9rM9 /ADa/rqrD/UVFIN3xWaazCx6cs9o3RvsH+zXFyvEOM/bdp1XdbMcsZZc5fxBcg== From: Matthias Schiffer To: Lee Jones Cc: linux-kernel@vger.kernel.org, Gregor Herburger , linux@ew.tq-group.com, Matthias Schiffer Subject: [PATCH 3/4] mfd: tqmx86: make IRQ setup errors non-fatal Date: Wed, 5 Jun 2024 09:04:02 +0200 Message-ID: X-Mailer: git-send-email 2.45.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 GPIO IRQ setup can fail either because an invalid IRQ was passed as a parameter, or because the GPIO controller does not support interrupts. Neither is severe enough to stop the whole probe; simply disable IRQ support in the GPIO resource when setup fails. Signed-off-by: Matthias Schiffer --- drivers/mfd/tqmx86.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/tqmx86.c b/drivers/mfd/tqmx86.c index 2a4ce114d5905..cf27497245322 100644 --- a/drivers/mfd/tqmx86.c +++ b/drivers/mfd/tqmx86.c @@ -259,13 +259,14 @@ static int tqmx86_probe(struct platform_device *pdev) err = tqmx86_setup_irq(dev, "GPIO", gpio_irq, io_base, TQMX86_REG_IO_EXT_INT_GPIO_SHIFT); if (err) - return err; + gpio_irq = 0; + } + if (gpio_irq) /* Assumes the IRQ resource is first. */ tqmx_gpio_resources[0].start = gpio_irq; - } else { + else tqmx_gpio_resources[0].flags = 0; - } ocores_platform_data.clock_khz = tqmx86_board_id_to_clk_rate(dev, board_id); -- TQ-Systems GmbH | Mühlstraße 2, Gut Delling | 82229 Seefeld, Germany Amtsgericht München, HRB 105018 Geschäftsführer: Detlef Schneider, Rüdiger Stahl, Stefan Schneider https://www.tq-group.com/