Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp729117pxj; Wed, 16 Jun 2021 12:10:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4lVAnxRlxQXnb60ZbTuvopwQjenawNMODg0y24fwQHB3xvL70B9iNbvvCLcSc6Tzg5+LZ X-Received: by 2002:a17:906:4e06:: with SMTP id z6mr1104881eju.34.1623870648303; Wed, 16 Jun 2021 12:10:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623870648; cv=none; d=google.com; s=arc-20160816; b=mqKrRbSN24FY9iukgo2IfE3vcVTPWPfzfIvILKPxL35ajw8vNn7PctNZhkqOg/ho+x 6E/u8wVQK93sneB6qKSdG7erupB1/h9tnMJNtEUIxYXBS1w9/8cgh8ohoI9bRNaT5lhQ cKchJfQPraDdBhT7DL+ugH3Jgvj1aJdiXG+jwHBv5TIDVeko+UwVO9ZVEGsci4lRGo4o Ey5oXX6mgo/WA7Fb7tuNfg4xq6ToBfBE53Xmap+mLQEhJYbIFseBHSdH4p+STegyQTre P2B3xyGsZP+M0TEYIhtcbcXkofL/A9YJ1aZOSgj4VXaZcveL4jVbpLHZ+++t7fyPkiJ1 QmjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=IuG5E5v662zlRRbPoTwqHX1uAP8TuZHgM9GqG1khquk=; b=DDclHYiz81i0iJOkEIJ6d78wGOSX/wTiVIfrgmUk+C2fP0rKltLrrVUCMESx3VonZv qlybcejplE03UC8LjdtfvtgpZXsSoJpoPp3wV3b/BhQuA2cdGlVLZNgn3UzjpqdamDXP mevJqV9UC/gujNBnZY45RASwlzrKrABQC5VAGglbpAaLBPOBywYTRDvFDx+uI1vMXjz4 p+9aLvTflLs+JIlQlY9VcnFk0m+1dk/aVrW4jftoHyRXz8RdXr5ZmhocInTLnH0A8sNy bRh3dVmZaB7uHd1nf4DRzOwr08HI0Di7ClUgGNmZx/IKh3HbSMpmXOfwk7ZN6aUv4znt AzVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KMBdMHaP; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 5si3013205ejl.332.2021.06.16.12.10.25; Wed, 16 Jun 2021 12:10:48 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KMBdMHaP; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234160AbhFPOqr (ORCPT + 99 others); Wed, 16 Jun 2021 10:46:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:33936 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234052AbhFPOqq (ORCPT ); Wed, 16 Jun 2021 10:46:46 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id EB14161042; Wed, 16 Jun 2021 14:44:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623854680; bh=1BSDaNQfE0DNGtfdmLGFdoYfoKAolCav5h+KOT8hnZM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KMBdMHaPk4tcoim9Cf8E6+4hbVInOAJrTUS++kPLhNfAlRUuN0twPoB66ean9WtQy U53L1quxFEoyj8bIeeOJy9Ekg0MSV+94zjLRFUgtvmK03D0eMjbb3XhNFYJhq3cxve FWuK/qKy/dxL757KqLi4WU3r6x+SjKfOZs00QhkM= Date: Wed, 16 Jun 2021 16:44:38 +0200 From: Greg Kroah-Hartman To: Andy Shevchenko Cc: linux-kernel@vger.kernel.org, Rodolfo Giometti Subject: Re: [PATCH v1 1/1] pps: generators: pps_gen_parport: Switch to use module_parport_driver() Message-ID: References: <20210616143121.46059-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210616143121.46059-1-andriy.shevchenko@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 16, 2021 at 05:31:21PM +0300, Andy Shevchenko wrote: > Switch to use module_parport_driver() to reduce boilerplate code. > > Signed-off-by: Andy Shevchenko > --- > drivers/pps/generators/pps_gen_parport.c | 44 +++++------------------- > 1 file changed, 9 insertions(+), 35 deletions(-) > > diff --git a/drivers/pps/generators/pps_gen_parport.c b/drivers/pps/generators/pps_gen_parport.c > index 6a1af7664f3b..565f99782402 100644 > --- a/drivers/pps/generators/pps_gen_parport.c > +++ b/drivers/pps/generators/pps_gen_parport.c > @@ -20,8 +20,6 @@ > #include > #include > > -#define DRVDESC "parallel port PPS signal generator" > - > #define SIGNAL 0 > #define NO_SIGNAL PARPORT_CONTROL_STROBE > > @@ -180,6 +178,11 @@ static void parport_attach(struct parport *port) > { > struct pardev_cb pps_cb; > > + if (send_delay > SEND_DELAY_MAX) { > + pr_err("delay value should be not greater then %d\n", SEND_DELAY_MAX); > + return -EINVAL; Note this is at a later point in time than before, are you sure this is ok? > + } > + > if (attached) { > /* we already have a port */ > return; > @@ -223,6 +226,8 @@ static void parport_detach(struct parport *port) > hrtimer_cancel(&device.timer); > parport_release(device.pardev); > parport_unregister_device(device.pardev); > + > + pr_info("hrtimer avg error is %ldns\n", hrtimer_error); Why is this line needed? When drivers work properly, they are quiet. I know the existing code has it, no reason it needs to stay here, that's why we created these macros, to remove the ability for drivers to be printing junk like this that they do not need to be printing. thanks, greg k-h