Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3256548pxf; Mon, 15 Mar 2021 05:36:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPq2P39ZVjrv1GBikt7QZTV/mtbUEKbuD97tz/SagHYI+rMelylhCBkRLSw3t48eCv+IL/ X-Received: by 2002:a50:cdd1:: with SMTP id h17mr29694137edj.178.1615811791360; Mon, 15 Mar 2021 05:36:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615811791; cv=none; d=google.com; s=arc-20160816; b=pho58bmcQ+k9hV65o+OnGM2rJhaa+tIy0hUm49Cjc7dQr4JNcljkCglIEKbLAAhK06 oTH/o65ryrHG5vDvaDK5tsyzNrVE881ntKMdjCmQZPJGQvFEi7z/5rVy07IjEmlE8WKT gfhYkB8iktPUA2buXlNW+Hpl6Ll+7a/H2vAz6Xqau2yFgOjoPaT1QGfFbemCdRF3qEy5 L0uxWr+LihabvxZVj8DtZhlLHWgLzrnoTjEMj2VJINqfWfhbti+/F/NnXkwaXPPAxT20 dDPLrC8Yq08gy57IniytaAny7CiJGobQ1dmJu7Zqq6Nv9hYgTo1nmxcIG0OeyCX0ufhd nrNQ== 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 :ironport-sdr:ironport-sdr; bh=dW6Qm2BiXQeEQxqwYfoM7xqEMthiMD/zSQhy+50VNzA=; b=ynv8UCKdNmuWylyJZ+fRw7KQM+PsubA5KtPhLhsAqQqmhEkCxFlbuq4Qw305wuywY8 Kx1jqeMV0tST9IkGUbvIK4XQEa9hEg2ETyDxurznsWfOGXvno1nugq8IdijNvw7+Iwab Ji7C4w2smeNIsLw/WYfX8IYOk0YjDQd0uwsjneHJKCf/WqEhjId5G/XhZnQK1w+RGkAv KLlTlotPLJHXE1tmeL5bzNvsuoSt7cK2N1Ohnb2gdg6VPGzZeIWl4R9Sx7fp3bV+bbfS 2NKQANdgkD39b5tRY2sj6nzZNZP4iWo29xIGEcy7HapWuTg12XH9V2YGZy4S7k0eaxUo q1fA== 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 bq23si11089094ejb.498.2021.03.15.05.36.09; Mon, 15 Mar 2021 05:36:31 -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 S229734AbhCOMfJ (ORCPT + 99 others); Mon, 15 Mar 2021 08:35:09 -0400 Received: from mga14.intel.com ([192.55.52.115]:57156 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229591AbhCOMfD (ORCPT ); Mon, 15 Mar 2021 08:35:03 -0400 IronPort-SDR: cW9U5hcq9HmL+T3sYj/E6FZZHErGhnWJHbKxOrRb20lgqQ6Tf+bvfX4sEyBXgVwDQ2V2EZgL0v wMqEi3VS7xdg== X-IronPort-AV: E=McAfee;i="6000,8403,9923"; a="188438200" X-IronPort-AV: E=Sophos;i="5.81,249,1610438400"; d="scan'208";a="188438200" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2021 05:35:02 -0700 IronPort-SDR: RJ6GDEBA3wPOFqp8VhbHNMrFjGOFCIsv4syef9hLQcHO2D6RKcrj7/S5ctRNM1dWttLAbmrwj3 AUVQ8UfOa64w== X-IronPort-AV: E=Sophos;i="5.81,249,1610438400"; d="scan'208";a="371613548" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2021 05:35:01 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1lLmR0-00Cfus-Kd; Mon, 15 Mar 2021 14:34:58 +0200 Date: Mon, 15 Mar 2021 14:34:58 +0200 From: Andy Shevchenko To: linux-kernel@vger.kernel.org Cc: Rodolfo Giometti , Ryan Govostes , Greg Kroah-Hartman Subject: Re: [PATCH resend v1 1/7] pps: clients: gpio: Bail out on error when requesting GPIO echo line Message-ID: References: <20210309112403.36633-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210309112403.36633-1-andriy.shevchenko@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 09, 2021 at 01:23:57PM +0200, Andy Shevchenko wrote: > When requesting optional GPIO echo line, bail out on error, > so user will know that something wrong with the existing property. Greg, can you apply this series? > Signed-off-by: Andy Shevchenko > --- > drivers/pps/clients/pps-gpio.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/drivers/pps/clients/pps-gpio.c b/drivers/pps/clients/pps-gpio.c > index e0de1df2ede0..f89c31aa66f1 100644 > --- a/drivers/pps/clients/pps-gpio.c > +++ b/drivers/pps/clients/pps-gpio.c > @@ -119,12 +119,12 @@ static int pps_gpio_setup(struct platform_device *pdev) > data->echo_pin = devm_gpiod_get_optional(&pdev->dev, > "echo", > GPIOD_OUT_LOW); > - if (data->echo_pin) { > - if (IS_ERR(data->echo_pin)) { > - dev_err(&pdev->dev, "failed to request ECHO GPIO\n"); > - return PTR_ERR(data->echo_pin); > - } > + if (IS_ERR(data->echo_pin)) { > + dev_err(&pdev->dev, "failed to request ECHO GPIO\n"); > + return PTR_ERR(data->echo_pin); > + } > > + if (data->echo_pin) { > ret = of_property_read_u32(np, > "echo-active-ms", > &value); > -- > 2.30.1 > -- With Best Regards, Andy Shevchenko