From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F0913C6FA8A for ; Wed, 14 Sep 2022 06:59:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229604AbiING75 (ORCPT ); Wed, 14 Sep 2022 02:59:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229480AbiING7z (ORCPT ); Wed, 14 Sep 2022 02:59:55 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B2B72BB29; Tue, 13 Sep 2022 23:59:53 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id EF6EEB815C8; Wed, 14 Sep 2022 06:59:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94BE4C433C1; Wed, 14 Sep 2022 06:59:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663138790; bh=Whs4IM7U0IGGXZo3pyOaHLLggtXyRjQJNmPd9HwSIX0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cmUukbaAhnYWX2B+yqopCAhZOaftArJ6p2kTJWhqv3KTJtD16jAfR3xk6MQDZq6vl NNyXjyeT6dz90ag2MXDg5vW3BswGsy+VIBrtH6qUqqOn+W9zTGzwWD4d9NEgF+6SiE U0sUxG+LrEyRrdjSLZWsGMXeNIwDBoY0kG3Qm/wmOjLBRAXFLONnxhHURq3RKc29ws pafB7jYlKAmqSSg3gcVESvZ1Oy7+yTJcFRbUqxIdoaXr2idxg+DqOFSq7FBH9kXBM5 931CoIl9oAOPjtAd87jLkL0aUANcbVbPABKAJjXgnTHyFVg1WedvYXuITmOB93RUcY obam+Ivgx6dSw== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1oYMND-0003Cj-16; Wed, 14 Sep 2022 08:59:51 +0200 Date: Wed, 14 Sep 2022 08:59:51 +0200 From: Johan Hovold To: Dmitry Baryshkov Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Jingoo Han , Gustavo Pimentel , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Bjorn Helgaas , Vinod Koul , Kishon Vijay Abraham I , Philipp Zabel , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, linux-phy@lists.infradead.org Subject: Re: [PATCH v3 5/9] phy: qcom-qmp-pcie: turn secondary programming table into a pointer Message-ID: References: <20220909091433.3715981-1-dmitry.baryshkov@linaro.org> <20220909091433.3715981-6-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220909091433.3715981-6-dmitry.baryshkov@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On Fri, Sep 09, 2022 at 12:14:29PM +0300, Dmitry Baryshkov wrote: > Having a complete struct qmp_phy_cfg_tables as a secondary field in the > struct qmp_phy_cfg wastes memory, since most of the PHY configuration > tables do not have the secondary table. Change it to be a pointer to > lower the amount of wasted memory. Please be a bit more specific. We're talking about four pointers per configuration and there are currently about 15 configurations. Is the added complexity really worth saving 400 bytes on 64-bit? Johan