Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp13528943rwl; Wed, 4 Jan 2023 09:19:02 -0800 (PST) X-Google-Smtp-Source: AMrXdXs/7YyPNpLGciemWiDI3pfP9/9zYnxCiUTtOtHCreWU4BayRkogu9D5Q7DoLehMu7wUn9vg X-Received: by 2002:a17:906:d18f:b0:7c1:80d7:55f2 with SMTP id c15-20020a170906d18f00b007c180d755f2mr49474221ejz.48.1672852742004; Wed, 04 Jan 2023 09:19:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672852741; cv=none; d=google.com; s=arc-20160816; b=UdAeAe6enHK4pVVzKnGU6D9j64RjG0dnAXKfkUNMIYMoMInzzrL20D39GjF05+hlqk Rs33F+KNQcnZRBqdSfUALfNtBdO7MyHnzUqfzyo2y73RLMw4JVNKnfq1cbVt9O51j7y3 +rk/rFdNvM9yJQAOkhiOFfcuj19zsGSnyMab0ldRs7DQBmxO5ZukNqFmyU+nsgoR+L6C /yi2jCw8oiEivEwtf+TPEpvUu6/PT3mqkk41Zc4ZKI27pyepIxjV522es3dbt0lg0Hy4 6Alm4WNvCNwrkHb4r+5JwHQwvvG8MAKqfbbLMpM4uaImcZUxZf1s/L1DLy7+vLUBResE 1RcA== 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=ucPElNRFBeddGHkhyBsx3FuY8tZFSL7aGyVzgTbFgZ4=; b=n0cfsveLqm9JtYiEDpmg+9qJbEyIZZwuMyZzv/8EtGME+A6x6zGy8Dyr7YxEEbzJNx sYAtypwhf1K9IwTk2+ZP/7UPaZG8qyrlBSGlYpBxKWfQkFgfX0Nt9Bck5Aut91yrXwan mxWw5FVZ9TDN5bg98nCT84JnDBh6I6wrKYZPx/R8ORajUbu4G2+6tpkwH0f0/I1aTPUC QZI1JN+0+b1WFV0RJmQKjaRWsta8iCWMQcjCJlwDCjzq6UMM6b4XsoYQpLxbxHk6QBoQ dNoS5Xxnw7dwdgx2s/Zf9RCxqLz2CXKIIQg/yIOC2CCn33M3qDk6usSHjlkS24Cm9oX6 Tneg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FQeYIAsH; 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 ae2-20020a17090725c200b0084c7e7eb6fesi18921783ejc.452.2023.01.04.09.18.48; Wed, 04 Jan 2023 09:19:01 -0800 (PST) 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=FQeYIAsH; 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 S239688AbjADREa (ORCPT + 57 others); Wed, 4 Jan 2023 12:04:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239451AbjADRE2 (ORCPT ); Wed, 4 Jan 2023 12:04:28 -0500 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBE6917E37; Wed, 4 Jan 2023 09:04:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672851867; x=1704387867; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=zeo0ju0JCBAA+XzQk/IwdwkjF5L0GvLkgSkwHbL7J6E=; b=FQeYIAsHmjrVDHFPQM/dPyTkTUvxBed13mp12eXoGd5EdeBmtztZplnd XxNpMa4fgj49R18LvhmcGSKLGoCfjcoAp/o+lAMlykMNm2amg4EXR9u+J tt4WBuxTYYcL5ooWwEsNc5lorZ/UufoZgu3OW+2GugjY0P5AFvR7VxLJU 2bpn1hyjIAFhx+mPAdjMwJXJliMy1bGbVyM7jgkeLlBdF4MIb1iMDg5Yo p8s2GnjOTfom3pJFQOUDJTVa9XCBBIEsdD6nsHCxHuUM4xpeXw/T+WyAv eFjnQfNrgILPduTxj+iB+o/fWfwqqh9qI/r3GEgJsv9Hc13V37jF2fISg g==; X-IronPort-AV: E=McAfee;i="6500,9779,10580"; a="322057130" X-IronPort-AV: E=Sophos;i="5.96,300,1665471600"; d="scan'208";a="322057130" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jan 2023 09:01:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10580"; a="685807825" X-IronPort-AV: E=Sophos;i="5.96,300,1665471600"; d="scan'208";a="685807825" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga008.jf.intel.com with ESMTP; 04 Jan 2023 09:01:34 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1pD78u-004OCO-0G; Wed, 04 Jan 2023 19:01:32 +0200 Date: Wed, 4 Jan 2023 19:01:31 +0200 From: Andy Shevchenko To: Martin =?utf-8?B?WmHFpW92acSN?= Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, mani@kernel.org, hemantk@codeaurora.org, quic_jhugo@quicinc.com, andersson@kernel.org, Michael.Srba@seznam.cz, arnd@arndb.de, dipenp@nvidia.com, bvanassche@acm.org, iwona.winiarska@intel.com, ogabbay@kernel.org, tzimmermann@suse.de, fmdefrancesco@gmail.com, jason.m.bills@linux.intel.com, jae.hyun.yoo@linux.intel.com, gregkh@linuxfoundation.org, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org Subject: Re: [PATCH 3/3] wiegand: add Wiegand GPIO bit-banged controller driver Message-ID: References: <20230104133414.39305-1-m.zatovic1@gmail.com> <20230104133414.39305-4-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=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham 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 Wed, Jan 04, 2023 at 06:59:00PM +0200, Andy Shevchenko wrote: > On Wed, Jan 04, 2023 at 02:34:14PM +0100, Martin Zaťovič wrote: ... > > +What: /sys/devices/platform/.../wiegand-gpio-attributes/format > > +What: /sys/devices/platform/.../wiegand-gpio-attributes/payload_len > Why all these attributes? What is special about them and how they are specific > to the hardware in question? > > To me it all sounds like layering violation: a GPIO driver that has to be > generic provides a complete custom ABIs which we usually put on the upper > layer (in the kernel as a child driver or in the user space). Okay, it seems the consumer driver. -- With Best Regards, Andy Shevchenko