Message ID | 20210331175041.2122432-2-sean.anderson@seco.com |
---|---|
State | Changes Requested |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=secospa.onmicrosoft.com header.i=@secospa.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-secospa-onmicrosoft-com header.b=YTXXaaii; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4F9YlR4XHxz9sVt for <incoming@patchwork.ozlabs.org>; Thu, 1 Apr 2021 04:51:13 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 10CF2828A4; Wed, 31 Mar 2021 19:51:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=seco.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=secospa.onmicrosoft.com header.i=@secospa.onmicrosoft.com header.b="YTXXaaii"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A390A828A4; Wed, 31 Mar 2021 19:50:58 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on061b.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0d::61b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id ACAE081FBA for <u-boot@lists.denx.de>; Wed, 31 Mar 2021 19:50:55 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=seco.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sean.anderson@seco.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jgFy9H62Pbs5TGgQVzc2ucdJVnkBQSpyKuyihgKSnfIP0yoEOSgODknCmZWrIVwcWvy6UvHDm/m1du1VnIWIRAEyB4RmD4YpOQXeMt4DLD608GZcn63h3KBPzQm6EhcRkUhe1bWuUptA4nCIi3pcmnhb4qYfg6ZN4+XdM+SlH+T6EJO9O23e7vcXGBRyLn533qOTbCRxysxcdr1GYG+DxX4TScb+NXBa/xdZulFNMjv6VrwTgQd6Vvjp3+oGPSq+gV0DDIDxywenDO4w9raicGwFwl3FB2YcVlx2/gnrEXGeFk0QPuvcvpxmq2h+j4Q9H//gsLsiRNFR4HtgO6nvLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MV5W8ld6zHhnXv1k6RC4s4QKUf6wSRpfKYF/ML5pqcI=; b=kZX4zuupogEjxKa2e/+eDfgVzxD8WTFDB/cjO/MpNCwHBUWTWSXeSmzKuVfifnC52rcK1sLF2Y2QjXja1pCfS3wCRJnyII8Fy6T5Jpx3O9zikialN5PsF4k+T5wuBQNt40TBWjQMJLOB6jHweoRdbmsu0dvV/gi5OMRd0W/OkytYwTV9sceJREWP8TRZUJSNCB0mTIMSGG+5JGHwrX3RLnpbhL9u8dsVAFfp13n+5cEQoQYgHzWEh15cSjBoX4Gd/X1DMFnLoD1pa8mEArPgR7c15QybfP0t+TihICL4UCdoq2uNZBKQ47aS2klL06v2WMXMtmvtVDUOvCcBDI1lkg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=seco.com; dmarc=pass action=none header.from=seco.com; dkim=pass header.d=seco.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secospa.onmicrosoft.com; s=selector2-secospa-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MV5W8ld6zHhnXv1k6RC4s4QKUf6wSRpfKYF/ML5pqcI=; b=YTXXaaiimgpv2/W7FEkbSjRMDan0CwRexprpiFz5kXHFQdU0H4WHtudVBRNsACvKUP9sPjtkCwezNxWtcORlelhmWJXShBFNdVV/MyhpvxLPf9JXGkbcpcKqLlXX/0BuZMoiQvLFLdJxvjtjZapfwO84gdnzH1Q8ro4xR3GesGg= Authentication-Results: chromium.org; dkim=none (message not signed) header.d=none;chromium.org; dmarc=none action=none header.from=seco.com; Received: from DB7PR03MB4523.eurprd03.prod.outlook.com (2603:10a6:10:19::27) by DB6PR0302MB2629.eurprd03.prod.outlook.com (2603:10a6:4:aa::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.31; Wed, 31 Mar 2021 17:50:54 +0000 Received: from DB7PR03MB4523.eurprd03.prod.outlook.com ([fe80::a102:77c6:a933:8922]) by DB7PR03MB4523.eurprd03.prod.outlook.com ([fe80::a102:77c6:a933:8922%7]) with mapi id 15.20.3999.027; Wed, 31 Mar 2021 17:50:54 +0000 From: Sean Anderson <sean.anderson@seco.com> To: Simon Glass <sjg@chromium.org>, u-boot@lists.denx.de Cc: Sean Anderson <sean.anderson@seco.com>, Heiko Schocher <hs@denx.de>, Jean-Jacques Hiblot <jjhiblot@ti.com>, Patrick Delaunay <patrick.delaunay@foss.st.com>, Pratyush Yadav <p.yadav@ti.com> Subject: [PATCH v3 1/5] dm: gpio: Fix gpio_get_list_count failing with livetree Date: Wed, 31 Mar 2021 13:50:36 -0400 Message-Id: <20210331175041.2122432-2-sean.anderson@seco.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210331175041.2122432-1-sean.anderson@seco.com> References: <20210331175041.2122432-1-sean.anderson@seco.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [50.195.82.171] X-ClientProxiedBy: MN2PR18CA0014.namprd18.prod.outlook.com (2603:10b6:208:23c::19) To DB7PR03MB4523.eurprd03.prod.outlook.com (2603:10a6:10:19::27) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from plantagenet.inhand.com (50.195.82.171) by MN2PR18CA0014.namprd18.prod.outlook.com (2603:10b6:208:23c::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.26 via Frontend Transport; Wed, 31 Mar 2021 17:50:53 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 52cd9af6-d7b6-4cc9-cd4a-08d8f46d87d9 X-MS-TrafficTypeDiagnostic: DB6PR0302MB2629: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <DB6PR0302MB2629FFCB24D26E0E64179E97967C9@DB6PR0302MB2629.eurprd03.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:167; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pEJRdppgWCnyT+ixR4/6pEaDYRwysnrXxRFBe92pPCBoVaellEojgXwX4GFH6zDkufmORFpwqI5XzSNXubZ5PcJkSWitZ9AugRfQwo0VREwlz0v9BkreFPdSCp2Nf+KQ2aY31scq907FNF86FeAnFy8C6x/dd/1otwVTvjoZDDd3HsYvK+8ZMvZUOyAkBjvpEjz6k+PRKyIDLEdlpsKIo65w4sakM1enkKaejq7+2m1fb6rKlBw4hvL8Ay8Q3+AnSSaIQ7R7VotUX8Y3s36goOsvoiPi46VdGPNC7H5mm+pXo/huA58fq042kGxc5lUJKIEJo3bAlwUZQ0VO6Jvx+F05Z5af8RSNWRiSYWIABS2El2pDLH8ZoZnQeUpWZ0PKKmM6u88mxYMqKXzye7iBLZxzCrN3o4ogyONp2J7Qlkhje+kaEPs2Z34C53qji10SeAihV72d7DyYYnp967SoVc99KIqZYGZ7rABvi4SR4RuzhfP9DPawCnaQSWJFXQUSqP7tQ7Ve4QoxSmf9jzXgYgsm8Ym8fkXIX319FxorXjBxk6aPFC+qj3/9rlfYWgZzci8tW7SeWlMRRCoakcQyKWrQxrYEG+r9H6GPDSycW/+s2B8x9fX5d52cxk9QkueOV7pBDF6R+hHhk1zjcoxVFg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB7PR03MB4523.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(346002)(376002)(396003)(136003)(366004)(39830400003)(2616005)(6512007)(83380400001)(4326008)(38100700001)(16526019)(956004)(1076003)(5660300002)(6666004)(86362001)(6486002)(44832011)(316002)(8676002)(26005)(478600001)(66946007)(36756003)(52116002)(2906002)(54906003)(66476007)(6506007)(8936002)(66556008)(186003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: A23dksXJZQTG5zbJGdje0WAXU7b77Xs0NF75k+mykBE8GkngIZHzXjV+dZCZ3TsU3M9Olb2CghfjoKeUCGXQ+XAswUiS8XTRu2hXGMYUKxhrRLloIG/SRqBoBukK5PEvEhjzcJmPoisKSZ2mJkya77U1qd7CyUcVL48OW7WJ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QTh9WYTf3a0aQJiO9DlKnlBHWdD7IL7h/WWu936CmLXP6VcYsj5NRXoCgqHlMDXUr2ZSuJaGjEzYZ+14dHrDrKOWAiOVdw/x X-OriginatorOrg: seco.com X-MS-Exchange-CrossTenant-Network-Message-Id: 52cd9af6-d7b6-4cc9-cd4a-08d8f46d87d9 X-MS-Exchange-CrossTenant-AuthSource: DB7PR03MB4523.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2021 17:50:54.2944 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: bebe97c3-6438-442e-ade3-ff17aa50e733 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: WsEi6olRCpopdlbhKs6T/Z428ikgaBkxTnHe/nTJE8J8KgictMJCEFzniHnJMwu8jeB4gglQCxtLWWgH7q1CUw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0302MB2629 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean |
Series |
sysinfo: Add gpio sysinfo driver
|
expand
|
diff --git a/drivers/gpio/gpio-uclass.c b/drivers/gpio/gpio-uclass.c index f24db87ef0..ac362f007d 100644 --- a/drivers/gpio/gpio-uclass.c +++ b/drivers/gpio/gpio-uclass.c @@ -1226,9 +1226,9 @@ int gpio_get_list_count(struct udevice *dev, const char *list_name) { int ret; - ret = dev_read_phandle_with_args(dev, list_name, "#gpio-cells", 0, -1, - NULL); - if (ret) { + ret = dev_count_phandle_with_args(dev, list_name, "#gpio-cells", + -ENOENT); + if (ret < 0) { debug("%s: Node '%s', property '%s', GPIO count failed: %d\n", __func__, dev->name, list_name, ret); }