Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2467604rdb; Wed, 21 Feb 2024 08:29:14 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVPRZff2tmbseZfPE+wl0LG1BNshRIr5SOrpl3NJo1Kl/nfGbLBPV1QtGHsjO8GxCD9vV2q8eNUqV0S6Jj7I4pSg6CIwrZpCqMI5jL+Pw== X-Google-Smtp-Source: AGHT+IGNqLKb6FfDN2W8KzXmH2ktHhCWmSdJds6aavoguE4wQNgl473gRrlFgZN3NbWlZOM4FFAB X-Received: by 2002:a05:6a20:9f05:b0:1a0:60b2:45e with SMTP id mk5-20020a056a209f0500b001a060b2045emr20745123pzb.9.1708532954091; Wed, 21 Feb 2024 08:29:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708532954; cv=pass; d=google.com; s=arc-20160816; b=newR9OMqA3xuPqHSRUw3YY6MI4csF0ULCBf112u/6Cfm7kQaEnRXYCsDuLLguAEprw 8fwXdofrae5yC1W9dESLdUYM4dGvWIbV5BnDyEXKCL9O0CD+p45uPUUTgRuyYBLTGPZF 0r/WU6e5ZTuzGbPlQU2nFuVg/QFQcCElgzdy6aCeLX5lT2nT4Yz3wEO2htPNI79Qn1b9 5q1BltN5zK6A6LEHbb3R6X625ZQLHuqUEHbqR7UTGzsJX7WGugJHugOxsr3QXUPO7rTX ysOAlrsbL/ZoTXbM+WDkp/Mq/G3NV042CRPROBovs0+VeCuDBGjRYK/QBfD8sSWFk0Oq vR+w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:from:to:cc:subject:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=oYNF6aBAFXnBwLIFV8DYWQPUG0yyBkNdFICAoB9FzHE=; fh=e+tSaZobpTn+mfrkgE1cPTa5xwbrqI9WeCP7kp+V0po=; b=TpD8qE/5fzyN/KNEewourTFTIMSnbmxaPMlQnfnxWh/rq+Z/gTzfbruIdjXB91fUaA YIZ1DWgRIjdwxcCA+bCbW9p/x82DljQtZLGBZSNuaC0Cy72Ek0BKxy/QBRZ1sb6ny1lQ rO7LBN0EpOlqZpcp8uTpjjjXreRMVDt7KM6tKyIIjg9fhxWY0HkW63DkrNQ5zLdVWmub lL6JDo6okzvl3n69+oWMYJLft9D1T6TEkI2AJeTcA6hXvOYYbVBKUlcnW1P/PKGe3BzM qx89NmYKwDGgeV2xWvbI5nqyYCJG9oBYpfyZSwzNf+uDJsLo070CkWB6FbQ1eLxxd/VH xZPw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=ojElP1EM; 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-75094-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75094-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id p18-20020a639512000000b005dcb4f1acc6si8618982pgd.176.2024.02.21.08.29.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 08:29:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75094-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=@bootlin.com header.s=gm1 header.b=ojElP1EM; 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-75094-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75094-linux.lists.archive=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 96301B22FA8 for ; Wed, 21 Feb 2024 16:22:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 095B08174E; Wed, 21 Feb 2024 16:22:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="ojElP1EM" Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (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 CC8313A1A2; Wed, 21 Feb 2024 16:22:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708532550; cv=none; b=X/l1Pv2VT92p+21zkp92TYZ01Jy93ScoeFUuCWhOVAqKFM+gFBa/XJ60NgSXEW9P+xEHWVs2LFCjkKKQSrU7T9b1Cp1tZcegZaaQ2mRoY9bGCTxca0YdtzFpdUuX4Jrmfb3L3OBY+c/2coiISIYcsx+uCvyLEfAn5iGDChEyqJA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708532550; c=relaxed/simple; bh=kiiMrG6mntXHh6iDBqWOevebD5aCEfw6RRIXVCezYaY=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:Cc:To:From: References:In-Reply-To; b=iLTXi/35hNx4AMb/4oc5HJrwNd2xFtC5WS2971tbS4L0CZPuT7dWZiJ668NyZFOikkIV/nVtpVpAfAFGWFG9pIPg3CAKgeC01oLTxNiwrIRKYYWZEFcY+Zk/QNZdRHUR7s3i3A0gY2iURosDy4Q2Au4hqK9k+nBeB4rUQVJAxuM= 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=ojElP1EM; arc=none smtp.client-ip=217.70.183.200 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 3F42F20009; Wed, 21 Feb 2024 16:22:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708532546; 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=oYNF6aBAFXnBwLIFV8DYWQPUG0yyBkNdFICAoB9FzHE=; b=ojElP1EMF86PODLDP9T4uBAGLfHZ1XkMqIJ3TaYZ+/sPvFdYH/gFLxXGAxPKV8NptsQnTm ne9p4VweZ0loVzt0Zxn9ZiI6AoEWxplApr8d3wULM3fpKnDLDrVwznE0qzkPi+DL97wyqp SDdPRyCGzk78gi88IJEK4ihGSwIVbuwsnSGU3Y/6bpNZIA9vxndaJXfUHFGVMvVSR2cKcU R7WBtOEJywKiZMahVoID7HQWx4ScEF838i1TO9vi3B2+kRwsFRNIMdgbFNrlGU2JJER12O kE4NnVSnabdhLkqzuN/FD7goeVkrZnRuu5J6waTx33AtumU8mre+3lTeJCobcQ== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 21 Feb 2024 17:22:25 +0100 Message-Id: Subject: Re: [PATCH 18/23] gpio: nomadik: support mobileye,eyeq5-gpio Cc: "Bartosz Golaszewski" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Philipp Zabel" , "Thomas Bogendoerfer" , , , , , , "Gregory CLEMENT" , "Vladimir Kondratiev" , "Thomas Petazzoni" , "Tawfik Bayouk" To: "Linus Walleij" From: =?utf-8?q?Th=C3=A9o_Lebrun?= X-Mailer: aerc 0.15.2 References: <20240214-mbly-gpio-v1-0-f88c0ccf372b@bootlin.com> <20240214-mbly-gpio-v1-18-f88c0ccf372b@bootlin.com> In-Reply-To: X-GND-Sasl: theo.lebrun@bootlin.com Hello, On Wed Feb 21, 2024 at 2:45 PM CET, Linus Walleij wrote: > On Wed, Feb 14, 2024 at 5:24=E2=80=AFPM Th=C3=A9o Lebrun wrote: > > We create a custom compatible for the STA2X11 IP block as integrated > > into the Mobileye EyeQ5 platform. Its wake and alternate functions have > > been disabled, we want to avoid touching those registers. > > > > We both do: (1) early return in functions that do not support the > > platform, but with warnings, and (2) avoid calling those functions in > > the first place. > > > > We ensure that pinctrl-nomadik is not used with this STA2X11 variant. > > > > Signed-off-by: Th=C3=A9o Lebrun > (...) > >+ bool quirk_mbly; > > Compulsive abbreviation? I would just rename it: > > bool is_mobileye_soc; > > Nevermind the long name, it makes it crystal clear for readers > what is going on. (Rusty Russell's API naming guidelines.) > > With that changed: > Reviewed-by: Linus Walleij Makes complete sense. This is old heritage from my initial prototype that should have long gone disappeared. Thanks for your feedback & reviews! -- Th=C3=A9o Lebrun, Bootlin Embedded Linux and Kernel engineering https://bootlin.com