Message ID | 20240214-mbly-gpio-v1-14-f88c0ccf372b@bootlin.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-65524-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp1333654dyb; Wed, 14 Feb 2024 08:28:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV1rSc6Dooouo3Soz5ArYesjqu4F/3JcrlL7HI07L4kdY19+u9jFq/FkeLrHtlKmRSv/1vLZRDlBBqwbLe6k61CvMBy7Q== X-Google-Smtp-Source: AGHT+IHOnJw+KFVPtdJv4VgDZnA8/Rba47R2NxKeXU//fwxKf644YCm9Vgv3jkDxRGEkou2FUp/2 X-Received: by 2002:ac8:5844:0:b0:42d:b559:17e4 with SMTP id h4-20020ac85844000000b0042db55917e4mr3392958qth.0.1707928086068; Wed, 14 Feb 2024 08:28:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707928086; cv=pass; d=google.com; s=arc-20160816; b=QIaTFSgXTS0gETP1M0nv3wvtMqDhqYNXYUbZuf8CgKAYJSr2QnOKEushHGmGfLxsyN +WN6MWC9jjiMW4xQFLeeqD8Cff7QHG7tZeTNcUMyqyvVNUxbKM0HA2ya071EmxQCF+te Mhnt1mLRSAj8Txm0auv5holVFMxkGcUkpxzt8vwecoprpfbC162tJsE2gThlhahtGC5M NycPt4CBkeMUcc0gip/qNWdMK/lMm1JyyQapEHohYHHuPw9mAAdgQTMkT4LevbJHrMJi MhxZniLpd+9ZGo+Iu17zolKJk+xj5lZck56jRUwectRXMPECQ/lEi8r8L93eLcIO3ohV oqsQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=dcSANx3V5HdwU4Q2yUKOyMI1Lkb0mNogZZKZ/7YW7Iw=; fh=9lTCk4d7LfU/jyzo2/HsF+KtS0EqcficbTbdSW9JhL8=; b=M44+Jz6nOfczmIEHto4QHHobfjvHJnAXNIOevuHpl53jCScb64gPfMnVfrokLo5CSi lbGx5OhTPGg92DJscYDGJV+pMYsYrJ0OUKwKt2JW1FvXJvJ+Bdf81w21RIL2+1jL/pg/ PR2QIMIUR6CSvxNA/ea2fVrkh0arB6tO2gDk/O22+zc3PBuz65mk63dEowcnt4doSsqH PeYfaKhROlCsv5Pn/bfSbOawwcZ9GFHAVe1yipJQTcbGWBXRVRoxrnU9xxBqHn4d3ux6 e+HesLlaTLZwoCezVjZN9pqhdeBKM/nKf1tNsGRXR62lu3GnoU8UN4M1y5G/4RkgsowG dGNw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="ivwwZO/w"; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-65524-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65524-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com X-Forwarded-Encrypted: i=2; AJvYcCXF4vNt3rZj0vTnMjfR+PsJFh5EIp8m0G/rCmojQukO3cgjotDFqb43gKe5bVFbZduPoxOr8GhCJlMcc4YFst0bG7nnBw== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v13-20020a05622a144d00b0042c70667a02si6042148qtx.384.2024.02.14.08.28.05 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 08:28:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65524-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="ivwwZO/w"; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-65524-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65524-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D4A701C21B34 for <ouuuleilei@gmail.com>; Wed, 14 Feb 2024 16:28:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F035563519; Wed, 14 Feb 2024 16:25:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="ivwwZO/w" Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (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 CDCF860273; Wed, 14 Feb 2024 16:24:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.195 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707927899; cv=none; b=rWBQDThtFJsqlastNSH5Yp527Hm0iSIDFHrUGqOuvuLAi6+KOFeLjod95JbDZpnG+SQFPZ0JcTCXwnqY96ppOWxKNm1bR1Y22sXIkSuy2eTg94+oFHZU1utyPq6san9H/FKQdGO2n0O324aFMUodZgB55X2yo8JNbx4wvPX6xTY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707927899; c=relaxed/simple; bh=U6k7W5Fq1n6gOOX+p+GbRgpWwthVriHT6YvEE+eq5Lo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=N/isFTxe7oSTLe0JufD9uivzo3xU1cQJxn62pO6vNdOYFTCIF8AZNmHV6DXFw4PUKUm59NyNx/5GTyv48KTT3r0psB4SdwECKoxVlL+3B81gJSIyWx46rlTZLN5A1VaOvLddv0Ct+DjIenEEA76D5TzhMAxPbryuenq8N3gQRpM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=ivwwZO/w; arc=none smtp.client-ip=217.70.183.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 68C2460015; Wed, 14 Feb 2024 16:24:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1707927895; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dcSANx3V5HdwU4Q2yUKOyMI1Lkb0mNogZZKZ/7YW7Iw=; b=ivwwZO/wnK/bEX6lRTc1LAq3zZ5nLTyL8+7z+AAYbE1a2gacSSJg8WNwwn3r2Pi0g2NZAD 3oLKILX1aaGhweoAacTygOqu46XPXagdVvzJq230hYknwEEUGsMsRxc0xZkHZ+n+eaCFHQ 2cNeImyXZBETSPPiZY8/0BaAg63bVCsOdu5hqHlJ4b5wUBMsks4iFtUcjF1MT1b7ZmVEwj 5GCra9LpMA5stkZHgqggyTs2dBnZ+x57fu4UfbNDY1UviENn6G5R5uctQaIIPGiDP8ZMAf S0S1zHvgrphIMJ1ccOLyy7POnlfYoXmF3BhChcQnyVYy2BfHWzvrBmYJEPSzmg== From: =?utf-8?q?Th=C3=A9o_Lebrun?= <theo.lebrun@bootlin.com> Date: Wed, 14 Feb 2024 17:24:07 +0100 Subject: [PATCH 14/23] gpio: nomadik: make clock optional Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240214-mbly-gpio-v1-14-f88c0ccf372b@bootlin.com> References: <20240214-mbly-gpio-v1-0-f88c0ccf372b@bootlin.com> In-Reply-To: <20240214-mbly-gpio-v1-0-f88c0ccf372b@bootlin.com> To: Linus Walleij <linus.walleij@linaro.org>, Bartosz Golaszewski <brgl@bgdev.pl>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Philipp Zabel <p.zabel@pengutronix.de>, Thomas Bogendoerfer <tsbogend@alpha.franken.de> Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, Gregory CLEMENT <gregory.clement@bootlin.com>, Vladimir Kondratiev <vladimir.kondratiev@mobileye.com>, Thomas Petazzoni <thomas.petazzoni@bootlin.com>, Tawfik Bayouk <tawfik.bayouk@mobileye.com>, =?utf-8?q?Th=C3=A9o_Lebrun?= <theo.lebrun@bootlin.com> X-Mailer: b4 0.12.4 X-GND-Sasl: theo.lebrun@bootlin.com X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790892401051375519 X-GMAIL-MSGID: 1790892401051375519 |
Series |
Rework Nomadik GPIO to add Mobileye EyeQ5 support
|
|
Commit Message
Théo Lebrun
Feb. 14, 2024, 4:24 p.m. UTC
Not all platforms using this platform driver expose a clock for this
GPIO controller. Turn clk_get() into clk_get_optional() to avoid
failing when no clocks are provided.
Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
---
drivers/gpio/gpio-nomadik.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/gpio-nomadik.c b/drivers/gpio/gpio-nomadik.c index 8d47aef8d2c4..2e7d3840b714 100644 --- a/drivers/gpio/gpio-nomadik.c +++ b/drivers/gpio/gpio-nomadik.c @@ -529,7 +529,7 @@ struct nmk_gpio_chip *nmk_gpio_populate_chip(struct device_node *np, } nmk_chip->addr = base; - clk = clk_get(&gpio_pdev->dev, NULL); + clk = clk_get_optional(&gpio_pdev->dev, NULL); if (IS_ERR(clk)) { platform_device_put(gpio_pdev); return (void *)clk;