Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1999641rdh; Tue, 26 Sep 2023 09:18:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IERhMarL1Dcp1gXwfQGRpqgmR+ulfzEkL1tFHba+H4gas9Zbyc+UPc4aiw9raWj4Q4HblNY X-Received: by 2002:a05:6a20:12ca:b0:149:700e:f50a with SMTP id v10-20020a056a2012ca00b00149700ef50amr4876927pzg.29.1695745103169; Tue, 26 Sep 2023 09:18:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695745103; cv=none; d=google.com; s=arc-20160816; b=jxHGehdBX4TS4lg01QnIbd+/NEkLS46Xdcs3YWGDTOa0O9zCgSexyR8a/YOiXsJFF4 TwPmDmpzY1A/C6XivBfElCVcRmyLYuAYK3ripAEzkbBo1vMlQ3aA3AZ0hyEGPJ9PAhr7 /xlI8FjGKmT/En4+/T1A+n5e+IEiGX5rKbwoRa2PN4jtXKnx7WoTTO2lL9bxEyiQdA5z ufgnCS+QZ7VhQgCRj9qp6w1AUFLr+fEbgP8rLNJesCmhZBZzEwXTmFTJPHCvkYS4B3Mp jqjn6Mw9afmCUTRohOBKiVFdhXLNF19XW5VPPbmsnZJw/T/d231Kc95SYsVTr9uU++qW xkZw== 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=6gCbvPypAP5xjBrUf88fkZwdnPVTjs3h5Pq2KMf1ntM=; fh=dlWaF0ouAk38l6ZadWZzGtL4PI4M8Q/efUW65rhq1u0=; b=Zpb/L9PaYXr7Obmm2id76gkqFRg0OO5OeyAqMhh/id7YMhoYNttrlGwcOTdQN5zShd oWqt3gNVkcn2QWSuLnRoimbwAe+xvtMBlMNoZ7E+dwbO3y7Z3t0LdR/1WMoYZTkTC7Jj xOA7DpHHrHdvZJWnCtN5WyORBwFR0ZmkCTN73bePIARssMbSIpuM689889LJbgb97wGY MscZcj9B7idSKI8wrKAoDqMO9wowyYffMfbewUmAzCNsXGDECOrcvlNvCCUxXO9xP06h pKAjcb8Tik3WefzuB3ix2Hbz6EU0sS7GRwSu9kXRwWeQC42VBkYJD1wsKZQMDD0+B0Aj V37A== 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:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id l195-20020a633ecc000000b00578d2d19575si13136958pga.237.2023.09.26.09.18.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 09:18:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 7E881805FD52; Tue, 26 Sep 2023 09:16:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235212AbjIZQPz (ORCPT + 99 others); Tue, 26 Sep 2023 12:15:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235152AbjIZQPw (ORCPT ); Tue, 26 Sep 2023 12:15:52 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD0EFAF; Tue, 26 Sep 2023 09:15:45 -0700 (PDT) X-IronPort-AV: E=McAfee;i="6600,9927,10845"; a="384385545" X-IronPort-AV: E=Sophos;i="6.03,178,1694761200"; d="scan'208";a="384385545" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2023 09:15:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10845"; a="819081097" X-IronPort-AV: E=Sophos;i="6.03,178,1694761200"; d="scan'208";a="819081097" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga004.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2023 09:15:41 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC0) (envelope-from ) id 1qlAio-00000000eyB-14fX; Tue, 26 Sep 2023 19:15:38 +0300 Date: Tue, 26 Sep 2023 19:15:37 +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 v2 3/6] ARM: pxa: Convert Spitz CF power control to GPIO descriptors Message-ID: References: <20230926-pxa-gpio-v2-0-984464d165dd@skole.hr> <20230926-pxa-gpio-v2-3-984464d165dd@skole.hr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230926-pxa-gpio-v2-3-984464d165dd@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 groat.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 (groat.vger.email [0.0.0.0]); Tue, 26 Sep 2023 09:16:03 -0700 (PDT) On Tue, Sep 26, 2023 at 05:46:24PM +0200, Duje Mihanović wrote: > Sharp's Spitz board still uses the legacy GPIO interface for controlling > the power supply to its CF and SD card slots. > > Convert it to use the GPIO descriptor interface. ... > + cf_power = gpiod_get(&pxa_device_mci.dev, "cf_power", GPIOD_ASIS); > + if (IS_ERR(cf_power)) { > + dev_err(&pxa_device_mci.dev, > + "failed to get power control GPIO with %ld\n", > + PTR_ERR(cf_power)); > + return; > + } > + gpiod_put(cf_power); Don't you want to use guarded gpiod_get()? Okay, it seems not yet in the pending list, but we can survive without that. -- With Best Regards, Andy Shevchenko