From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4E28BC433FE for ; Mon, 16 May 2022 14:05:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244216AbiEPOF2 (ORCPT ); Mon, 16 May 2022 10:05:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244286AbiEPOF0 (ORCPT ); Mon, 16 May 2022 10:05:26 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA0AC3A724; Mon, 16 May 2022 07:05:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652709925; x=1684245925; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=pFt4HO1TD5VHhoCWTbjb6hXEj0azWY0q/flWLQdVPx8=; b=CBgQjeZcJFhufuZvmuRLg0EplJ2zcJ/34W9DKCHfOqMSIUHIHjdU6VQY u7xGsw8vtddTu4U1tyPZYhb9eCh3+hlsxD93eMku5/ueHW0sGdWn4a0l9 RwLnztk0+Alw1wdAAMpdHpYmwbCxKgyZJLmAD2iAS78LBE5BbY2PKcNsy trixv4gr8jUdPwwUCjW+diXRzGdQA8VkilJUdOePBz+pHstlY+oC2bH5j nw/XAYLyafixci73zyVjj376dO4QFBo7AIBAuyotlRWCF7QAjEq8+X3mz 2HkDTOlcLEoOYGhCbhj+YpwLhNM/6dRolyj9GPhmE3XexYMEX8UQyTXGR A==; X-IronPort-AV: E=McAfee;i="6400,9594,10348"; a="270537503" X-IronPort-AV: E=Sophos;i="5.91,230,1647327600"; d="scan'208";a="270537503" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 May 2022 07:05:22 -0700 X-IronPort-AV: E=Sophos;i="5.91,230,1647327600"; d="scan'208";a="574028618" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 May 2022 07:05:16 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1nqbLU-0006iR-9q; Mon, 16 May 2022 17:05:12 +0300 Date: Mon, 16 May 2022 17:05:12 +0300 From: Andy Shevchenko To: Michael Ellerman Cc: Wolfram Sang , Marc Kleine-Budde , Damien Le Moal , Mark Brown , chris.packham@alliedtelesis.co.nz, Sergey Shtylyov , "David S. Miller" , Jakub Kicinski , Greg Kroah-Hartman , Jiri Slaby , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, linux-i2c@vger.kernel.org, linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-spi@vger.kernel.org, linux-serial@vger.kernel.org, Benjamin Herrenschmidt , Paul Mackerras , Anatolij Gustschin , Wolfgang Grandegger , Eric Dumazet , Paolo Abeni , Pantelis Antoniou Subject: Re: [PATCH v2 4/4] powerpc/52xx: Convert to use fwnode API Message-ID: References: <20220507100147.5802-1-andriy.shevchenko@linux.intel.com> <20220507100147.5802-4-andriy.shevchenko@linux.intel.com> <877d6l7fmy.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <877d6l7fmy.fsf@mpe.ellerman.id.au> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-can@vger.kernel.org On Mon, May 16, 2022 at 11:48:05PM +1000, Michael Ellerman wrote: > Andy Shevchenko writes: > > We may convert the GPT driver to use fwnode API for the sake > > of consistency of the used APIs inside the driver. > > I'm not sure about this one. > > It's more consistent to use fwnode in this driver, but it's very > inconsistent with the rest of the powerpc code. We have basically no > uses of the fwnode APIs at the moment. Fair point! > It seems like a pretty straight-forward conversion, but there could > easily be a bug in there, I don't have any way to test it. Do you? Nope, only compile testing. The important part of this series is to clean up of_node from GPIO library, so since here it's a user of it I want to do that. This patch is just ad-hoc conversion that I noticed is possible. But there is no any requirement to do so. Lemme drop this from v3. -- With Best Regards, Andy Shevchenko From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 89A43C433EF for ; Mon, 16 May 2022 14:07:18 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4L21KJ6ZDZz3by8 for ; Tue, 17 May 2022 00:07:16 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=Nor0SPPy; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=linux.intel.com (client-ip=192.55.52.151; helo=mga17.intel.com; envelope-from=andriy.shevchenko@linux.intel.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=Nor0SPPy; dkim-atps=neutral Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4L21JY3x7rz2xnN for ; Tue, 17 May 2022 00:06:36 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652709997; x=1684245997; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=pFt4HO1TD5VHhoCWTbjb6hXEj0azWY0q/flWLQdVPx8=; b=Nor0SPPyGoE3jax5tkui7Fx3nm/s0iomETxX1JFefglL6NQ9ktTMN4tn zf0C9stYzhmvTEfAiZ1il0UuV/6Zmqbx2paMIXV9WHDUTWozQ77bmU09Z 4Vavgoc+ugOrxLVWljN3xfiLYCJ2SbtU6rlrLafrXwQ/zh1e2e3fdkYGW wLwMCUSwB6+iQFlHxZykX94KJMhYtSdoBJtTM+Jd+yX7gbMUJv3lyrksc 3sac9OHJxXBv5/NiyDTyh5buhCW321bi4Ggo5EpZce6AlvzxiB3I4njyb T2XPL8lbXtZRYRwjHFyTgkMBbLl1178FKwCJXDTNwPyhTL4vpNJ5gDe/V Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10348"; a="251354708" X-IronPort-AV: E=Sophos;i="5.91,230,1647327600"; d="scan'208";a="251354708" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 May 2022 07:05:22 -0700 X-IronPort-AV: E=Sophos;i="5.91,230,1647327600"; d="scan'208";a="574028618" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 May 2022 07:05:16 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1nqbLU-0006iR-9q; Mon, 16 May 2022 17:05:12 +0300 Date: Mon, 16 May 2022 17:05:12 +0300 From: Andy Shevchenko To: Michael Ellerman Subject: Re: [PATCH v2 4/4] powerpc/52xx: Convert to use fwnode API Message-ID: References: <20220507100147.5802-1-andriy.shevchenko@linux.intel.com> <20220507100147.5802-4-andriy.shevchenko@linux.intel.com> <877d6l7fmy.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <877d6l7fmy.fsf@mpe.ellerman.id.au> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-ide@vger.kernel.org, Eric Dumazet , Paul Mackerras , linux-i2c@vger.kernel.org, Paolo Abeni , Jiri Slaby , Damien Le Moal , linux-serial@vger.kernel.org, Jakub Kicinski , Anatolij Gustschin , Wolfgang Grandegger , linux-can@vger.kernel.org, Mark Brown , Marc Kleine-Budde , Sergey Shtylyov , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, Wolfram Sang , chris.packham@alliedtelesis.co.nz, netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, "David S. Miller" Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Mon, May 16, 2022 at 11:48:05PM +1000, Michael Ellerman wrote: > Andy Shevchenko writes: > > We may convert the GPT driver to use fwnode API for the sake > > of consistency of the used APIs inside the driver. > > I'm not sure about this one. > > It's more consistent to use fwnode in this driver, but it's very > inconsistent with the rest of the powerpc code. We have basically no > uses of the fwnode APIs at the moment. Fair point! > It seems like a pretty straight-forward conversion, but there could > easily be a bug in there, I don't have any way to test it. Do you? Nope, only compile testing. The important part of this series is to clean up of_node from GPIO library, so since here it's a user of it I want to do that. This patch is just ad-hoc conversion that I noticed is possible. But there is no any requirement to do so. Lemme drop this from v3. -- With Best Regards, Andy Shevchenko