Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1223903ybh; Tue, 10 Mar 2020 17:38:48 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvqTZ4XLk8TDnSWG3lEjaZNYWWVMdQmLE9k3xFyygohon8tKXEnVWsmJAsprhXNKbStoZs/ X-Received: by 2002:aca:c4d6:: with SMTP id u205mr208741oif.113.1583887128507; Tue, 10 Mar 2020 17:38:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583887128; cv=none; d=google.com; s=arc-20160816; b=HF7c65Q1WYMdAAy/5M8wt9xf1x7oz6EaGFhMVaPkIyjhOfDzXz2SkNs7Al8+aJ59o4 k1+dKBbp66mi+dg1q2TFRPCiJc/qRsc3gqWbs9XsI8PQ5GKn++OJ9vTxYCuwiZkjd5xg PKZReBka+XNStHB+L7ahToXLEtrXeLJNA1ab6jXJ1h0e+El3BOjjAKLiY9tmApdjipTK 45EAKULWJEwZyebvSaUn7PEFRu2yfVI1In7lrYnUGGL2xrPPtjUM1oRPYzt1NJ0/YSD3 5ZsQYDiJ2wWvM8RnFiC7zwUjITSfE3u4SIBXjsYfWkYXLcWqdxRE4P+BAp6W2XOCO5eD 22Vw== 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=Dj9AJ6DgaDsv1owS/OBbLL2hfYDA+jQ+pn99BxM6NK0=; b=ZYYlrkCk9AhyO5OTUUAbVNXnDy2b9WDBdqmGkFIv00Rt3ZtdtgKs1p0W3wwyd/5O4U AIAJjap4cI/cevCgfTTmAQXKP08VLOWp7K2GdKmXOKPYmev47W/SyItGuPFo/8mJOxw9 mTanl+ESJQnDFQ/vKGW2urmrkGznxbfJ5bee2tgM0+vI6HPv0TPfBp9mSq3qrzbUzTra XpxYJUJUijbB9/s00+g95yDhitUIYNE+wC9Rj8YjPxb/TENYuNO+vQ8YGSgDG2IHn0Kh tIMh4R63jeLQzUUFYpZb1lC1Ln5k/MuQbtBkhbJhmABKGzGRMmOj4RUOL/KXGzeyx0Vt dXAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Xvp73QVk; 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 r19si193056otg.54.2020.03.10.17.38.36; Tue, 10 Mar 2020 17:38:48 -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=Xvp73QVk; 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 S1727878AbgCKAf6 (ORCPT + 99 others); Tue, 10 Mar 2020 20:35:58 -0400 Received: from mail-vs1-f66.google.com ([209.85.217.66]:34771 "EHLO mail-vs1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727397AbgCKAf6 (ORCPT ); Tue, 10 Mar 2020 20:35:58 -0400 Received: by mail-vs1-f66.google.com with SMTP id t10so239737vsp.1 for ; Tue, 10 Mar 2020 17:35:57 -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=Dj9AJ6DgaDsv1owS/OBbLL2hfYDA+jQ+pn99BxM6NK0=; b=Xvp73QVkE935ImkOQZQ+bEOpPwsbuCXEDpTploRsshH27YQ78Xl8+Y0jFMALJsZJZr COzdzjlC79Gv7YvIvlLm5q5CV+nQ2Ev6nEv7Vjcy3ZClRMVySqOoIRpKLvz0puB76HFz JEwAyCg6gASt+sShiUPPEjJJxdmcSiyvoLNac= 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=Dj9AJ6DgaDsv1owS/OBbLL2hfYDA+jQ+pn99BxM6NK0=; b=Dd8Oi6M9ocvyZv+vy4A3fuLZunpoO65aCL5nr6QninG6yeNyh5r7V/WnlICrHtkBZF O7pN0TSC75kTPZKylT2PHSESspDPVmOY1GvDcW3ktmGucfizAfK4BiqioxaE02NH71om N0akyZdFgbf7om2EdkYswnWEF5tOgblVYNta8I7a0Dl4gMTGED5vUWwvRZ2dnPyt05RZ Xy3O5ByVJHKoRxzF1+69x4Aa4B5Vgx6AJKdvYHsxpTeGBjOTx1roSCkFXWnOVMYM/Hqz 0qWQnfEGmnAVzhUtYbsMkEL447uAS0gNIC33nE1rix0iiuvfS4R0G3Txj1doWiRvjSHi creA== X-Gm-Message-State: ANhLgQ3AHsBE6GMOXd6BC6zTgLVtQ+otBMvhfH97/VjI8BnBajIokjat GVvQbQHtiVKAMXkm0ZQwxdrZWpr9jH8= X-Received: by 2002:a67:fbcd:: with SMTP id o13mr469863vsr.174.1583886956716; Tue, 10 Mar 2020 17:35:56 -0700 (PDT) Received: from mail-vs1-f42.google.com (mail-vs1-f42.google.com. [209.85.217.42]) by smtp.gmail.com with ESMTPSA id i66sm13856047vkh.28.2020.03.10.17.35.55 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Mar 2020 17:35:55 -0700 (PDT) Received: by mail-vs1-f42.google.com with SMTP id z125so198824vsb.13 for ; Tue, 10 Mar 2020 17:35:55 -0700 (PDT) X-Received: by 2002:a05:6102:1cf:: with SMTP id s15mr403204vsq.109.1583886954828; Tue, 10 Mar 2020 17:35:54 -0700 (PDT) MIME-Version: 1.0 References: <20200306235951.214678-1-dianders@chromium.org> <20200306155707.RFT.9.I6d3d0a3ec810dc72ff1df3cbf97deefdcdeb8eef@changeid> In-Reply-To: <20200306155707.RFT.9.I6d3d0a3ec810dc72ff1df3cbf97deefdcdeb8eef@changeid> From: Doug Anderson Date: Tue, 10 Mar 2020 17:35:43 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFT PATCH 9/9] drivers: qcom: rpmh-rsc: Kill cmd_cache and find_match() with fire To: Andy Gross , Bjorn Andersson , Maulik Shah Cc: Rajendra Nayak , Matthias Kaehlcke , Evan Green , Stephen Boyd , Lina Iyer , linux-arm-msm , LKML 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 Fri, Mar 6, 2020 at 4:00 PM Douglas Anderson wrote: > > @@ -889,12 +793,6 @@ static int rpmh_probe_tcs_config(struct platform_device *pdev, > */ > if (tcs->type == ACTIVE_TCS) > continue; > - > - tcs->cmd_cache = devm_kcalloc(&pdev->dev, > - tcs->num_tcs * ncpt, sizeof(u32), > - GFP_KERNEL); > - if (!tcs->cmd_cache) > - return -ENOMEM; During later code inspection I happened to notice that the "if" test above the code I removed can also be removed. I'll do that in v2. The code after the v1 patch doesn't hurt, it's just silly to have the "if (blah) continue" at the end of the loop. I'll wait on sending a v2 until I get some testing / review feedback on v1 or enough time passes. -Doug