From nobody Tue Dec 2 01:31:58 2025 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D6D3734EF19 for ; Fri, 21 Nov 2025 13:57:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763733469; cv=none; b=XzqYpmpjmbj7GhFKxue3x4i4nSGM+/p7KAdI3ifPLEYEJ5Z1cL52bzctqRzY3ktH+fLt+jhgBfgs98fGxEhUuFfqZuj5PG8LO3YK59Yi0v+hhZ/fM8NJ5fGSXmKKbThHPRQowEHXeiyBsx4XTlspOjsPiXqIajXl++r47GHtcgY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763733469; c=relaxed/simple; bh=9hfR6lPLiYKZuGG6OK/BuGpIW+kaFDskfdiaSoP2Frk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=J1BHayjNTykwFQWM0sh6xzm0ahIegcJ4gJ3URIcYQIXLwf9qJublwpyletsEIH86QhpSSeiO1awWiNqH+B/ngxWC4dd4V26CO6L0UGI6+yI6sNXqavIJWgEEx0LhGD2DRsiWt9cEnWwR/3XKWX4R35dTjNMgK8YTQJ3I0xNvAx8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=nKswA7Kc; arc=none smtp.client-ip=209.85.128.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="nKswA7Kc" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-4779aa4f928so19138145e9.1 for ; Fri, 21 Nov 2025 05:57:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1763733466; x=1764338266; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=C46FqWkUX4UlmSnKm4hBuwsXTT8KxEdpLSw3EKSN07E=; b=nKswA7KcSbI8H8GJFXA/rC07DgH/xVwQ9J/ip4x0FiyNle0hRnpr7wdtOGN2VAi90K COaVZ5zPyJ6XbDg62gBGFAfe8hL0xnbcY0z2RDXDelsz9AdhIPS5RVCyWRgg3uJG8erL wuVDBYspJoLWlRlp1dVLF/QmImHVC3Rgs17TP22PrgasoE90LLnOfner4cQzn/yeHpEc Jr0k7UcnU74PmZE91g8n5wX8TRtQJhUxtDjkv5V9z9K7s/ds6e/ep2cgHcJ9ysTM++dW 3tiTRXrp5BuIRmD3ncDU6DOi9qGqKCiV3nv2/w6qOI7E6U56s+Zqm2rglXmRqlO+eVE0 tt6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763733466; x=1764338266; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=C46FqWkUX4UlmSnKm4hBuwsXTT8KxEdpLSw3EKSN07E=; b=d6R3djMqMbnkEm4x5vrts9EtD0FFCksud3XUZc4h5jCaX7Km+bJuLNkV1uALekrOxO fndqsTHmRy/NckOIre2Hy/j4a2/EPEGuXcCe8anbhtzAbO14H4KRfKp1x0t1caY2Kz8J NRlRMqqp6tdNRg7yoCN8W5oVVUUV48QeSpOCW7OGpgK0ryZzvGsaKaW/fBoBkV5MmNFz noCWjUbj+nHGsUurBbthrA/8dpKQEU4Uwr8zTWCFGYrT1YgRHqnLAxlcBeTL9pcHz7tX 5+kyp15wqfX0V0ZZOsbtozlPFnDBVVfZOSAxN0IJOawCxUIVztec6KzOrbw6nWR+Tmx/ iV0w== X-Forwarded-Encrypted: i=1; AJvYcCUhcTjk4978yvyAS9n3H/S0TK/2as9sxhOISh9yNCDpljWvY1QjVRJSK1Epqi4p/E2V3RHD+4AAWXE0F14=@vger.kernel.org X-Gm-Message-State: AOJu0YwSLRn0SpDrbDzjqB4z/xluuYdr69gJbmEumhBXsuYGPOlzZZ+K Mzb2pUGYtNIQTMBt51jjsqz5uCL/tLCT6urDriP1yJ96IifXcp9CL1+gwB1ISI6dBdo= X-Gm-Gg: ASbGncu8PGC6xuzWxhWYg5++vUoh22J6d0lrn9rQB3MSBnnGI2aVPg4of7KAABzPfek EaPSF6EFJBGAHmdZYX0IuF/AGaWY2QUMVxLJxwctepJ1jq4/Ini3f/nrOGUnO34ftI6jb0mRRdW /aw7YUbPFPR7sLtvN6mBdqbRw2wUNhleLZRNwuubDOCzmjZuL9RQk3cTQwMWbJrG4eZfyq6TjrE M6ZUg0vcWjsBQR+WXtPSfZGb4cBg53oXaYs2aI7OnfqPznAotbtWir1vHxOitEYZ9OVkxKhGUgZ SXtn7RijIaSqTh0NQLvECPVqYQoWVIi9E/lpIeMG+hAaifhQ3IhTY4301R80mOMo6s8Jf7n4be5 u8FIlfIierzx6WS82CjfMs3lG9WbdZSYl2HvQZUUO5VMbzKX5QMmm4uYSfdP3TSJhe8q2mye6Mr Vs7VGx3w== X-Google-Smtp-Source: AGHT+IFxZ+aospWVN4yYPZGiuL3kA2QfNDwKLhCYMijVUFbLykgza4SWebMBQHazSsPDgSCoGjLTMQ== X-Received: by 2002:a05:600c:470d:b0:475:dd7f:f6cd with SMTP id 5b1f17b1804b1-477c01f751cmr27140375e9.35.1763733466112; Fri, 21 Nov 2025 05:57:46 -0800 (PST) Received: from brgl-uxlite ([2a01:cb1d:dc:7e00:ab1f:63b4:bcef:12ba]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-42cb7f34ffesm12155648f8f.10.2025.11.21.05.57.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Nov 2025 05:57:45 -0800 (PST) From: Bartosz Golaszewski To: Philipp Zabel Cc: Krzysztof Kozlowski , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH] reset: gpio: add the "compatible" property Date: Fri, 21 Nov 2025 14:57:39 +0100 Message-ID: <20251121135739.66528-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.51.0 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" From: Bartosz Golaszewski In order to correctly handle the interaction between the reset-gpio devices and shared GPIOs managed by GPIOLIB, we need to be able to identify the former. Add the "compatible" property to allow us to use the device_is_compatible() helper. Signed-off-by: Bartosz Golaszewski Reviewed-by: Philipp Zabel --- Philipp: this can go directly into your branch, I will fix the GPIO part in the next cycle. For now it just parses the device name. drivers/reset/core.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/reset/core.c b/drivers/reset/core.c index 843cffc939097..b56dace6c42ed 100644 --- a/drivers/reset/core.c +++ b/drivers/reset/core.c @@ -898,11 +898,11 @@ static int reset_add_gpio_aux_device(struct device *p= arent, */ static int __reset_add_reset_gpio_device(const struct of_phandle_args *arg= s) { - struct property_entry properties[2] =3D { }; + struct property_entry properties[3] =3D { }; unsigned int offset, of_flags, lflags; struct reset_gpio_lookup *rgpio_dev; struct device *parent; - int id, ret; + int id, ret, prop =3D 0; =20 /* * Currently only #gpio-cells=3D2 is supported with the meaning of: @@ -953,7 +953,8 @@ static int __reset_add_reset_gpio_device(const struct o= f_phandle_args *args) =20 lflags =3D GPIO_PERSISTENT | (of_flags & GPIO_ACTIVE_LOW); parent =3D gpio_device_to_device(gdev); - properties[0] =3D PROPERTY_ENTRY_GPIO("reset-gpios", parent->fwnode, offs= et, lflags); + properties[prop++] =3D PROPERTY_ENTRY_STRING("compatible", "reset-gpio"); + properties[prop++] =3D PROPERTY_ENTRY_GPIO("reset-gpios", parent->fwnode,= offset, lflags); =20 id =3D ida_alloc(&reset_gpio_ida, GFP_KERNEL); if (id < 0) --=20 2.51.0