From patchwork Fri Jan 11 17:41:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 10760417 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 48BED746 for ; Fri, 11 Jan 2019 17:41:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 323312A1ED for ; Fri, 11 Jan 2019 17:41:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 23A542A200; Fri, 11 Jan 2019 17:41:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C23C52A1ED for ; Fri, 11 Jan 2019 17:41:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731366AbfAKRls (ORCPT ); Fri, 11 Jan 2019 12:41:48 -0500 Received: from perceval.ideasonboard.com ([213.167.242.64]:33714 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730100AbfAKRls (ORCPT ); Fri, 11 Jan 2019 12:41:48 -0500 Received: from localhost.localdomain (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id DA6F753E; Fri, 11 Jan 2019 18:41:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1547228506; bh=mF0IgxJu9knnf20ipHtY8kls114XAOdfh5tm+YBaADc=; h=From:To:Cc:Subject:Date:From; b=SkvNAmXypf8MeEXl/MatJ1IFUCHG77OT3f3+wcPqTy8jjagbl1d+GRqIicRCCw5Sb yVhZ4NLP9pKP9M+/vOCp/MI67Ktod7ZAuiEJi0xeOVto9yQ6zXxbmsaAiWmQAmBj6t tOf+qXo+s+jIF8PZjVMDGazZAlkiMJ2/pKBRdUtA= From: Kieran Bingham To: Koji Matsuoka , Jacopo Mondi , Laurent Pinchart , =?utf-8?q?Niklas_S?= =?utf-8?q?=C3=B6derlund?= , Steve Longerbeam Cc: linux-renesas-soc@vger.kernel.org, linux-media@vger.kernel.org, Kieran Bingham Subject: [PATCH 0/2] media: i2c: adv748x: Refactor sw_reset handling Date: Fri, 11 Jan 2019 17:41:39 +0000 Message-Id: <20190111174141.12594-1-kieran.bingham+renesas@ideasonboard.com> X-Mailer: git-send-email 2.17.1 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The sw_reset functionality was implemented through a poorly documented set of 'required writes' from a table. This also included an delay in the table which required a 'hack' in the adv748x_write() routines. These patches rework the reset handling to a function and remove the delay workaround. Kieran Bingham (2): media: i2c: adv748x: Convert SW reset routine to function media: i2c: adv748x: Remove PAGE_WAIT drivers/media/i2c/adv748x/adv748x-core.c | 49 ++++++++++++++---------- drivers/media/i2c/adv748x/adv748x.h | 17 +++++++- 2 files changed, 44 insertions(+), 22 deletions(-)