Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1031967rdh; Mon, 25 Sep 2023 00:38:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHrGF5p8zMQ5YJpDiSlPAVv3RcAL7pkbxFrGMpXieawBOV+JZAM+363HRmYvcc/7yiYmzd1 X-Received: by 2002:a17:902:db06:b0:1c0:cbaf:6954 with SMTP id m6-20020a170902db0600b001c0cbaf6954mr11080944plx.25.1695627485623; Mon, 25 Sep 2023 00:38:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695627485; cv=none; d=google.com; s=arc-20160816; b=ZBf1XKHgdMYdls+aIF1T9Q+Ltg4cEGdVpXz38R8bkPJyvKaH1GsCl8WV9mqOLtKv4k ZeUqzHxhdKAzySH6VjoaHYSYL9IzObGa9zidAMP+pL3ZjNy/aBhTpl06QM5Xgs0q5hsT leObQa8KGt+gALQnxVZky/KsBcu+KTK83RgXU82BNDZhD1jNqtSJzC+8wcmmaUkXa2sb 2Z3Nv757UdhlG6B8AXHwvIb7EW5z6JSrXT6yrSpvxY9w341n4DoE2rHIZwsCy8A98W08 g0P8NPyRWZif+FLACmdtLXJVUSWL6A+NfW5Aotc7BplS/UMyI6Z7V4S6m4cm1JCs/1G/ SemA== 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; bh=+Jfu/O5N+f09HG658n0CaGpMkKqDq4cXUtsm1fvfLIo=; fh=dlWaF0ouAk38l6ZadWZzGtL4PI4M8Q/efUW65rhq1u0=; b=naajxQrUDpK/JqSirgxPBKYbDUVPrwA5sRnWW+073BANd/1r656W+UhV8Z5atBfrj0 Dfw1ILI6PBPvfRgBZIGZR8itVfIY37IMFjI1V+GvGMYxfHZXENJGlyZWl1u/MxQSlhi5 PIpr4hIKq4nLzvh3s493wwKHjNOr7hCRIxgQk8UqqUzR/vCnxhN0i+ft9QKws5AVknLI U7RBx/PSi2yTSwvw56A1yDQLiFM6wooPDFf719sEDQk+wNNOMtRcv4NO2nXWWqVTjomV DKRA03XiZt7Z+GN2xmYzs/q3sycyEZ5DCOAoCOOHysJCRmolamV3GAMa0C8OCgjwH/g/ 5OIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id u7-20020a170902e5c700b001c61073b06bsi2913110plf.427.2023.09.25.00.38.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 00:38:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id A0D7D80A99B6; Mon, 25 Sep 2023 00:37:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231967AbjIYHhL (ORCPT + 99 others); Mon, 25 Sep 2023 03:37:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232075AbjIYHhI (ORCPT ); Mon, 25 Sep 2023 03:37:08 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0B18139; Mon, 25 Sep 2023 00:36:49 -0700 (PDT) X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="381097339" X-IronPort-AV: E=Sophos;i="6.03,174,1694761200"; d="scan'208";a="381097339" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Sep 2023 00:36:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="724898625" X-IronPort-AV: E=Sophos;i="6.03,174,1694761200"; d="scan'208";a="724898625" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga006.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Sep 2023 00:36:45 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC0) (envelope-from ) id 1qkg93-00000000HT0-0yv5; Mon, 25 Sep 2023 10:36:41 +0300 Date: Mon, 25 Sep 2023 10:36:40 +0300 From: Andy Shevchenko To: Duje =?utf-8?Q?Mihanovi=C4=87?= Cc: Daniel Mack , Haojian Zhuang , Robert Jarzmik , Russell King , Alan Stern , Greg Kroah-Hartman , Linus Walleij , Bartosz Golaszewski , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-gpio@vger.kernel.org Subject: Re: [PATCH RFC 5/6] ARM: pxa: Convert Spitz hsync to GPIO descriptors Message-ID: References: <20230924-pxa-gpio-v1-0-2805b87d8894@skole.hr> <20230924-pxa-gpio-v1-5-2805b87d8894@skole.hr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230924-pxa-gpio-v1-5-2805b87d8894@skole.hr> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, 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 pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 25 Sep 2023 00:37:10 -0700 (PDT) On Sun, Sep 24, 2023 at 06:42:58PM +0200, Duje Mihanović wrote: > Sharp's Spitz still uses the legacy GPIO interface in its wait_for_hsync We refer to the functions as wait_for_hsync(). > function. > > Convert it to use the GPIO descriptor interface. ... > + hsync = gpiod_get(NULL, "hsync", GPIOD_IN); > + if (IS_ERR(hsync)) > + pr_err("Failed to get hsync GPIO: %ld\n", PTR_ERR(hsync)); So, I didn't get, is this GPIO crucial for functioning or optional? If the former, we need to stop here or bail out (if possible), do we? Or should use _optional() API? -- With Best Regards, Andy Shevchenko