Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2460233rdb; Wed, 21 Feb 2024 08:16:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUTIpIR9kBCh4fXq4+m3v3athWYDR5jOvGcXhIqlboAMpYIhmjT/rKfeS/zIieIoRjF8sGzTMExA8CoW3iWgvRZKAOPYiWBKOlKLhBLmw== X-Google-Smtp-Source: AGHT+IFjonE8Ae9RM464H1FQ7v0jQwN+Z3COteGO5seqZGZkMg1QF3Sg+FCQIhoI5HT5McEX5uWU X-Received: by 2002:a17:906:6805:b0:a3f:252e:c245 with SMTP id k5-20020a170906680500b00a3f252ec245mr2243932ejr.8.1708532212221; Wed, 21 Feb 2024 08:16:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708532212; cv=pass; d=google.com; s=arc-20160816; b=fsy+HeRhlfC0+/W/kwvHRBAAy6gdQVpUjFnYHLm8n0EfmqnixMoqc7xnabgSm/t8yZ EZ3ZQa5bHxsyasmF73LH8D2mbZylsnN/WtfgfCzQmI32h3LjLoUtK3dNB1wdZ3reZ46q ZyI78ho97//czXMAmQI8DbqdKMAoxjUMHi3R53LYvTKGzwW94hriOt1WPXWxqh2ePmMm dZiM6YMx3Kzgs9DLLYM7B4g057TjbSN2PTZKLM4BSht50D5qZlKVIetgts3O9Giv6OAt zjOejuf1US/Z8XuMsBe2iRr2ZFFKdGaxJ7WV1HaZJf4Yowu3Qa648iFo4G8MK+exSYGQ jwJg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:subject:from:to:cc:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=SfjXLF9CcUYhZpdXGuPrETqrHrwNnYqmqkrWT36qZr8=; fh=e+tSaZobpTn+mfrkgE1cPTa5xwbrqI9WeCP7kp+V0po=; b=lEZNA6+Bq0aZjmQ0EDXN7MFRMdSYRUMHnfQjfChc/fs66hp+sI2CIjhme1P429wvzA e2xM0nF6o6Vryhh/q/ueQGj9wyf1fyks1cjwtj9f42D5ChM9wAeYX1C5KllPq0ne7ql7 iugWN6HNVFnGGwJFQNeBPYjrMvZQEsBP/vL+So3WLGjd/UZWZUi2UIL6+krNhGlf3mH4 M8RvEn+55awRCi8HCY1/3lBMR35eljILJ/j+MVWvuLH9StcOd6hOYVJ3rAiopGVvKREZ 8niHxWMkXzufrpsNSohzYmgDiei4Mimf3NwZi/7nP7gMqfew729NMIBVKpS7wJgZCOjw UKSw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Vw0WIITt; 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-75085-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75085-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id i17-20020a170906251100b00a3ebecae05bsi2631736ejb.797.2024.02.21.08.16.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 08:16:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75085-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Vw0WIITt; 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-75085-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75085-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 am.mirrors.kernel.org (Postfix) with ESMTPS id EBD661F23655 for ; Wed, 21 Feb 2024 16:16:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F07616994A; Wed, 21 Feb 2024 16:16:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="Vw0WIITt" Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) (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 8668C4CE0E; Wed, 21 Feb 2024 16:16:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708532203; cv=none; b=tN/N+OO4pEOYeze8PbAMJFzCyJjYEwlSXHh1LCoOPDMkDsBWRYkgO9zOhY9OzskJMDMqXwbu95r2aWMGuxB7chZ9PZA4qMBhLnzZUOlIV2WZVx2zJdFK0AIexgejc1kY91BgipZ2t/BZqB57uhthdyHzf1he1y139Ngu1L/aAzI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708532203; c=relaxed/simple; bh=SfjXLF9CcUYhZpdXGuPrETqrHrwNnYqmqkrWT36qZr8=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:To:From:Subject: References:In-Reply-To; b=bl+6wP2i8iwt5UR4hB/nPVhIwItVEAYGyHe6TY/VDZopiA9ncI3Fy5SbDibrjWKFH9HajvkXxrlILumPcpf1A2Yb/031BODUjY1y4S/VsJprDE4fzhVQ8UNMKwyuk4pjz1czNQUNx3zxj4vuJC4ceSpHGVW2CQV7eEqZ5zPm5S4= 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=Vw0WIITt; arc=none smtp.client-ip=217.70.183.199 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 F0827FF809; Wed, 21 Feb 2024 16:16:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708532198; 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=SfjXLF9CcUYhZpdXGuPrETqrHrwNnYqmqkrWT36qZr8=; b=Vw0WIITtZAeGyPdq1kuLO5+JMGS1Pc9S4KP53/apTfqdSgOK/ZU7m+qt2kX7JtQW0KaTrI DKoxei4zq3KptDQmqSRT1nHjcd6meHUdnXurjkKAIWzdyLRl5SBgqV7vk9Dpchymp5LxCa iWFvrX9gRjqwMEHdfq74+Fg1vLDvGT/3i7ndocHuH1ZtD92NDvM2iN1u2r0UC1CVg9XiHN 36Coszbl2zQNpCOKYigmycKlQ+lu/nrSY1aHc44myxQ5362+GvB4Hmp6UfpLE2GHiMH2A4 iAnQRjv4/0Eo4fEEx5H1KfeDWuHvdLrav2KBMumc0rGXIH+aJabB8vuE5GSJwA== 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:16:36 +0100 Message-Id: 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?= Subject: Re: [PATCH 18/23] gpio: nomadik: support mobileye,eyeq5-gpio 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 3:31 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 > > When testing I noticed that this patch breaks Ux500 (up until patch 17 > all works fine!). > > But I don't know why. > > Trying to figure it out... Can I help in the debugging process? Reading the code once again I'd guess of_device_get_match_data(&gpio_pdev->dev) could be the root cause. We are accessing match data for the GPIO device while probing the pinctrl device. Maybe something isn't initialised properly yet? The rest looks rather harmless, I've checked all conditional expressions. Thanks, -- Th=C3=A9o Lebrun, Bootlin Embedded Linux and Kernel engineering https://bootlin.com