Received: by 2002:ab2:2997:0:b0:1ec:cbc4:63fb with SMTP id n23csp516854lqb; Thu, 29 Feb 2024 07:29:24 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUURGSbjhfRGz72ZdLZNnhFGZpavlsBm8WXwPObYJX5CBsI4mn2QaFvojMjH1PtlkqQs2f9rbKr8jvE1ftRQKHZxSqlJMq+tfttLa7oew== X-Google-Smtp-Source: AGHT+IEG9nf3zXj2tDdsp/eidVHPMfbDLCU0pn67ujo0XZ9/x7XlF8sk48hUF48Q/hrKCKTXMMHy X-Received: by 2002:a50:cc46:0:b0:565:3aa7:565f with SMTP id n6-20020a50cc46000000b005653aa7565fmr1630998edi.8.1709220563876; Thu, 29 Feb 2024 07:29:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709220563; cv=pass; d=google.com; s=arc-20160816; b=vcNQHCMiEFKHuQf0Gd2zVVzBU3as2bhVlIVGMxKuoAU+V3gh7Aao37i1B3dt899VAM +xWrq61mOUqO31C1ghByPMfHAmcqe9vihiC/AvbV2ao69py+szjN6P73N35/BwQTA3he lv6X1fvOz00xQeEi2qitZnDf35pVhUyZkMNIKXeuV+B4d8L6upCQm2E0J8bMalCRpo9A Cz8wq4EqLIBe+djxZrCMdAzZVIdD3P127ShoBGnhDtK7L5OB898s3qUEZG7YHaAyIeC2 fkj7H1pyBWYgi/zOJ22MVko5t5trFBX9sPlG8djJmuxPHyQ49R+ANhaWaRUlVOQKMy7j d3ag== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id; bh=IwDY5ZacdX/u6Hxg1i0+CRsjuMTi7RxokNg7TEKJfZ8=; fh=R0cDr8X7wasw22Yw1KOWiereNBd1PwSVOIB54enTBi8=; b=Rqpb/6gDo2B4Lna/bPrMkTV0lRwI8SHFNrOVncOtcpN6AvuaZ5wkKgj2FnNoVPLUQY PrtesyF8tZhBLk2GHuhcJvkkOXpuBcKTC0cVaq6HkrA/DRlV2KiTDAzGdcnVAiHLSd11 9QQQJc/ereDUk70/XAFnRLzVBtkyrw7XGp9hXmxCvwDIV0eInzOv1P+pH4wrp0aiDeOu 6vo/40lsG5AC5ejIn8WXZv/+Gwi308kFdSsVJ1agWZ3PntxYclb6Z1y7OkDHz/yZABpt qXyrTyhuEb7PmNOr5s3tEdVT8/dhVBNdF6JmdSqZ/dTbgQI3t9LGm9F5bQQizixMSmyn 64nw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-86927-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86927-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id m17-20020a056402431100b0056406fb6d03si689378edc.42.2024.02.29.07.29.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 07:29:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86927-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; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-86927-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86927-linux.lists.archive=gmail.com@vger.kernel.org" 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 9CB901F25113 for ; Thu, 29 Feb 2024 15:29:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CD20C1420A5; Thu, 29 Feb 2024 15:29:09 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (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 7836514601B for ; Thu, 29 Feb 2024 15:29:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709220549; cv=none; b=eXbp3kqI0ayoWkH7WOJjqTSQ4Xk342xPNeIQ/gWas37j4Hj+xRpburGo3JaOgItiCEiXLocjNbkApPxylBzAVyhcJ+Y1I0PBr+r6WZXV1/xMCLQr5S0b9kiIrHLA9MYexCVKtjOfG61Ny4zdCY/VNxxE+8U8uScUxWO5/Aij+kQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709220549; c=relaxed/simple; bh=GS6Azpxv+L3XEIbmLWsr0WYp0WE3bOEpnYP5dcCSHOw=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=sWmjYPoNsnOl/cB2Yei/oTCrjsfyImLoQQs5FQo5hlfE5HFILA6Qk17sT5OIPdHZjXW/HjcNqdAbfln738CyOTlHJTD9sgKPGjCWZNf4y8+s6dQf7hMFzZFXekAy+XRkhgv53qdvVfFyyill94WSh+hpsFInUm53At2qQeXzMOs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rfiKz-0006iF-40; Thu, 29 Feb 2024 16:28:45 +0100 Received: from [2a0a:edc0:0:900:1d::4e] (helo=lupine) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rfiKx-003c9I-7C; Thu, 29 Feb 2024 16:28:43 +0100 Received: from pza by lupine with local (Exim 4.96) (envelope-from ) id 1rfiKx-000Bqn-0S; Thu, 29 Feb 2024 16:28:43 +0100 Message-ID: <959414f110463d5de87c84a986c7894a03afcf4e.camel@pengutronix.de> Subject: Re: [PATCH v8 04/10] reset: eyeq5: add platform driver From: Philipp Zabel To: Andy Shevchenko , =?ISO-8859-1?Q?Th=E9o?= Lebrun Cc: Gregory CLEMENT , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Bogendoerfer , Linus Walleij , =?UTF-8?Q?Rafa=C5=82_Mi=C5=82ecki?= , Vladimir Kondratiev , linux-mips@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Petazzoni , Tawfik Bayouk , linux-gpio@vger.kernel.org Date: Thu, 29 Feb 2024 16:28:42 +0100 In-Reply-To: References: <20240227-mbly-clk-v8-0-c57fbda7664a@bootlin.com> <20240227-mbly-clk-v8-4-c57fbda7664a@bootlin.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4-2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org On Do, 2024-02-29 at 15:48 +0200, Andy Shevchenko wrote: > On Thu, Feb 29, 2024 at 01:18:08PM +0100, Th=C3=A9o Lebrun wrote: > > On Thu Feb 29, 2024 at 12:22 PM CET, Andy Shevchenko wrote: > > > On Wed, Feb 28, 2024 at 06:04:47PM +0100, Th=C3=A9o Lebrun wrote: > > > > On Tue Feb 27, 2024 at 6:27 PM CET, Andy Shevchenko wrote: > > > > > On Tue, Feb 27, 2024 at 03:55:25PM +0100, Th=C3=A9o Lebrun wrote: >=20 > ... >=20 > > > > > > + priv->rcdev.of_node =3D np; > > > > >=20 > > > > > It's better to use device_set_node(). > > > >=20 > > > > I don't see how device_set_node() can help? It works on struct devi= ce > > > > pointers. Here priv->rcdev is a reset_controller_dev struct. There = are > > > > no users of device_set_node() in drivers/reset/. > > >=20 > > > No users doesn't mean it's good. The API is relatively "new" and take= s > > > care of two things: > > > 1) it uses agnostic interface; > > > 2) it doesn't require any firmware node direct dereference. > > >=20 > > > The 2) is most important here as allows us to refactor (firmware node= ) code > > > in the future. > >=20 > > I think I get the point of device_set_node(). I still do not understand > > how it could help me fill the ->of_node field in a reset_controller_dev > > structure? >=20 > Exactly why I put the above comment as recommendation. And then I elabora= ted > that entire reset framework should rather move towards fwnode. For context, there have been initial patches for this, that turned out not to be necessary later on: https://lore.kernel.org/lkml/20220324141237.297207-1-clement.leger@bootlin.= com/ At this point, there still is no real use case for non-DT reset controls on the horizon. >=20 regards Philipp