From patchwork Wed Feb 19 22:48:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan Wu X-Patchwork-Id: 322022 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 7200D2C0330 for ; Thu, 20 Feb 2014 09:48:42 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751504AbaBSWsl (ORCPT ); Wed, 19 Feb 2014 17:48:41 -0500 Received: from mail-pa0-f50.google.com ([209.85.220.50]:54052 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750931AbaBSWsl (ORCPT ); Wed, 19 Feb 2014 17:48:41 -0500 Received: by mail-pa0-f50.google.com with SMTP id kp14so1030219pab.37 for ; Wed, 19 Feb 2014 14:48:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=YJKxPM8UaaL+dGNZgAqLKtBGumXeE2l/TrwL8+Bl5tE=; b=ngfDA8lo5v+dr+VgQ7zt5INLdz9H7UIpSHGQ9jFH7mYu2PoG03Pn4YjNZQVUB3lKFf RnKDF9WAJEuRf4RJFQhjWWxhti0nlqLKjJoNrIqmnGQ7MtEWb5lkd1I24Aq5aE9bAMyx +YpOitBdWKiDHIaTFpym2lGEiZSY4pmQnztM7rVdwOCCQwSgG3YFfvpiMxGeMpYIHmHI uoXBgHDgfeIuhyW7RjrmbvPsYOr3CENsNJyfz68FcLsbTso3NivHwvYcZekoHQdC14bj m9WE9U7ELi8UevoVsumer3gHWJ0eKp+ucVuytS23va8quuV1vtmd9ORP++QDgq/9fEs+ bd/Q== X-Received: by 10.68.40.138 with SMTP id x10mr31388778pbk.8.1392850120730; Wed, 19 Feb 2014 14:48:40 -0800 (PST) Received: from localhost (searspoint.nvidia.com. [216.228.112.21]) by mx.google.com with ESMTPSA id yz5sm10553146pac.9.2014.02.19.14.48.38 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 19 Feb 2014 14:48:39 -0800 (PST) From: Bryan Wu To: thierry.reding@gmail.com, tbergstrom@nvidia.com Cc: dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, swarren@wwwdotorg.org Subject: [PATCH v2] host1x: export host1x_syncpt_incr_max function Date: Wed, 19 Feb 2014 14:48:36 -0800 Message-Id: <1392850116-2086-1-git-send-email-cooloney@gmail.com> X-Mailer: git-send-email 1.8.3.2 Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org From: Bryan Wu Tegra V4L2 camera driver needs this function to do frame capture. Signed-off-by: Bryan Wu --- drivers/gpu/host1x/syncpt.c | 1 + include/linux/host1x.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/gpu/host1x/syncpt.c b/drivers/gpu/host1x/syncpt.c index bfb09d8..b10550e 100644 --- a/drivers/gpu/host1x/syncpt.c +++ b/drivers/gpu/host1x/syncpt.c @@ -102,6 +102,7 @@ u32 host1x_syncpt_incr_max(struct host1x_syncpt *sp, u32 incrs) { return (u32)atomic_add_return(incrs, &sp->max_val); } +EXPORT_SYMBOL(host1x_syncpt_incr_max); /* * Write cached syncpoint and waitbase values to hardware. diff --git a/include/linux/host1x.h b/include/linux/host1x.h index 3af8472..d2b5299 100644 --- a/include/linux/host1x.h +++ b/include/linux/host1x.h @@ -136,6 +136,7 @@ u32 host1x_syncpt_id(struct host1x_syncpt *sp); u32 host1x_syncpt_read_min(struct host1x_syncpt *sp); u32 host1x_syncpt_read_max(struct host1x_syncpt *sp); int host1x_syncpt_incr(struct host1x_syncpt *sp); +u32 host1x_syncpt_incr_max(struct host1x_syncpt *sp, u32 incrs); int host1x_syncpt_wait(struct host1x_syncpt *sp, u32 thresh, long timeout, u32 *value); struct host1x_syncpt *host1x_syncpt_request(struct device *dev,