Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4380809pxf; Tue, 30 Mar 2021 06:36:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1Y9m67hsD33NbAV4uyIy4Ei+8vwXMpwroY4ZAlB/huiQe4wJZp+F2O8RHbn9Ywb/RfOyz X-Received: by 2002:a50:fb10:: with SMTP id d16mr34095206edq.73.1617111418241; Tue, 30 Mar 2021 06:36:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617111418; cv=none; d=google.com; s=arc-20160816; b=o76O+cs2F6eVKJ/xYFiKj1kBuYRZIcPH/qY27sscDVevauoVGNCAg+gPpKLUeTtwX9 3V7cli/cw5j9qVCWhsnn/6RMxoQw4zcJxXI9t9mfjN0cvKZFUw4hR7g0Q5ggHAVaTvBE blf6jeqIscUd8ntzRpMBGNkH9AxFgZFgDGcMuRay09MxlpwAHSeoUx5H7Ya0R8J7SmNL zznpItV+8mPhePRRamZ358CeH813oyo1svNqA8XWMjZKVTVvmbnNhYNsBkxbqayGgYgG LUq0au5fAFoDN56XI2Glpjf6qprLSeLIXBdm+JQ61saaLQ9J+e3ccjE8NG04jngeF8Mb 1U6w== 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 :references:message-id:subject:cc:to:from:date; bh=5cEiMnnIi3CkhTPkT7ObyBTPIe3/me4qUAONh5ornP4=; b=sn0wBQUIwXrxKJVIC1Zp3TabsDwWLJI4pWOHs52yfHuje04sU6AnELmf40+ZV3ujRf O4rIVDhznf5Ic839+dEQ0br6pojzPvnJv2xkAlFEEAqLerMnLA/4WT1ndjcYhPXPg1gI z4vBQNygxnyKg9F2DRr1J9IudVdn1os7Z9mE/qiGAxM5EKsWt/2LkclLb6n65ERK8rA9 PamapvmO2JppkvsFLksEzLZy3s+/gGZ+wg1VnSErbIPkDwbS82lBiIA5Ma8FWraiUCHf vGhP269tnzmr2QhN7tOJXuzY+QCU0wUuvMxljabw8WPfnTLT7iOK9wfBGnyaUzAgQoMx 1Ewg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x26si15398609edv.23.2021.03.30.06.36.29; Tue, 30 Mar 2021 06:36:58 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232084AbhC3NfB (ORCPT + 99 others); Tue, 30 Mar 2021 09:35:01 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:54800 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232079AbhC3Nej (ORCPT ); Tue, 30 Mar 2021 09:34:39 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1lREVk-00E1hy-W6; Tue, 30 Mar 2021 15:34:24 +0200 Date: Tue, 30 Mar 2021 15:34:24 +0200 From: Andrew Lunn To: Steen Hegelund Cc: Kishon Vijay Abraham I , Vinod Koul , linux-arm-kernel@lists.infradead.org, Alexandre Belloni , Microchip UNG Driver List , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel test robot Subject: Re: [PATCH linux-next 1/1] phy: Sparx5 Eth SerDes: Use direct register operations Message-ID: References: <20210329081438.558885-1-steen.hegelund@microchip.com> <20210329081438.558885-2-steen.hegelund@microchip.com> <2356027828f1fa424751e91e478ff4bc188e7f6d.camel@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2356027828f1fa424751e91e478ff4bc188e7f6d.camel@microchip.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > +static int sparx5_sd25g28_apply_params(struct sparx5_serdes_macro *macro, > > > + struct sparx5_sd25g28_params *params) > > > { > > > - struct sparx5_serdes_regval item[] = { > > > > Could you just add const here, and then it is no longer on the stack? > > > > Andrew > > No it still counts against the stack even as a const structure. I'm surprised. Maybe it needs static as well? I'm just thinking you can get a much smaller patch if you don't need to modify the table, just add additional qualifiers. Andrew