Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1997813ybb; Thu, 2 Apr 2020 11:08:44 -0700 (PDT) X-Google-Smtp-Source: APiQypJlcTtvy8PeY/Nysyz98mgINlYBoyuN+FleRlDurfKr2f67FTlAvd659zC4yoCNs65aZ6zM X-Received: by 2002:a9d:62c2:: with SMTP id z2mr3604647otk.155.1585850923962; Thu, 02 Apr 2020 11:08:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585850923; cv=none; d=google.com; s=arc-20160816; b=KPL+alUIWyVSOW3DpEZu8p4fPDI3LYqNlxtRmKTjSD2dwUOAD0+7Jm0ZACCFI2JCH/ thLeOkXdKW9Acf7tp6jgEqOTAdoPBa8nk+ta7+8YqbcR/3OIc9JTsg4H/yH7zUdFlfBZ BgCXc/wfq4ccCBts+COEeT0tHm9M00L8JqHWLgE+6CIqa6Hvgu8wxXi12CSHY6BmQFWP M9bs7cDUomMVHlaIYnqXWwvdduSr+Q03xVdsU3FF9y5V+x3bbxNHAhQV+SwBGBgYwLoA DWDUK93WnXUySl+wRDf2v/UThk2QQPBFKyVEIkM/MyIzw/nj48iD2O8JTSPuh7+W3qco CUVQ== 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=yAXnATgltKUt8JMPeZQ2QoLKhjD+I0oS+JV71CRscYo=; b=T6oA8hiecD9EdCgAPLZ7SlV4cOs1asRFDxQiaBodhiUFUVwsw7aPVSHquxINiyLEst szxwG4jGhb641wN/THeHzJDtvUubMpil7QCmDkcqr7/J4yOhh0YEo1UXRNRG7+Ws+15L SXyXwEW71LgdHV9DvCNKgRWN9BjFClgLoapxk4QwKoFvpqO78m/4hwh81gIDSX8ssXk6 bCsqAqK9v4lV5Sdml//JydqujHvtxaYOFeW1Q9LsmMVPbnD8lvfeQRU0OYKaaAukXJP0 Cqe6Qnpl++71B8Sxpk80iwqM6Yabwoui++fhrpqPCvIplqfsIL9HEdfoxyea5duA1H+E zAtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="VWkIwk/U"; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f41si2560337otf.280.2020.04.02.11.08.30; Thu, 02 Apr 2020 11:08:43 -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=@chromium.org header.s=google header.b="VWkIwk/U"; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389777AbgDBRAa (ORCPT + 99 others); Thu, 2 Apr 2020 13:00:30 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:35806 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387700AbgDBRA3 (ORCPT ); Thu, 2 Apr 2020 13:00:29 -0400 Received: by mail-io1-f65.google.com with SMTP id o3so4427311ioh.2 for ; Thu, 02 Apr 2020 10:00:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yAXnATgltKUt8JMPeZQ2QoLKhjD+I0oS+JV71CRscYo=; b=VWkIwk/U438PU8PFC5RLXzJh+UiWU35S9JxG0hJvmhEm2bVrSQ5PeaOcvJekQUU9RR v9KO+X9c1YK2DPHsRPRQPNs+zLx6pEv+Nba5jUV/kpaKd4nYkJe4YmJnAU8FkoZyolD7 RDh+IXARR7NRquZpMHtBg31E/8HjPHu/pifwI= 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=yAXnATgltKUt8JMPeZQ2QoLKhjD+I0oS+JV71CRscYo=; b=cBHmqf72w3XAMzZXA1Ez53zdDfaH2CqkbeFiN5CD9KoRE9HLUPphu9J95o8XSSBCyZ AW3U15GhcKTGDdqkTRStTZCd125g5mS/IVMZY4Iy5Y7Okc115jIq8DexN32MSRsa8c4h Ar6sAiPDHiw1AxqiHFTwu7PMHEq6Sl2SjtuASLo2LxNUSX0GrNRsW9wp6OxlvNjf/n17 oldPfCX+1KIjXCPPF2oIu1MMdSQmix77fjSQ0c5kBKTZ3/8rLBBfWLDc7fq2wCcqGewY r5C8TesJqEzSZaqMIv32ZlBzuM9i/kmUjFs99fiWLJQuAUXxDRBsg6gMh9RzKXZHar7L voqA== X-Gm-Message-State: AGi0PuYqspq+E0UlqVtjBA6fx+fVc8eMH/OeeAPmx+u4fvXp9NQeyCS9 jpPRzOk8rF89miAMcFVyOWZ5WD3cj+s= X-Received: by 2002:a6b:e81a:: with SMTP id f26mr3746040ioh.20.1585846827953; Thu, 02 Apr 2020 10:00:27 -0700 (PDT) Received: from mail-il1-f176.google.com (mail-il1-f176.google.com. [209.85.166.176]) by smtp.gmail.com with ESMTPSA id 8sm1641847ion.33.2020.04.02.10.00.24 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Apr 2020 10:00:25 -0700 (PDT) Received: by mail-il1-f176.google.com with SMTP id r5so4327790ilq.6 for ; Thu, 02 Apr 2020 10:00:24 -0700 (PDT) X-Received: by 2002:a92:35db:: with SMTP id c88mr4163161ilf.187.1585846823937; Thu, 02 Apr 2020 10:00:23 -0700 (PDT) MIME-Version: 1.0 References: <1585660782-23416-1-git-send-email-mkshah@codeaurora.org> <1585660782-23416-5-git-send-email-mkshah@codeaurora.org> In-Reply-To: <1585660782-23416-5-git-send-email-mkshah@codeaurora.org> From: Doug Anderson Date: Thu, 2 Apr 2020 10:00:12 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v15 4/7] soc: qcom: rpmh-rsc: Save base address of drv To: Maulik Shah Cc: Stephen Boyd , Evan Green , Bjorn Andersson , LKML , linux-arm-msm , Andy Gross , Matthias Kaehlcke , Rajendra Nayak , Lina Iyer , lsrao@codeaurora.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 Hi, On Tue, Mar 31, 2020 at 6:20 AM Maulik Shah wrote: > > Add changes to save drv's base address for rsc. This is > used to read drv's configuration such as solver mode is > supported or to write into drv's registers. > > Signed-off-by: Maulik Shah > --- > drivers/soc/qcom/rpmh-internal.h | 2 ++ > drivers/soc/qcom/rpmh-rsc.c | 11 +++++------ > 2 files changed, 7 insertions(+), 6 deletions(-) I still see no usage of "drv->base" outside of the probe function even after applying your whole patch series. That implies that it can just stay as a local variable. If you have a later patch series that needs "drv->base" in some other RPMH function then this patch should be moved to the front of that series. Until then it feels like it should be dropped. -Doug