Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp373131rwl; Wed, 5 Apr 2023 01:47:26 -0700 (PDT) X-Google-Smtp-Source: AKy350YuiKMLBO6ZKnrrWRxLxmRDAFRFUig1W5jjHEYacX3curdBaBrNbp2KqFShTzmjg25rdkAq X-Received: by 2002:a17:907:1ca3:b0:877:573d:e919 with SMTP id nb35-20020a1709071ca300b00877573de919mr2598841ejc.20.1680684446290; Wed, 05 Apr 2023 01:47:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680684446; cv=none; d=google.com; s=arc-20160816; b=tzXeqQ1f7Vwvr6v3elvpqZU+tYWaGuUNaUQCEkXm7dgj3RwyNKK7WKviEekB0aO9/a mEvtGVG0plZ+sP/BCcEZO36v4DKxWEO+eihxPRbmEYRZydoSrcXQNRaZlkYOcAw4/yW8 kbfJL82enDy9nd07TM8ZqupNwWsDtDxgfiUNF0aaxpSvmX4IcvQSsGy7UHKcFsV6b09u OGvf4lFoJG48Sb9UOjgvyoIUiaHe7N4i359zbJjtEhIgfg5QlCkHuEjzNZnidTzt4spS r3w1M+gaeeDvyHxoLxt1op6ZYNIGQeNk9CbUghfz0PjNoVK7bBVIaHYIOkFT7bwWxk9A RgeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6/t8coLBQCG5b6OSMVMGaxIBl/OpkAp3VB73aL9ZuTQ=; b=iieHzHWWGxN7abKMwgAgYlH4sx5k23WOh6W7XhL3737EvUDj4QghdEPIoejdvkL1ao 1xpm9gZxLLn+FjLjT5VgOz0tSmpeYT+Zbg9zp7i2tBDKa3XkS5DmITsghrXKra63umlp 6R9WXa826yyND+k99EGT/59TbWKQR3e8jAh7w35S6LJXzUnKOGBuBlgKuBX7sqzFB91I qW/ZIF/1w1GdvDNcpHG6103Dig7KKsqBbaNqiod0G3deplb2Ie6MsP+dVP5td/uO4b33 0cmaQZwEN4gpxGXbkUBCVfbS5kRhC5vB3nUsOJw2SaVwoO1p5m+ZccNgVsRkcTVeg4y+ uAcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AG44AaKB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 17-20020a170906201100b0093defbd6280si3831966ejo.1031.2023.04.05.01.47.01; Wed, 05 Apr 2023 01:47:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AG44AaKB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237565AbjDEIkN (ORCPT + 99 others); Wed, 5 Apr 2023 04:40:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237576AbjDEIj5 (ORCPT ); Wed, 5 Apr 2023 04:39:57 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C4245255; Wed, 5 Apr 2023 01:39:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680683986; x=1712219986; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=ehsUMXYWrybujltGCXXqPomdr6uFX8yL/RylcYCsfck=; b=AG44AaKBNENNoXk2Du/7OJMJ8GXwD+hCl6IMapWxHJrbqH7ddBGF/w37 5mUcPthF4SES31fU67pt6PQEpU/4lmhZF4LFy6fmBU9p3NN2EBDjPnkA/ asNnLfRjxyCI72iR6BUef881xbDgVdgzyCmJMseZC3p8Pq8dM/nZ3aL0m i6rpHcvXeHvqzLY4T3MmPolqkXDfv9juHTdGkqDkyZbGnyac8Mt0AUfKO H6RdVD0YaMEImWX47JZS3TWhWUye5hSRV9TrrOaEsu7CgWlwPfaiFeHy9 pOlZV991fRSXv3dGLcO/dmi5cjGXzsMg20ap/Y3lqMGEy3kfQDOCzxnXd w==; X-IronPort-AV: E=McAfee;i="6600,9927,10670"; a="428685896" X-IronPort-AV: E=Sophos;i="5.98,319,1673942400"; d="scan'208";a="428685896" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Apr 2023 01:39:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10670"; a="775969138" X-IronPort-AV: E=Sophos;i="5.98,319,1673942400"; d="scan'208";a="775969138" Received: from smile.fi.intel.com ([10.237.72.54]) by FMSMGA003.fm.intel.com with ESMTP; 05 Apr 2023 01:39:39 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1pjyg4-00CkmF-37; Wed, 05 Apr 2023 11:39:36 +0300 Date: Wed, 5 Apr 2023 11:39:36 +0300 From: Andy Shevchenko To: Linus Walleij Cc: Martin =?utf-8?B?WmHFpW92acSN?= , linux-kernel@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, gregkh@linuxfoundation.org, airlied@redhat.com, dipenp@nvidia.com, treding@nvidia.com, mwen@igalia.com, fmdefrancesco@gmail.com, arnd@arndb.de, bvanassche@acm.org, ogabbay@kernel.org, axboe@kernel.dk, mathieu.poirier@linaro.org, linux@zary.sk, masahiroy@kernel.org, yangyicong@hisilicon.com, dan.j.williams@intel.com, jacek.lawrynowicz@linux.intel.com, benjamin.tissoires@redhat.com, devicetree@vger.kernel.org, furong.zhou@linux.intel.com Subject: Re: [PATCHv3 2/4] wiegand: add Wiegand bus driver Message-ID: References: <20230301142835.19614-1-m.zatovic1@gmail.com> <20230301142835.19614-3-m.zatovic1@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 04, 2023 at 10:30:59PM +0200, Linus Walleij wrote: > On Tue, Apr 4, 2023 at 3:13 PM Martin Zaťovič wrote: > > On Wed, Mar 01, 2023 at 06:23:54PM +0200, Andy Shevchenko wrote: ... > > > > +/** > > > > + * of_register_wiegand_device - allocates and registers a new Wiegand device based on devicetree > > > > > > NAK for OF only code. New, esp. bus, code must be agnostic. We have all means > > > for that. > > > > In one of the previous versions of this patch series, there was also the possibility to instantiate > > the device from another driver. I have been told, that this is not the way to go anymore, unless > > there is a very specific reason for that. I did not find such reason, so I have removed this suport. > > I don't know for sure but I think Andy simply means that you should take a look > in include/linux/property.h and replace every function named of_* with > the corresponding fwnode_* or device_* function from that file, and it > should all just magically work the same, but abstracted away from device > tree. It's not much more than a search/replace and rename operation > (unless there is a "hole" in the fwnode implementations... I hope not.) > > In the end you can keep just and drop > and if this works. Yes. And the argument for embedded devices it's exactly why the non-OF interface is needed as we want to have a possibility to connect devices on ACPI (or another, if any) based platform without changing the code. -- With Best Regards, Andy Shevchenko