Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7427552pxb; Thu, 18 Feb 2021 09:46:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJwyJtwH9vSrQmfReKlPHPd6tx+OW9lXOJR/Lmo8QAUR5pP0+DYyUpX7GaSh6lPfeXk0/bZO X-Received: by 2002:a17:907:98d7:: with SMTP id kd23mr5053564ejc.283.1613670382989; Thu, 18 Feb 2021 09:46:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613670382; cv=none; d=google.com; s=arc-20160816; b=qbQ8sIN0/72bLeIccnhQ9FFh2Ti7BAG2GAXKmJ4jZpALBuz9UE6Az0uUCARHg3RRm3 sL6Xa+qYbMiYztK8l2uDrnsD28r0wGWDrTJtw43sWre04FV19KWyuJWJdWZfDlkvaZAQ a5USOoIm4cL7Toe2Eh103toswkh3E1TLKl1I5vhq/SgPHR0kXmuUAPKpUt1/147neHSr 1tDN+fw/sAHvh0+ETSW4w3BqMhv//vOXvY7ITmK103dtA6h289t7waqoaZdEM1IDpNFd PedQsWH0MCSEsHDVGetsyHvnVkffy+w/7/9P17FFC0QGlhvuKbveBEDVNEnMdZ+kq/+K nV4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=SCWX+UOWBBJn4LzW9Yj7QYHcJVlwVskIMygyEWiC3wA=; b=YCd2gywyo4ntg18XCTp0OF5eZZCW42HIXYYFpkuHQY+If+fJqhVzH8uQJ5l0PAZe6j nQ42viQda9xhTLAoJY2iiMGJQcjp50SraQVBjtaJSMVkrOwvHlv5vL7WwYTzdape6dk4 HKmBgRi2DTglQr9yuNQn6Lx/5ftwL3ifdJL2pJHx+SrRC4cuVrPZ3SxQh7z52ZOHKYXP 1dpwBaS0ysQL5gO2ndv0GR3VqL9gXROpzhL61hIr5FMVSg4TIL7XbWbSQ5SpZQw7MrEZ III4g61hBiqLu6P5F5IiKzMJAEIzTu0AxSns/Kiiej5+IuOk5CBmDKNTKV00KNHbUAah 9ZNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ptTekISc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ot7si4090220ejb.453.2021.02.18.09.45.58; Thu, 18 Feb 2021 09:46:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ptTekISc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S234457AbhBRRok (ORCPT + 99 others); Thu, 18 Feb 2021 12:44:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230073AbhBRPFE (ORCPT ); Thu, 18 Feb 2021 10:05:04 -0500 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B56EC061574; Thu, 18 Feb 2021 07:04:18 -0800 (PST) Received: by mail-pf1-x42a.google.com with SMTP id z15so1475332pfc.3; Thu, 18 Feb 2021 07:04:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SCWX+UOWBBJn4LzW9Yj7QYHcJVlwVskIMygyEWiC3wA=; b=ptTekISckA2jYFmD+CelhT4CRuY+9zmgwQo3vUOOSVTtYU+u8puIb5X6zY9O9vS4Qt 1MVrE0TXQvA7aPaTJMlSGwlJCmmU2FjesAbdk6HWoy+6ECmBtkwBHrWfLk340T+lqtUr tdlpQjK67nm7aAClC/zNZtIW5TdxJTr0Nn3H3Zi5ilLW6kUonpRBd8U3ufddQMCY+XKw 1u0NzVmgKd2Dtg8j62nf7CIB933MdcHVI+wy0MJaTfX66TYJr4epBwbhuxQ7WDefLkeb IzLkM4Wm9B9CfW/6kCUDReQYeXq3pXwpzi5DKlcM7ZnXDryILmtYSrRE05ziGFtkycuO fPQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SCWX+UOWBBJn4LzW9Yj7QYHcJVlwVskIMygyEWiC3wA=; b=AsFwABVPeEPUgOK9qEcxcvjpuI4U+Bpb6fMOpx8u8WAg6k2Rr4FAQSXGy3oT3ExNV4 1fX72lbpDw9lzkkrpE6muw+/ya8Ek/P3qcROA9rf31JAioBg9VpHvYLRuGABiBa3q6tD iWi2EfRrFpAfSC+OTf0Q1bYaimyt9HjD9QyQWZaWvLvxGxm2BX0IPByNga0maHtow8pG Z7Plf5qhdO3vJS789f+JbaoOLFwRZp4PSYjWNyqIAwsAiNAwx/1MdM9vGoCMqRirFDjN uP3t7U3kKnLtRrYaPb0yDDI+7TXWfKmYqgY7LoHzwTB9wGaFut9SYUM6E0DyW0d63qAr 4G1g== X-Gm-Message-State: AOAM533f9iAsL51R3dDHoMfbGtX18vTj6LlteRERNl3QeAZGJ9ldCNTr LuBz9OoP3iwslWqfNkM7hrQO8TAIGe34A1XGReM= X-Received: by 2002:a65:4c08:: with SMTP id u8mr4275873pgq.203.1613660658089; Thu, 18 Feb 2021 07:04:18 -0800 (PST) MIME-Version: 1.0 References: <20210218052654.28995-1-calvin.johnson@oss.nxp.com> <20210218052654.28995-16-calvin.johnson@oss.nxp.com> In-Reply-To: <20210218052654.28995-16-calvin.johnson@oss.nxp.com> From: Andy Shevchenko Date: Thu, 18 Feb 2021 17:04:02 +0200 Message-ID: Subject: Re: [net-next PATCH v6 15/15] net: dpaa2-mac: Add ACPI support for DPAA2 MAC driver To: Calvin Johnson Cc: Grant Likely , "Rafael J . Wysocki" , Jeremy Linton , Andrew Lunn , Florian Fainelli , Russell King - ARM Linux admin , Cristi Sovaiala , Florin Laurentiu Chiculita , Ioana Ciornei , Madalin Bucur , Heikki Krogerus , Marcin Wojtas , Pieter Jansen Van Vuuren , Jon , Saravana Kannan , Randy Dunlap , Linux Kernel Mailing List , netdev , ACPI Devel Maling List , Laurentiu Tudor , Diana Madalina Craciun , linux-arm Mailing List , "linux.cj" , "David S. Miller" , Ioana Radulescu , Jakub Kicinski Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 18, 2021 at 7:29 AM Calvin Johnson wrote: > > Modify dpaa2_mac_get_node() to get the dpmac fwnode from either > DT or ACPI. > > Modify dpaa2_mac_get_if_mode() to get interface mode from dpmac_node > which is a fwnode. > > Modify dpaa2_pcs_create() to create pcs from dpmac_node fwnode. > > Modify dpaa2_mac_connect() to support ACPI along with DT. ... > + if (is_of_node(fwnode)) Redundant check I think. If it's not an fwnode, the dpmacs is NULL and of_node_put() is NULL-aware. > + of_node_put(dpmacs); ... > + if (is_of_node(fwnode)) > + of_node_put(dpmacs); Ditto. ... > mac->if_link_type = mac->attr.link_type; > - Do we need to remove this blank line? ... > + if (is_of_node(dpmac_node)) > + fwnode_handle_put(dpmac_node); > + if (is_of_node(dpmac_node)) > + fwnode_handle_put(dpmac_node); Also not sure that you need a check in the above code excerpts. -- With Best Regards, Andy Shevchenko