Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp32767pxu; Tue, 5 Jan 2021 04:32:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJybx+OAABc+KsoXZQ2ZsPD+Vw51pqwWL2vNzTdnEmOAaAnKRpqJ0jH5sfJJ5H2EzlwKK9Ey X-Received: by 2002:a50:c209:: with SMTP id n9mr75149752edf.123.1609849922139; Tue, 05 Jan 2021 04:32:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609849922; cv=none; d=google.com; s=arc-20160816; b=LtP11Pbuj84ywofPpqamBwZDjQTWenhwKnq4sT3BJaySIifJc2i3lZI0A4qMedPjJ2 QpFaEZF5hf0TdvUaMKG0EAlXysRJQtgo7GAlZEkP6PCx5K7RolqjjsJIeKT4IMSjrxCt 4u5olE/ipqZZdequ6H1cemw7C1DzLP6/fBbwOGXQRTpteVfyhtNEgRYZbtViFSW5l+Pg P6nsr57zKCrGRDvcb4uRwyZRJzXN/Xx1k6eDjQw/N/HgkWbFdvKdi6gTa8TTV62C+vGB rliB7vPQsMdVQxK6tFRIDkCWpRHtbFikWj1owTajzGHIcq/CoMMBJHGDPb+3ctQ1tgoa 4UBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Fkc/CTr4lMuxj79zD9085Cwx4bUDFgH1aNO+y0i8s7k=; b=dCqZHo2SdqNy1SMiKEtVwU0xCMroKStBuqT5L5PIHiqN9f8ooISFved17VvsTAfDq6 VYywXMuvmGt13ZFw3up3b9RqNpB3ejDNbAnP3tvUgAO36uS1kO8ZsfgemoLNDtW9BnYF t7iORX29XCmqhzzTqAQU1Hk/cCuaz0q6UK3sXdq357AQtWZheGTcnZRKNda5dQ/dqgvP 7yeIXQh8unQiuQzMww6Znj42rsK+7Ju9bp+qWkeDF5slTEqqdPZ4KhnvxoH9mTWi6Sc6 QdKQU5VzVc+a7hGQ7W3eH+LVRRU5OJdPV/yaGUJFLzqns+AxqF/hkhCGEoGBbCgNJ+6B VO4Q== 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 y17si23085520ejr.308.2021.01.05.04.31.38; Tue, 05 Jan 2021 04:32:02 -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; 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 S1729290AbhAEKnR (ORCPT + 99 others); Tue, 5 Jan 2021 05:43:17 -0500 Received: from jabberwock.ucw.cz ([46.255.230.98]:51692 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729278AbhAEKnQ (ORCPT ); Tue, 5 Jan 2021 05:43:16 -0500 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 040721C0B7D; Tue, 5 Jan 2021 11:42:35 +0100 (CET) Date: Tue, 5 Jan 2021 11:42:34 +0100 From: Pavel Machek To: Geert Uytterhoeven Cc: Pavel Machek , Mark Brown , "Lad, Prabhakar" , Lad Prabhakar , Jiri Kosina , Sergei Shtylyov , linux-spi , Linux Kernel Mailing List , Linux-Renesas , Chris Brandt Subject: Re: [PATCH 2/2] spi: rpc-if: Remove CONFIG_PM_SLEEP ifdefery Message-ID: <20210105104234.GA29908@amd> References: <20201230145708.28544-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20201230145708.28544-3-prabhakar.mahadev-lad.rj@bp.renesas.com> <20210104213005.GK5645@sirena.org.uk> <20210104234018.GA19909@amd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6c2NcOVqGQ03X4Wi" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --6c2NcOVqGQ03X4Wi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > On Tue, Jan 5, 2021 at 12:40 AM Pavel Machek wrote: > > > > > > .name =3D "rpc-if-spi", > > > > > > - .pm =3D DEV_PM_OPS, > > > > > > + .pm =3D &rpcif_spi_pm_ops, > > > > > > > > You're aware rpcif_spi_pm_ops is now always referenced and thus e= mitted, > > > > > increasing kernel size by 92 bytes if CONFIG_PM_SLEEP=3Dn? > > > > > This may matter for RZ/A SoCs running from internal SRAM. > > > > > > > Hmm didn't realise this would be an issue on RZ/A. > > > > > > > Mark, could you please drop this patch from your branch. > > > > > > Please send an incremental patch with an appropriate changelog. > > > > Let's fix this properly. I'm pretty sure we have some macros that can > > solve this without re-introducing the ifdefs... >=20 > There's pm_ptr(), but it uses CONFIG_PM as a selector, not CONFIG_PM_SLEE= P. Okay; so we could introduce pm_sleep_ptr(). Or we could just put single #ifdef CONFIG_PM_SLEEP around the .pm assignment? That would be improvement on the original, and still result in the same binary, right? > > (Besides... 92 bytes. How big is kernel these days? 4MB? More? How > > much SRAM do you have?) >=20 > 92 bytes is indeed not much (on 64-bit it would be doubled). > Still, it's good to make people think about innocent looking changes, > once in a while. >=20 > RZ/A1H and RZ/A1M have 10 resp. 5 MiB of SRAM. > RZ/A2 has 4 MiB SRAM, which is sufficient to run Linux when used with > XIP (requires a one-line Kconfig change rmk has been vetoing for > years). Aha, that is a bit smaller than I expected. Best regards, Pavel --=20 DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany --6c2NcOVqGQ03X4Wi Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl/0QpoACgkQMOfwapXb+vKbWgCgptuU+iF7DWVlD/RG7ZKYXcgm SI8AoKMVB2V+RfTH4L+ahzlVFhP/HlNd =29YJ -----END PGP SIGNATURE----- --6c2NcOVqGQ03X4Wi--