Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp14420182pxu; Tue, 5 Jan 2021 00:39:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJwgQliicg8x0A0KZuc3c8vNajPOwP4p2wVN/csYV9sOBPEzyBKUviR/yPe1yEILG7/YXzGF X-Received: by 2002:a05:6402:168f:: with SMTP id a15mr41850495edv.376.1609835981590; Tue, 05 Jan 2021 00:39:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609835981; cv=none; d=google.com; s=arc-20160816; b=tA1wacf5wrtzH1Kw0QHlJmspve0drwTD8Xy+5+92TpbKzTeQuJt3BerVOZhrAcLvpX ZA0V1NgGfkK+whBQCiGh9xnUhgKsf3nhb584hd8NB/c7th0Z7Kp7jEH0H2DoKZc6d7Vt AI5EVFEqGVT+K8/OSZlbq/hry/dfO4VSYn+8t/OSbfB8HRw6wE+70mPodlbql5x5a7aD prfg1tqix4moskVHPuHu7bvsfv8Gn8XC8MCq+J16kgyumTe22o0vhfyRttuotrUpIuse CfS+Pb+WXHR51c1Yeffz7DmV1r3OnCsZNBw1Fpbt8OhpMHZA8LtoWPcieBWnVf6HNEq9 mMwQ== 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; bh=GsNvvjXAbzsv+FuZnPwVumTRC/6Ac/joNVlKb3haP0E=; b=ptZA1uYTqJROTiIsNstyQymMcxEHrmOAQPwQr8MAjuTvE/ZbPusqTIv9WSrLUKSV+p LR6hsqokgfBTeD5yfvKVKITzyhfxa2yETL+HNU9GakLkB0iVFHDBOPua4JHwmwhgMI6Y h7AQe5FUShRPP6nWHqKgYdIlOppPilxY39NlxmpcR9mYz5pqhJN/HYwzANI5w2gS21bU xzVHTL4C1y6wsBzIIgG+38hggQLULhvQmxH7zs16GH7fHzdytXdNT3xzE3nWvBOe8ie3 QacGhLedXa4dXeJJQWeu5xbF85wUqictoC9UfcBrgzMa99EAxLjlTpkx6r48E/v0vJaa eNkw== 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 b26si32483739eds.590.2021.01.05.00.39.18; Tue, 05 Jan 2021 00:39:41 -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 S1725831AbhAEHiu (ORCPT + 99 others); Tue, 5 Jan 2021 02:38:50 -0500 Received: from mail-ot1-f43.google.com ([209.85.210.43]:43218 "EHLO mail-ot1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725730AbhAEHiu (ORCPT ); Tue, 5 Jan 2021 02:38:50 -0500 Received: by mail-ot1-f43.google.com with SMTP id q25so28462174otn.10; Mon, 04 Jan 2021 23:38:35 -0800 (PST) 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=GsNvvjXAbzsv+FuZnPwVumTRC/6Ac/joNVlKb3haP0E=; b=LdcHuWYc10jHSdiL2MPZmUXrqLBpNkZuoTEsENhRUO5xVeFunO2uD2u9gd43vaF6EQ A2xCtzzaZTddw5za8nvy0dk3z6VzkHX08BXIAaPs+UIAh+w30+aF/39iONssZHQ4KeHR WM8/2r2DNEgZwsK5kPkp6bYn/7i/XW/ZJYFl6uay9pUll3ruRfQ3sUTrjnsqxOdk20L2 6VAkGtSMJN1NLFSSHCWGOAIb8X3Q49vJ0puVk5UG69B6pU5glBWqi5LDF2Zm8JWpGEfT 7SvNyGOmuYoi91QRoQ3RMFD2EEWRuIrdZZ/BvX3YsUPyXdsD7MRoAyMZleLwbCn46cwb wTgQ== X-Gm-Message-State: AOAM5335JzJ3ur4OpCawZQ8RU+rUNjlOCTEHBa1KKAZhV2rLgb3L18ZG sZZOSXbqVQHFCX9kAlwYoXrjKo1KmDbJbCxjqkUUJJ52 X-Received: by 2002:a9d:c01:: with SMTP id 1mr40244802otr.107.1609832289668; Mon, 04 Jan 2021 23:38:09 -0800 (PST) MIME-Version: 1.0 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> In-Reply-To: <20210104234018.GA19909@amd> From: Geert Uytterhoeven Date: Tue, 5 Jan 2021 08:37:58 +0100 Message-ID: Subject: Re: [PATCH 2/2] spi: rpc-if: Remove CONFIG_PM_SLEEP ifdefery To: Pavel Machek Cc: Mark Brown , "Lad, Prabhakar" , Lad Prabhakar , Jiri Kosina , Sergei Shtylyov , linux-spi , Linux Kernel Mailing List , Linux-Renesas , Chris Brandt Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Pavel, On Tue, Jan 5, 2021 at 12:40 AM Pavel Machek wrote: > > > > > .name = "rpc-if-spi", > > > > > - .pm = DEV_PM_OPS, > > > > > + .pm = &rpcif_spi_pm_ops, > > > > > > You're aware rpcif_spi_pm_ops is now always referenced and thus emitted, > > > > increasing kernel size by 92 bytes if CONFIG_PM_SLEEP=n? > > > > 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... There's pm_ptr(), but it uses CONFIG_PM as a selector, not CONFIG_PM_SLEEP. > (Besides... 92 bytes. How big is kernel these days? 4MB? More? How > much SRAM do you have?) 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. 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). Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds