Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6482396rwl; Tue, 4 Apr 2023 13:32:09 -0700 (PDT) X-Google-Smtp-Source: AKy350ZPmk5JDYQaU7g11HfiBF/UGeVpdAfeYSzUWzYPdDRZBPS+U1C5qqBLdQlNaDilEfTol7iY X-Received: by 2002:a17:90b:4d05:b0:240:9e3d:d532 with SMTP id mw5-20020a17090b4d0500b002409e3dd532mr4243688pjb.8.1680640329232; Tue, 04 Apr 2023 13:32:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680640329; cv=none; d=google.com; s=arc-20160816; b=Qwf34nQWLm54FEIOFLZcPfCZhWI9LVVzUufBfoc24rEgEC2cz7oeXDl1VQeKW1/kZ/ 9gpKtpq6kiCvfDCIvLb29PWQD00NkEXYw+lVKVRu/93HGxxHNKYsCnS9Jhr+3SiuKm0W 69JHloLjq/J993ncAWMtD7WAogK4UUbzYdRzL6cLVQSIujLZ6zqNEgbOwiXOAPkn4DRs cDmSAGQRdaaKuOjjmt9XU+9F2CQ6Zs0DrlijmY7buKMgdd0MiegAhvz1WvCwGMuzxkX7 7KnDdW1eHVkerZKUT4urpVp44IEne3B9KtqypUNEbBmKWlAotgiyf8an05rxYxn1MMCG bv7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=BdTsXK258IzXLXAvc6XiWI2mr2HmNvT/kYOEMCnlRUo=; b=g8xztyyDd2BBui01REPP0c407teWlq0YWPFtj8Qu61+o/TsrUiDtVdiJHaoVzrDzqo 1++rJlmLesJI7WegijlxVxsqh9iC99Vfnr3MOKNWpXBl6uwsRtpKoLADBDocWCDii67T LHcJueN2ZamUwfEO4fiINdTVLdfiCMf9ptrMKNRAoQW87gEFPS8GSKKukpdfqRycqOGc M29oz92bVKpNiO5g8cqffqBoyUdzRTG/6fyY41e32tAQYKVJwGLAz12HXVBtaQUgCIKR rMmgYrHOzSyonmDtJo3FvykDok4OK8zpK2Bl8wAB7PRN/h2whXvypZDqBgrrpilULgt8 XMWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nlYpHgIz; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id md8-20020a17090b23c800b00240e4b9a943si9730974pjb.143.2023.04.04.13.31.57; Tue, 04 Apr 2023 13:32:09 -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=@linaro.org header.s=google header.b=nlYpHgIz; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235605AbjDDUbP (ORCPT + 99 others); Tue, 4 Apr 2023 16:31:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229731AbjDDUbN (ORCPT ); Tue, 4 Apr 2023 16:31:13 -0400 Received: from mail-yb1-xb2c.google.com (mail-yb1-xb2c.google.com [IPv6:2607:f8b0:4864:20::b2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 305CB4496 for ; Tue, 4 Apr 2023 13:31:12 -0700 (PDT) Received: by mail-yb1-xb2c.google.com with SMTP id z83so40269766ybb.2 for ; Tue, 04 Apr 2023 13:31:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680640271; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=BdTsXK258IzXLXAvc6XiWI2mr2HmNvT/kYOEMCnlRUo=; b=nlYpHgIzmOXyMkBiUcEYWqFtVt4Zne0J5jKrBvGogT+bBiyiaLin/caXkB9yr92tM3 2ZS+9a4KD8mt/5k4DU22GSU0mXS+jh6kX3/kl7rcnGeJslXp7+y/20wv7o5psjWRQBM4 XqzGixTDBMnr6txgGi4lsol69DZQFYWjvjLWHv9fUFEgrii+L/YGaneGdmTa3CHOCnju cd46eTAqrD8yUSxTBIMhqc7cgw+uNCsdrM3mZ8DLvNma8aRUAkViYFXkyVJO/ZNcTYrJ qp64WDTHxFmUv8YT4QO7G9uJ7dX+prSWjVexeiHRXsNGxpmAIIEZZelU+yfpvXCl8Lly IBoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680640271; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BdTsXK258IzXLXAvc6XiWI2mr2HmNvT/kYOEMCnlRUo=; b=z3R6mMR12YxA7pkqbuh/2b7Qe6fJjZ8jFyXkWABw9lWVEYlbUkNN47kMZAiz6kX5or O4mm3gC/d1cwBksH03nkXqK8JNG0Uu257hc/LkwIvU7waWdcD3beInLYcmBd9Y0B9rls 3Cd3ONKyi9214F5r/yrJ3O8tu8CheYnCPHFWlEvkOh2+KTdoG4oV+Svd8LpYjnniSNDb 8DOBSYs7ZufzkJJ6vb8KZ8o+RA2eCt+dB8dz1KUHvxUIk0pYdJ98wM1OcuLeJKTWODjZ +dcGDiMsgAK7+FQXkMbkYvFDRGDHKqjZfdgtNrzFM20xaT3lQR1HgQb4+yIr9wYST00k LOkA== X-Gm-Message-State: AAQBX9cevmYkxqNz7gK1a14S7D1Iywd4+oyGGzLZ+dThRtvkxQ+SrK0j X+Jblnb/HzFz80m+qCdtOCaygUYZAuLGrpkiczVqyA== X-Received: by 2002:a25:3083:0:b0:b23:4649:7ef3 with SMTP id w125-20020a253083000000b00b2346497ef3mr2716867ybw.4.1680640271402; Tue, 04 Apr 2023 13:31:11 -0700 (PDT) MIME-Version: 1.0 References: <20230301142835.19614-1-m.zatovic1@gmail.com> <20230301142835.19614-3-m.zatovic1@gmail.com> In-Reply-To: From: Linus Walleij Date: Tue, 4 Apr 2023 22:30:59 +0200 Message-ID: Subject: Re: [PATCHv3 2/4] wiegand: add Wiegand bus driver To: =?UTF-8?B?TWFydGluIFphxaVvdmnEjQ==?= Cc: Andy Shevchenko , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 4, 2023 at 3:13=E2=80=AFPM Martin Za=C5=A5ovi=C4=8D wrote: > On Wed, Mar 01, 2023 at 06:23:54PM +0200, Andy Shevchenko wrote: > > > +/** > > > + * of_register_wiegand_device - allocates and registers a new Wiegan= d 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 wa= y 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. Yours, Linus Walleij