Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5298630pxv; Wed, 21 Jul 2021 02:01:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+pPjWf7Vfdx7vi7BS36R6gKKQ9SxTaLXegbGdRW8wjjByN52Z8+yY+59SSWFtWT+jZ8sy X-Received: by 2002:a92:1e07:: with SMTP id e7mr18581279ile.260.1626858093074; Wed, 21 Jul 2021 02:01:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626858093; cv=none; d=google.com; s=arc-20160816; b=w8H7A9GgVpj4Tp4lDsrMHdzFTZDeR1EFA80tTvrv4ztDjbGHyKbbSfGmALXpcD2T9e G3/tL6B7plb8u+D8u1PeVnC71SRzJIF/vkmYMr7FaSUI0m3oYu263PFVq2MOM8bX8r0Q Gwz+lMBIV9+jRb75imZ+IPX4X/z55EBO5SPXbbAb6hFghrr9lGdQxhN+q5fconBjqjDH Y0u0g6w2suRL5Qs4qvfvrDuklh1ivVQ8Z0fT75lsCH2OtBWXSO5EiexnzD2vSxzLf/6X 4S16ffrTvc4HKk6U59Cs2ArRaKXXp9f3s2JjPS1erKUIUI5T9ThDDvkztfEu0SsOM3MN NSNA== 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-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=w8kKj7bkOOwJjVxKXzVDmG6siVSXZakzR40tpDeNIys=; b=Fl0GyPWIGXYMoj8oDGN1L6lDKQuAgcrfiGuWhCtQurYtf39B7LbRa4TrKytXaYjsRO LxNjxwbXGZx26V2egBZO+U4bTbuyPeNr9YQ8h1RFJRfcX+ftRZe61d/sIaBzkx/SjSzh PcdgHuiiCfButI7Ggnapl6fXrAfZE6McRb/gHM4Wr+nok1i/Q7iI5WlrnlDU2QSAkcbV pI+6F/2BnRH5m+n3TWQn4wteBQsPJ+v98KG5z8G8sTUjYKIIysw8bJLBQviCqXRG8Vnf qAgyZJ9m7BZfYxLErzP4zva06MjwVkqDYbviK/Ygwrr+1T3yePRAGg8RBnkarzRuCkjz sGNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d187si28682632iog.56.2021.07.21.02.01.22; Wed, 21 Jul 2021 02:01:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237678AbhGUITW (ORCPT + 99 others); Wed, 21 Jul 2021 04:19:22 -0400 Received: from mga12.intel.com ([192.55.52.136]:61620 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236634AbhGUIGf (ORCPT ); Wed, 21 Jul 2021 04:06:35 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10051"; a="190980767" X-IronPort-AV: E=Sophos;i="5.84,257,1620716400"; d="scan'208";a="190980767" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jul 2021 01:42:28 -0700 X-IronPort-AV: E=Sophos;i="5.84,257,1620716400"; d="scan'208";a="576286338" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jul 2021 01:42:27 -0700 Received: from andy by smile with local (Exim 4.94.2) (envelope-from ) id 1m67o5-00GYvS-Op; Wed, 21 Jul 2021 11:42:21 +0300 Date: Wed, 21 Jul 2021 11:42:21 +0300 From: Andy Shevchenko To: Jean Delvare Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/1] i2c: parport: Switch to use module_parport_driver() Message-ID: References: <20210712141119.22426-1-andriy.shevchenko@linux.intel.com> <20210721102146.66a486bc@endymion> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 21, 2021 at 11:37:45AM +0300, Andy Shevchenko wrote: > On Wed, Jul 21, 2021 at 10:21:46AM +0200, Jean Delvare wrote: > > On Mon, 12 Jul 2021 17:11:19 +0300, Andy Shevchenko wrote: > > > Switch to use module_parport_driver() to reduce boilerplate code. > > > > This has the downside of moving the sanity check of the type parameter > > to run time, instead of driver load time. In particular this means that > > loading the i2c-parport driver without specifying the type will no > > longer fail. > > And this is actually an advantage of the change if you think about it. > Now we can have a module that won't fail at boot time and give the user > a chance to amend parameter at run time if it was wrong at boot time. Okay, for built-in driver it might require to check and fix permissions of the parameter sysfs node (currently 0). > > The driver will load successfully, but won't do anything. > > > > While I prefer user errors to be reported as soon as possible, I don't > > really mind here, as parallel port drivers are not something worth > > debating over at this point in time. As a matter of fact, I can't > > possibly test this change as I no longer have a parallel port on any of > > my systems. -- With Best Regards, Andy Shevchenko