Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp383455ybh; Wed, 18 Mar 2020 01:36:50 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvmp10JpXxCUTDMnv4DcO5PmuMqJflb4pkFTlX3Rc+0vB1mDupjXzQ9BodJKeFKawXCMc6o X-Received: by 2002:a9d:3d65:: with SMTP id a92mr2718236otc.326.1584520610257; Wed, 18 Mar 2020 01:36:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584520610; cv=none; d=google.com; s=arc-20160816; b=E+rbBM9do6+ej/Nb0aOYcMhOrXeq0gJIRjVMQ6Psyu89dAd4AhuYj5A9i3laS+iWGs xb8I6Lx8riOXntpVvQ2PvfZkmqDox7Xm8SoemkayfYqiXPr4NA4/LyOHqfbCZiXa5epy LfEh1HjdW7e9h8AE+hYiAQV5F7cxUHXFEB3A0CP8lSpnoMzPTe5e/QmddOIZtt/xYG+s q+vVKn/XfYEkASjNZnemRNjUy2i9hjrANvloyQWIHTHNfdHlsW0N/j7SZWLH2VmQQgdk rwlIGA1nxXhjJHB2YW444LjidlGPtTFk/mgqyZ2+4Ii5rUxKXGUVupQZlLNKRH6vFiZU MWrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=aPBJn2ynYA8FJEh8jEBQDW67obM5EQ6JxVESIr5G6yA=; b=qGwxCWSLRJuii5AEhuQl4i5rR9COTpHd/+hwIb3ln6P6+ADjk/msITGR8ruQmJKWrK 1usE5ZIir/vvJZc9t2iEwhP2A9LEUFzMcqVgq3yhV2ms0R3FKQTGcB8ypqfSUZDWZ6NP zhzuaOBn3ni0tDaRJekjsi8Qx6/og/rPIn1nE62CXIo0gO78lByvtJAbjJgfc1S7jNK5 cudUhxubEiIrHg73XKadRIgil9kM5DIUlRng8i0q7CDqTSnTsmAzmZ0wKte0WihulqNS vBvpCZvUdPED4VTFgmc4cutHPfeonEA39jGi18Jevs5sfUFWZbiKfstGCXUpeKs4MkFb tdzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flowbird.group header.s=google header.b=QZr448e0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flowbird.group Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w203si1740828oig.54.2020.03.18.01.36.37; Wed, 18 Mar 2020 01:36:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@flowbird.group header.s=google header.b=QZr448e0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flowbird.group Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727505AbgCRIgD (ORCPT + 99 others); Wed, 18 Mar 2020 04:36:03 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:40478 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726513AbgCRIgD (ORCPT ); Wed, 18 Mar 2020 04:36:03 -0400 Received: by mail-lj1-f193.google.com with SMTP id 19so25951723ljj.7 for ; Wed, 18 Mar 2020 01:36:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flowbird.group; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aPBJn2ynYA8FJEh8jEBQDW67obM5EQ6JxVESIr5G6yA=; b=QZr448e03X1SLqCc4Dnk4uM0I3ixSAV5zIkNiw1rz87pIUY6oRIMRNV9PqrljcXj9a 4fyIpf2y4kGj8zX247H4hg3Ol9suRDrX/YKmGSN/KRW7dlOypGjZ2M2eiSzYUG4USk+F PcJGvdV0uzHelwz6P2df1ZSSuNcRGXy9oh+GXj6qDAbG3GDL6GsEwIKFHyUKS9PJikSb OXKSr0x94bDktZolTFej6YovTmzcwb4/XjkG/cVhyhAPyqvlE1spQq4oJN1SlmIPUVhj pL1VPknjBRO5XFAx5/LnsUa7p+N4JFhnq4Q1s99C2eHk4o3ObRkbGkVl/oTGDfe0H/uY JBpw== 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=aPBJn2ynYA8FJEh8jEBQDW67obM5EQ6JxVESIr5G6yA=; b=eg8i1nSkXM70W8lDy4A1pLMU1lvuBPO7ydIrKjeSYURR1xhn0kCAH+Ybv3d0LwSlGt tq2PSrO6obrV7XbDaEpNVMYOgFbUqLQHkihRbppj3VAKtxHr8bHbtFpVdn+HeCngnyea OEHpY+7GQmrpPgktKf6pysQYS1W+9WdGKvmOXlkxjz+lDKQ7hb4sxDQbuYOEaD81c5mK 8eVhStu5fvIT92MN1fKRd+LaNsYNt6qvWfHAFnjxir5EZF/YOqwzpPMMMGO9XCjc5Eiw +cCwSqVbH+GRRpiii362SnXPle9mffHVPr78TfxDUvz83w4wDf55SDC0udUujNFf+q3p BycA== X-Gm-Message-State: ANhLgQ2FD0ZZWN7xJ8IDnXNo9G7wa9PzAIIXQWC0rEsuqV4FRdLDX2bK BFxzuWzc0Lza+c6Y4m7aUBQlh2DI8YraaR0pj24M0w== X-Received: by 2002:a2e:b0f7:: with SMTP id h23mr1695669ljl.56.1584520560877; Wed, 18 Mar 2020 01:36:00 -0700 (PDT) MIME-Version: 1.0 References: <1584463806-15788-1-git-send-email-martin.fuzzey@flowbird.group> <1584463806-15788-2-git-send-email-martin.fuzzey@flowbird.group> In-Reply-To: From: "Fuzzey, Martin" Date: Wed, 18 Mar 2020 09:35:49 +0100 Message-ID: Subject: Re: [EXT] [PATCH 1/4] net: fec: set GPR bit on suspend by DT connfiguration. To: Andy Duan Cc: Rob Herring , Shawn Guo , "David S. Miller" , "netdev@vger.kernel.org" , Fabio Estevam , "linux-kernel@vger.kernel.org" , Sascha Hauer , dl-linux-imx , "devicetree@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 18 Mar 2020 at 07:26, Andy Duan wrote: > > From: Martin Fuzzey Sent: Wednesday, March 18, 2020 12:50 AM > > +static int fec_enet_of_parse_stop_mode(struct fec_enet_private *fep, > > + struct device_node *np) { > > + static const char prop[] = "fsl,stop-mode"; > > + struct of_phandle_args args; > > + int ret; > > + > > + ret = of_parse_phandle_with_fixed_args(np, prop, 2, 0, &args); > To save memory: > > ret = of_parse_phandle_with_fixed_args(np, "fsl,stop-mode", 2, 0, &args); > Why would this save memory? prop is defined static const char[] (and not char *) so there will no be extra pointers. I haven't checked the generated assembler but this should generate the same code as a string litteral I think. It is also reused later in the function in a debug (which is the reason I did it this way to ensure the property name is unique and consistent. Regards, Martin --