From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 973D6C433EF for ; Thu, 5 May 2022 10:32:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355799AbiEEKfz (ORCPT ); Thu, 5 May 2022 06:35:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355857AbiEEKfk (ORCPT ); Thu, 5 May 2022 06:35:40 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59B4910FEC for ; Thu, 5 May 2022 03:31:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651746717; x=1683282717; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=hV+Oz6Q49NUJwuo+ysBpEscklaHs+Yh0vaIMdarY5fw=; b=Z1DTJJkdNollx7UMjxhOywkho6iDtdiMTegFnq/FXz7TpoRDGWzTrSTm LpNVn/S+vwdEfwY6nyz2YSahIkWYXY5rzB7wNsRjPCWH5+TeaB2HNDfSJ 4RjyxgL6H3vswBvOXWaM3GidW/XSvBVBkE7GEDJXX0tZbxCG4aP8ck3uE /BL1FwsaY/moHgJpsJYvrEoP7ihCfHfAf5/X2oXWXwozTq0WW0FxeM7o8 FctFMdKe8TmXb0kj2NWoQag/YOmEF507Xki32//b/1ho6QKAdLP2GIW+b Esi90ZM+e4Eb2Q7fXcZTOjlI+ZVvO3tWQf3iTBxvoTiarXamdpJmKVL/+ Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10337"; a="266909081" X-IronPort-AV: E=Sophos;i="5.91,201,1647327600"; d="scan'208";a="266909081" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 May 2022 03:31:57 -0700 X-IronPort-AV: E=Sophos;i="5.91,201,1647327600"; d="scan'208";a="537279109" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 May 2022 03:31:54 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1nmYlz-00CF7a-S4; Thu, 05 May 2022 13:31:51 +0300 Date: Thu, 5 May 2022 13:31:51 +0300 From: Andy Shevchenko To: Daniel Scally Cc: linux-media@vger.kernel.org, yong.zhi@intel.com, sakari.ailus@linux.intel.com, bingbu.cao@intel.com, tian.shu.qiu@intel.com, hverkuil-cisco@xs4all.nl Subject: Re: [PATCH v3 15/15] media: i2c: Add vblank control to ov7251 driver Message-ID: References: <20220504223027.3480287-1-djrscally@gmail.com> <20220504223027.3480287-16-djrscally@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220504223027.3480287-16-djrscally@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org On Wed, May 04, 2022 at 11:30:27PM +0100, Daniel Scally wrote: > Add a vblank control to the ov7251 driver. > +static int ov7251_vts_configure(struct ov7251 *ov7251, s32 vblank) > +{ > + u8 vts[2]; > + > + vts[0] = ((ov7251->current_mode->height + vblank) & 0xff00) >> 8; > + vts[1] = ((ov7251->current_mode->height + vblank) & 0x00ff); __be16 vts; cpu_to_be16(); > + return ov7251_write_seq_regs(ov7251, OV7251_TIMING_VTS_REG, vts, 2); > +} -- With Best Regards, Andy Shevchenko