Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1242903imm; Fri, 11 May 2018 13:16:32 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrOEq1cMssgzKyolWovDjO/QX/ybJtC6R66M+Wp7FB1zAQMLDlnFYG7u4Ni9vivpsjmpSTL X-Received: by 2002:a17:902:9048:: with SMTP id w8-v6mr6851157plz.34.1526069792080; Fri, 11 May 2018 13:16:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526069792; cv=none; d=google.com; s=arc-20160816; b=dGlmaOy83mfJvPhUbZ2WTRNwGgMg0a2anyZqhJT8xSi2NSTWZgkONWG0kkwjSKx5jQ aj5i0hWDuJnaSXrzkBczILPVOyrKU8dWAqj1TcZY11VDxXr2Bq0EPto+d5uO+38DhIFU a3SQS1J5a5I98hwSX9Y+3Woi5i0fc9HYmcXWZz2vDKIi9N+kQ6uZ2U5ttiosyStnGxiA 2bi6r6hudhTPV6Kuer2LPP4uSvLB7KBh5vT/BLhfztO7cdvgVznQ52oH2xIQeSs43dtw ZyQigSFtWq8xb/DhXWuRopqOlQEehoyd/LCT76mTDYT+i8LNq4F+mpyOWw6Yw+ROufxV 8d2A== 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 :references:in-reply-to:mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=AU2//BmGTQUxcCgxnkvSVGwl6hpliTyurMnzJLBbnOQ=; b=NVLgoquVc71vuivg37ezYC+/g9JpbeRFyFHyPfF/6e/zts20lgnCuUWuRnUJsnXroK kziQW5GKmOAUNmElJiW4vzUNh5wjy0eEcX8AvmJ+jI3oq29UwAkQqQoRUeiyjkjA0dMk rUnertyZ6G5iaeIbLfzV9udvGrhDfrU6Ol52jDNJekkYS9dvwmaV8Hn6qcNnf2NufpSe rpLkVusBdOyUqlGftUaNF0JFehhdHcf2tP/VPR1omNFBxqS5+wJ3JjvoYEiEEPyr6ifY +oXWonuI5AmXMrDmr9s19S4YgEADv3LTAMBoD85j/8YL3rWA/RPpLTl6EDzt+XOnbno0 UN1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=rSkuQRm6; dkim=fail header.i=@chromium.org header.s=google header.b=JXKeATki; 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=fail (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 u11-v6si3873171plr.165.2018.05.11.13.16.17; Fri, 11 May 2018 13:16:32 -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=fail header.i=@google.com header.s=20161025 header.b=rSkuQRm6; dkim=fail header.i=@chromium.org header.s=google header.b=JXKeATki; 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=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752026AbeEKUPr (ORCPT + 99 others); Fri, 11 May 2018 16:15:47 -0400 Received: from mail-ua0-f193.google.com ([209.85.217.193]:45986 "EHLO mail-ua0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750798AbeEKUPp (ORCPT ); Fri, 11 May 2018 16:15:45 -0400 Received: by mail-ua0-f193.google.com with SMTP id j5-v6so4381266uak.12 for ; Fri, 11 May 2018 13:15:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=AU2//BmGTQUxcCgxnkvSVGwl6hpliTyurMnzJLBbnOQ=; b=rSkuQRm6m7lTz8mxiShkNUuBKmfDoflTsZli86tWKMrms2DQpdN6tYYstK+xbzO00i IMBLKYpkitE9dkcGRh+5UguH7R2T85ubkGa60z+BO/ZPiSbP1gHJpaUA4M9WGNr1zNDc gDlRQRcOF1xWiBM8QHqUGYhyDu7US7e9Fle5/JS/Mt+HcXO73J/qU7Lj1oKoY9RADzwt B9eZMeE6wHWWwxkljtNQrVL6jdAC9874p77i1skUa3V+vyeLUv1655FJc2bXGk2D28yP bsQvSat8Mxyg3RxruMsyeUAmxzhzoOfvF1V9w3uqDQ6Ia0GLpN65WKREJeGfJCKdkxat UhFQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=AU2//BmGTQUxcCgxnkvSVGwl6hpliTyurMnzJLBbnOQ=; b=JXKeATkiRO6gKR/COu6y4IJWef8Fc/vSydMrFvB+mVAvnTogOEW8zE2RfEWByM5I+a jO8R+7jXFEn68vJ+oHj9d/GUoUv4X5UXuO3zNfHD1XdWPiq+vl7jYggrSpiChofmoYhH dA9lo9aWkmdHDz8ha3CUpw134lwcMFGwSWdYQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=AU2//BmGTQUxcCgxnkvSVGwl6hpliTyurMnzJLBbnOQ=; b=FyXpIMK7rWRY4ExmZ42A7euy2Vo+Bk88pAtjRB13Zx4BY/pr8BTLbQW89BzFSEyw1e ZcZ/map3r/w8BpXqWeLDz8fYKsD0fWXtQbH3L+OYo02O7ZImS/yDp9xrR2GzkRFiGGt8 X5luFZULAYQz0aLPwcHelxipCxHn5m57c5ergf86Oevg9Hdaq+ix9e7zm/1OVluyUiUq DvTdITiKd7mywiwDbU0l0uzg/2aE3iQmFbzAJ/sXZi2o6TcL901D4f4vn5oc6b1kPWqD ViqkY/5kRLMoZOVivgx3kOVApmTOAQI7CCnxuWNPUt9qOSxC4EHEznrdlsRhJ0aaEtzX w7MA== X-Gm-Message-State: ALKqPwcPDXW2opnVpDiAV3p3TNQ63/bvS7jWa4yKWIxuxiykeb0ISUZJ Imc9BhsPTfylvMl6RkY8qjr343PyzeHxrq7ZEn0bXg== X-Received: by 2002:a9f:26a2:: with SMTP id 31-v6mr2637569uay.46.1526069744003; Fri, 11 May 2018 13:15:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.48.82 with HTTP; Fri, 11 May 2018 13:15:43 -0700 (PDT) In-Reply-To: <20180509170159.29682-2-ilina@codeaurora.org> References: <20180509170159.29682-1-ilina@codeaurora.org> <20180509170159.29682-2-ilina@codeaurora.org> From: Doug Anderson Date: Fri, 11 May 2018 13:15:43 -0700 X-Google-Sender-Auth: STkCBZE33PCvIrjl0lDlrufdYG0 Message-ID: Subject: Re: [PATCH v8 01/10] drivers: qcom: rpmh-rsc: add RPMH controller for QCOM SoCs To: Lina Iyer Cc: Andy Gross , David Brown , linux-arm-msm@vger.kernel.org, "open list:ARM/QUALCOMM SUPPORT" , Rajendra Nayak , Bjorn Andersson , LKML , Stephen Boyd , Evan Green , Matthias Kaehlcke , rplsssn@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 Wed, May 9, 2018 at 10:01 AM, Lina Iyer wrote: > +int rpmh_rsc_send_data(struct rsc_drv *drv, const struct tcs_request *msg) > +{ > + int ret; > + > + if (!msg || !msg->cmds || !msg->num_cmds || > + msg->num_cmds > MAX_RPMH_PAYLOAD) { > + WARN_ON(1); > + return -EINVAL; > + } > + > + do { > + ret = tcs_write(drv, msg); > + if (ret == -EBUSY) { > + pr_info_ratelimited("TCS Busy, retrying RPMH message send: addr=%#x\n", > + msg->cmds[0].addr); > + udelay(10); > + } > + } while (ret == -EBUSY); > + > + return ret; > +} > +EXPORT_SYMBOL(rpmh_rsc_send_data); Here and elsewhere in this series: why EXPORT_SYMBOL in this case? This is only exported to rpmh.c, right? You don't need EXPORT_SYMBOL for that. The Makefile puts rpmh.c and rpmh-rsc.c together in the same "qcom_rpmh.o", and then even further the KConfig lists this as bool so both are builtin to the kernel. -Doug