Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp627814ybm; Thu, 28 May 2020 11:06:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqiLUk5yDTLlNwSHX0Yvm9Lnwk1PtavfteMJEL99NvMFbl/ZB6PC0G/td9Vk7EFzxIGkl0 X-Received: by 2002:a17:906:b2c1:: with SMTP id cf1mr4463481ejb.135.1590689214940; Thu, 28 May 2020 11:06:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590689214; cv=none; d=google.com; s=arc-20160816; b=gS5f3MU2adYWTYQSyv9noAlCM2pfelv0JB6ht/5/FGcEhBxOk5ZHN2vXLW8W7qrBIM rZmK6ZmOJLQ4rKWDca9hKdrRK2fYAHtVcxFPZRh6chah6BWJumx6C5acpWXAi3gVned7 RrJPDeb9wAyfdB9t4isgN80oE39mon1FlcKdjtsjgGE0v6q6VBfc09im4shE5F++EdmV StUOwOo3sLRGCPjTJJagINWLSfrVPjr41mDQ3Cww33EqhxKkOYiYfjphKGkhFNw66T9B 7e5eE1c8TmwZTByY5Qdgz6W/RKsHhKLp4rODKvB3XfPCQJu4CdV2YFxDVeTsgbmeo7EE sJyg== 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=fQ5JUbesFirtJBWiXrChM94Gcp29UpeOFm8d91owft4=; b=T4Gxji8WD3OgR/G0OVun7hklvBWZxiWzfwvQDpR2R374tO6j1M/tXCUD3RD0hN3upF BY5mY9vcRT37Q8cY8DYiliMHTRcP1G5gUkh7Z3/j6/9q3UUseATx9OKXQpTu4zuxLcyH l2nCtnoOyjw6P3Ye8Mu2GwcWfre4/zO88+81w1jcJtfTbFqz1O8FFUUIY5Cwks1uB1tM +wfWVyP/W8KMT93p4SjZHvkw/dXyWLcHd6FQLDw4zBvRWzxan1MZwrchG9V0WNn+nBCd tKML5b8VcpMx8AoUhXB8XXWYFyq2fP77vwOfIGgAu+mBSLu84NK4tRJRcx6M7SqPGq7S xX9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=UIfUhviW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r22si4042061edq.354.2020.05.28.11.06.26; Thu, 28 May 2020 11:06:54 -0700 (PDT) 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; dkim=pass header.i=@chromium.org header.s=google header.b=UIfUhviW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391424AbgE1SER (ORCPT + 99 others); Thu, 28 May 2020 14:04:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391258AbgE1SEO (ORCPT ); Thu, 28 May 2020 14:04:14 -0400 Received: from mail-ua1-x943.google.com (mail-ua1-x943.google.com [IPv6:2607:f8b0:4864:20::943]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B86EC08C5C6 for ; Thu, 28 May 2020 11:04:13 -0700 (PDT) Received: by mail-ua1-x943.google.com with SMTP id c17so9976668uaq.13 for ; Thu, 28 May 2020 11:04:13 -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=fQ5JUbesFirtJBWiXrChM94Gcp29UpeOFm8d91owft4=; b=UIfUhviWUXDEoXbz7ZQDKkdfO/J2eQ9XSxx/Qyz0FLsHjcpXdf/Elpazpv43+tXhzo K7JCq6APujFDLwjcLlBmcszhY/ZAabhEoiY8upljd9o2rs1Lc3o2XafHBBKB1AtJ+Cb7 8Injbxv6+vYbHWy9Wgd/8oDsXrJ83yySnlYQE= 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=fQ5JUbesFirtJBWiXrChM94Gcp29UpeOFm8d91owft4=; b=EOhP6/snchPCK1THPuGNGKHwjn3r82VqXGv7Xp1v9TeirUroKUC6N+4WoNlIxax3xM LpizqkLAJlJz1gvALqAAnyjNhLmYXfIsSOWa9+IuPCXxmB6PN7ojX1gWXaCr+VM21BrZ fAPYvEcUZ4HmNB/0rrnjRFG5mwQ5+e4Z2HVUymphB2D0Ttk3J/450CaHX1iYIUhobh38 FIQ2GRYAGeqxsFVMTdzvMH6KRY/Danp1RMMWw8CIfLIq2WKVXP7FDzsgBXajA5NVHqLq WfrtBnkoN245tFfVC+N8lw6smrPChaZ5/4JWeDkXQVbsVw0FmfyxMAJi+LBFEX9kzYyn teKQ== X-Gm-Message-State: AOAM531LIh3gXSgvKfYDNIp70KRLMU9VfVFJNewFREXN4WsbEmS6j4em GI69abJqs1psColbztNmWst7bWTSyo0= X-Received: by 2002:a9f:23e7:: with SMTP id 94mr2955540uao.84.1590689052408; Thu, 28 May 2020 11:04:12 -0700 (PDT) Received: from mail-vk1-f170.google.com (mail-vk1-f170.google.com. [209.85.221.170]) by smtp.gmail.com with ESMTPSA id j24sm606600vsn.13.2020.05.28.11.04.11 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 May 2020 11:04:11 -0700 (PDT) Received: by mail-vk1-f170.google.com with SMTP id 21so6971164vkq.6 for ; Thu, 28 May 2020 11:04:11 -0700 (PDT) X-Received: by 2002:a1f:a24e:: with SMTP id l75mr3226940vke.92.1590689051355; Thu, 28 May 2020 11:04:11 -0700 (PDT) MIME-Version: 1.0 References: <20200521060425.24285-1-swboyd@chromium.org> <20200521060425.24285-2-swboyd@chromium.org> In-Reply-To: <20200521060425.24285-2-swboyd@chromium.org> From: Doug Anderson Date: Thu, 28 May 2020 11:04:00 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCHv3/RESEND 1/3] soc: qcom: rpmh-rsc: Remove tcs_is_free() API To: Stephen Boyd Cc: Andy Gross , Bjorn Andersson , LKML , linux-arm-msm , Maulik Shah 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 Wed, May 20, 2020 at 11:04 PM Stephen Boyd wrote: > > This API does very little. Let's replace all the callsites with the > normal operations that would be done on top of the bitmap that > tcs_in_use is. This simplifies and reduces the code size. > > Cc: Maulik Shah > Cc: Douglas Anderson > Signed-off-by: Stephen Boyd > --- > drivers/soc/qcom/rpmh-rsc.c | 59 +++++++++++++------------------------ > 1 file changed, 20 insertions(+), 39 deletions(-) Sorry for the delay in getting to this review. Looks great. Reviewed-by: Douglas Anderson