Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp889363rdb; Sun, 1 Oct 2023 09:36:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF0blTkfar6jm4Hzq6scBL6i7UlWX/yMmaVALGThaBGWYMiWrDeEaEZ9Ts75o0g5bAJfbjD X-Received: by 2002:a05:6a20:3945:b0:14c:4dfc:9766 with SMTP id r5-20020a056a20394500b0014c4dfc9766mr9135579pzg.46.1696178162438; Sun, 01 Oct 2023 09:36:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696178162; cv=none; d=google.com; s=arc-20160816; b=aZ6QlR0ejo97EnrWve3ZYSxmoFU7lxeXCxmDZMUxGDGfpGULuKhzG5mPbHTj14huTc GHTubUIAn53WDKpQLvsJ7fzAQ3cp2KJujQtRUIQUYYHS1Khj5zaJsgHmxPdeSrGnH06Z Gud+R2nrMWxsdrid6sqIlcJFSLtU8LbXKozEBniXFaE6tav69CVtU1Rdka403QjrwTCi i+j0mhK/d4onPWQ+tvh0WM667/UYk5D6HSOdMCigTJkHB+W/j7YKfN8m1zpAysmFRBs/ 2QYwe0XwCI/gQxTvW/fzZjsUKGbOTSv7e+aGDTqOYUs7oJv6P3HWFMNMfoftELVpHR/5 /AvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=g3Jav5+6DUIs7KX+qZ3JaZt9JVupViQnJo5QGYgH5Mc=; fh=8cwGh3PX0tKRS/k+k9rLojZhhupzfpttKpOjs3mxuRw=; b=0YGTfwlNrAERZNLIuDKfDbC0AYp/q1OHNFTq9pCaj0nHLkrHM3GW4CqLnDRwAos2Nv 5/K46EI5MH/ubQgrghAJfjSynoo7P4Kc+5dFttT7McUTZxm4sflCEA1VskvfaNowgNyZ wXbwuY2OUTvYZnpqkOCZFDum5bx+1V6qxKqU1zRMzdSxsCnLs0Kt3PearrumYCWq6Stn VJchhCdSW7cQEhvyL1oVvOnLijIbso6Hh1TNCPv+ptmrKi4vouxSjuUOy5TmRHLdmrNH fO8wKgl+BkFLs9NqPAgzLMc8l/j+BXw0on80uPcombmx7OCCH5chKiwtf8IDkEoTTd52 mDFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=g8XVXrit; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id n18-20020a170903111200b001bb2093efb6si27656435plh.45.2023.10.01.09.36.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Oct 2023 09:36:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=g8XVXrit; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id BC4F4805D5FC; Sun, 1 Oct 2023 07:35:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235088AbjJAOdc (ORCPT + 99 others); Sun, 1 Oct 2023 10:33:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233590AbjJAOdb (ORCPT ); Sun, 1 Oct 2023 10:33:31 -0400 Received: from mail-oo1-xc36.google.com (mail-oo1-xc36.google.com [IPv6:2607:f8b0:4864:20::c36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E952ED3; Sun, 1 Oct 2023 07:33:29 -0700 (PDT) Received: by mail-oo1-xc36.google.com with SMTP id 006d021491bc7-57b811a6ce8so7152586eaf.3; Sun, 01 Oct 2023 07:33:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696170809; x=1696775609; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=g3Jav5+6DUIs7KX+qZ3JaZt9JVupViQnJo5QGYgH5Mc=; b=g8XVXritbColFM+++Y8QFPXk6i3peWJ2TjxOXgnEktURGTpBSvi8jwptRf+TftPBf8 5OCQktDLxRnd4Jp49A1Y0fZhYZsZqOeBWhoiyV1AK3QEpfuWFrG12Z3BsGQOV6mx81mH wAC+EzHq1kf/4vQlxZcMqJfMpTVCoZ2C6tA6uVPIPtgS2v4DMUpXKUy4Zxn0FxZperBM oQDNGsbK712uLoVGhfPdS+3Qgtgqg6kxoaDzZ+oFkktzkoqwJhWtb6TV5bygNpH397NV LukTecU3jkMjN/K3s8dQWkM2wBnkbSOzvIByEmbbKjCV+R3C7JvJErFUOszQ+Oo6jvW4 h8NA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696170809; x=1696775609; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=g3Jav5+6DUIs7KX+qZ3JaZt9JVupViQnJo5QGYgH5Mc=; b=TCXpE5FB0nLLNlkr5rgQfQw3qqVTvdVJvWEiYZ7k8QJgcDZg6Dfd1yDqLrwKXtSqVJ z2zc2ER2o4Qgt2FyhibkdAHCCizHd7o/yfgrmo4vaQpT6FRcquB9UgIGEmUXGHgN5DdN qrT+GKpagBXqgwXC/zX2zT7n9mQTKmCtUmEUkuKVzmMHmUmXUQjCiQaj7Fi27/XQEQB8 RCseEA8midy1ifJsXV0fm9OfBcMWYL8NcSFJseYhkYLa2I6A5o4S248V00Ipxr3Qt20e JmTU2RfHttYTeBQvphS8/PywB6lRt6ePx4C/9gunjbb1TXb95aMWARszYCa+xIaV/o4U OX+A== X-Gm-Message-State: AOJu0YxENZjmD1jdtMhmaHLkOOcjJ2JBifNOJ9mCGwFNYSuJOHvtWMug 8Ulc048+xr2c5m9sah7xFLchOhKa7Z4hDG1LGkN/RLI+3yyB8g== X-Received: by 2002:a4a:2756:0:b0:573:bf68:8dbc with SMTP id w22-20020a4a2756000000b00573bf688dbcmr8662181oow.7.1696170809215; Sun, 01 Oct 2023 07:33:29 -0700 (PDT) MIME-Version: 1.0 References: <20231001-pxa-gpio-v4-0-0f3b975e6ed5@skole.hr> <20231001-pxa-gpio-v4-1-0f3b975e6ed5@skole.hr> In-Reply-To: <20231001-pxa-gpio-v4-1-0f3b975e6ed5@skole.hr> From: Andy Shevchenko Date: Sun, 1 Oct 2023 17:32:53 +0300 Message-ID: Subject: Re: [PATCH RFC v4 1/6] ARM: pxa: Convert Spitz OHCI to GPIO descriptors To: =?UTF-8?Q?Duje_Mihanovi=C4=87?= Cc: Daniel Mack , Haojian Zhuang , Robert Jarzmik , Russell King , Alan Stern , Greg Kroah-Hartman , Linus Walleij , Bartosz Golaszewski , Andy Shevchenko , Dmitry Torokhov , Mark Brown , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-gpio@vger.kernel.org, linux-input@vger.kernel.org, linux-spi@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Sun, 01 Oct 2023 07:35:23 -0700 (PDT) On Sun, Oct 1, 2023 at 5:13=E2=80=AFPM Duje Mihanovi=C4=87 wrote: > > Sharp's Spitz board still uses the legacy GPIO interface for controlling > a GPIO pin related to the USB host controller. > > Convert this function to use the new GPIO descriptor interface. ... > + pxa_ohci->usb_host =3D gpiod_get_optional(&pdev->dev, "usb-host",= GPIOD_OUT_LOW); > + if (IS_ERR(pxa_ohci->usb_host)) > + dev_warn(&pdev->dev, "failed to get USB host GPIO with %p= e\n", > + pxa_ohci->usb_host); Since you are using _optional() API, you need to bail out on the error case and replace dev_warn() by dev_err(). I guess I already commented on this. What is the rationale to not follow my comment? --=20 With Best Regards, Andy Shevchenko