Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp5477892rwb; Tue, 17 Jan 2023 14:30:02 -0800 (PST) X-Google-Smtp-Source: AMrXdXtWUnLZH0fI2KKmhsMxhderlSMI3969Z5g3m94QMPY1tT6I8yvlAQi4t5DGAqN+pgaEZDB0 X-Received: by 2002:a17:90a:f297:b0:228:cb86:1f76 with SMTP id fs23-20020a17090af29700b00228cb861f76mr4863358pjb.21.1673994602077; Tue, 17 Jan 2023 14:30:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673994602; cv=none; d=google.com; s=arc-20160816; b=iqjHjv8fgkCy+JU0ZlPI9vXHph8in91t9S4YBP0Sx4saWzXWLS9vIT2x7fRHKkYhxh VBsGqZIvz2EwYQzVmjIU7BDwJLY2fUqhgHsKvvMOrWtxege/pAW4JsUeC0yHWa+6IHm/ bHG2lJVBwhy/76fJu4mJ/HJyrUd0kJl6aTvgULpoflnESrXN5asIBhcWLlvxmQpkGvTo ABnqCFUquzbdtZ8VhP5ExYwjdeNm9CyJIDh62Jmt28h6bFdsPk2GvomkVwcTixv8JP8D iqNjESNun8wMNh3F30Bp7g0eLwYidQtD3d7PnZewv5mrX01uaCLaN7+Mk3Jg83DarO3n 5mog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=4AjmrbeLkRHl9VUwyGR8qAetWemt0qiCWTiRfwIoY0g=; b=FTRy+LpvWgF9nfV6U8JkPBDvktKKz5o347zs0RJKMVs4kmgkkehxHJfTiZ8DSWP9Sn EgYrpmmriiaVCte8i7W/gJgJRX6vebd5xDz8fZM/3ZvaXp3dayIXUW/l3ITBbXDlNwo9 21u3DSvAyD0BKrM2nVC2kr/HiTzH4p4kb/6IVDKID+28MxcRycyp2eg3nnrBCVp7GS7V SGU2o6/MgjEbMTpoMe9kWmfhgtQGugrdNbyYi3N9pyBWml6gYB0jMBFgXxV7/kt17RLH rsCZtLUMztlcTsiDF8Vg8HG9mcLY6M29sipC4vnj7vjSdnjo8qVhT2qqNcj+4VUByInU kybg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZxnZSWWV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oe13-20020a17090b394d00b00219c3bb5a63si145389pjb.38.2023.01.17.14.29.56; Tue, 17 Jan 2023 14:30:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZxnZSWWV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229734AbjAQWEW (ORCPT + 46 others); Tue, 17 Jan 2023 17:04:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229727AbjAQWD7 (ORCPT ); Tue, 17 Jan 2023 17:03:59 -0500 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58DBF9EFC; Tue, 17 Jan 2023 12:30:48 -0800 (PST) Received: by mail-wm1-x32d.google.com with SMTP id q10-20020a1cf30a000000b003db0edfdb74so123531wmq.1; Tue, 17 Jan 2023 12:30:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:message-id:subject:cc :to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=4AjmrbeLkRHl9VUwyGR8qAetWemt0qiCWTiRfwIoY0g=; b=ZxnZSWWVNS/IJBg+zqox+aaOnKaQzvheMFTpK3NxkVq1D7qs/gid+4UuTjbjJkuISr YadZM7pbfXUf9hO6QpoJLxdffPnAWQvFwtchHyBL8u9WSAYCIrYsMORVgFDhGd1EN+Fu /Dxj+67F6R5QJRmgZGoHIu7zClWs1Po/d+umcyY4D/adaE58onfTcEeTTA9ScHeidcJv U30yanjpmEmREdRtopDWn0gBdaHqXLTzSnZCJagJ8qFrGnxE8MyktQBJe0PWKkVoCp4i 1a1oU+/9JRiE8KEtf48u5p0vXzgKRDopBSC8Om/whagLagFM9zeX8t9T1w2aqTkh5kjm W0AA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:message-id:subject:cc :to:from:date:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4AjmrbeLkRHl9VUwyGR8qAetWemt0qiCWTiRfwIoY0g=; b=HirObTaOijy0tTEWr6KNZi2CxIRb8HiQXzuf8GiYXiYGs0kZlx3mjNKA/OhHax/Dvn CFMx4eJaPvJT0y81WfKvDd1MBzG9QU3NVa8IMmBOF2RrIWpj+vyvHW29nO8dSGKIYKZH BFANtqmVcD+x68NBNZGbWiBIiOB0BR10kDEsU18PqTeXj7ZCi5SF8fIYXQvlIncSw3v3 RZPtk2vX92tzC1re67O68lnsR1PcUHm1I76T86tQ9mUs9H84CuHB1vMDHXjayiugr8sL qWXH9w7SmnE5uEX7GfsFJUi5G8SAuf3MYfeFaS0VnkLpddOv4Uy6UtK2kWlD5bmedM26 KTZQ== X-Gm-Message-State: AFqh2kqNCo1gyJh7nqC3gLnTBUmgqljRY5jNoOYlh4jq1kGy/IzxEI3+ Xd+58WW/UsBSkFOrpAu1l1BtTUYreYQxqQ== X-Received: by 2002:a05:600c:6001:b0:3da:f80a:5e85 with SMTP id az1-20020a05600c600100b003daf80a5e85mr4257919wmb.26.1673987446789; Tue, 17 Jan 2023 12:30:46 -0800 (PST) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id l14-20020a05600c1d0e00b003da105437besm21934507wms.29.2023.01.17.12.30.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 12:30:46 -0800 (PST) Date: Tue, 17 Jan 2023 23:30:38 +0300 From: Dan Carpenter To: oe-kbuild@lists.linux.dev, Pierluigi Passaro , andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: lkp@intel.com, oe-kbuild-all@lists.linux.dev, eran.m@variscite.com, nate.d@variscite.com, francesco.f@variscite.com, pierluigi.p@variscite.com Subject: Re: [PATCH] net: mdio: force deassert MDIO reset signal Message-ID: <202301180330.5rmOhXOw-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230115161006.16431-1-pierluigi.p@variscite.com> X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Pierluigi, https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Pierluigi-Passaro/net-mdio-force-deassert-MDIO-reset-signal/20230116-001044 patch link: https://lore.kernel.org/r/20230115161006.16431-1-pierluigi.p%40variscite.com patch subject: [PATCH] net: mdio: force deassert MDIO reset signal config: xtensa-randconfig-m041-20230116 compiler: xtensa-linux-gcc (GCC) 12.1.0 If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Reported-by: Dan Carpenter smatch warnings: drivers/net/mdio/fwnode_mdio.c:144 fwnode_mdiobus_register_phy() warn: missing unwind goto? vim +144 drivers/net/mdio/fwnode_mdio.c bc1bee3b87ee48 Calvin Johnson 2021-06-11 114 int fwnode_mdiobus_register_phy(struct mii_bus *bus, bc1bee3b87ee48 Calvin Johnson 2021-06-11 115 struct fwnode_handle *child, u32 addr) bc1bee3b87ee48 Calvin Johnson 2021-06-11 116 { bc1bee3b87ee48 Calvin Johnson 2021-06-11 117 struct mii_timestamper *mii_ts = NULL; 5e82147de1cbd7 Oleksij Rempel 2022-10-03 118 struct pse_control *psec = NULL; bc1bee3b87ee48 Calvin Johnson 2021-06-11 119 struct phy_device *phy; bc1bee3b87ee48 Calvin Johnson 2021-06-11 120 bool is_c45 = false; bc1bee3b87ee48 Calvin Johnson 2021-06-11 121 u32 phy_id; bc1bee3b87ee48 Calvin Johnson 2021-06-11 122 int rc; 3f08f04af6947d Pierluigi Passaro 2023-01-15 123 int reset_deassert_delay = 0; 3f08f04af6947d Pierluigi Passaro 2023-01-15 124 struct gpio_desc *reset_gpio; bc1bee3b87ee48 Calvin Johnson 2021-06-11 125 5e82147de1cbd7 Oleksij Rempel 2022-10-03 126 psec = fwnode_find_pse_control(child); 5e82147de1cbd7 Oleksij Rempel 2022-10-03 127 if (IS_ERR(psec)) 5e82147de1cbd7 Oleksij Rempel 2022-10-03 128 return PTR_ERR(psec); 5e82147de1cbd7 Oleksij Rempel 2022-10-03 129 bc1bee3b87ee48 Calvin Johnson 2021-06-11 130 mii_ts = fwnode_find_mii_timestamper(child); 5e82147de1cbd7 Oleksij Rempel 2022-10-03 131 if (IS_ERR(mii_ts)) { 5e82147de1cbd7 Oleksij Rempel 2022-10-03 132 rc = PTR_ERR(mii_ts); 5e82147de1cbd7 Oleksij Rempel 2022-10-03 133 goto clean_pse; ^^^^^^^^^^^^^^^ 5e82147de1cbd7 Oleksij Rempel 2022-10-03 134 } bc1bee3b87ee48 Calvin Johnson 2021-06-11 135 bc1bee3b87ee48 Calvin Johnson 2021-06-11 136 rc = fwnode_property_match_string(child, "compatible", bc1bee3b87ee48 Calvin Johnson 2021-06-11 137 "ethernet-phy-ieee802.3-c45"); bc1bee3b87ee48 Calvin Johnson 2021-06-11 138 if (rc >= 0) bc1bee3b87ee48 Calvin Johnson 2021-06-11 139 is_c45 = true; bc1bee3b87ee48 Calvin Johnson 2021-06-11 140 3f08f04af6947d Pierluigi Passaro 2023-01-15 141 reset_gpio = fwnode_gpiod_get_index(child, "reset", 0, GPIOD_OUT_LOW, "PHY reset"); 3f08f04af6947d Pierluigi Passaro 2023-01-15 142 if (reset_gpio == ERR_PTR(-EPROBE_DEFER)) { 3f08f04af6947d Pierluigi Passaro 2023-01-15 143 dev_dbg(&bus->dev, "reset signal for PHY@%u not ready\n", addr); 3f08f04af6947d Pierluigi Passaro 2023-01-15 @144 return -EPROBE_DEFER; ^^^^^^^^^^^^^^^^^^^^ Looks like there needs to be some clean up done before the return. (Sometimes the kbuild-bot doesn't include the whole function in these emails. I'm not sure what the rules are.). -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests