Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754237AbcLORqk (ORCPT ); Thu, 15 Dec 2016 12:46:40 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:40280 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751014AbcLORqi (ORCPT ); Thu, 15 Dec 2016 12:46:38 -0500 X-AuditID: cbfee61b-f796f6d000004092-4c-5852d6d68bad Subject: Re: [PATCH RFC] [media] s5k6aa: set usleep_range greater 0 To: Nicholas Mc Guire References: <1481594282-12801-1-git-send-email-hofrat@osadl.org> <5277658.1FioEDcST1@avalon> <20161215011405.GB22190@osadl.at> Cc: Laurent Pinchart , Nicholas Mc Guire , Mauro Carvalho Chehab , Sakari Ailus , Hans Verkuil , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org From: Sylwester Nawrocki Message-id: <32517dbe-f893-fb7e-e3e2-dca7f6ca5e7f@samsung.com> Date: Thu, 15 Dec 2016 18:45:54 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-version: 1.0 In-reply-to: <20161215011405.GB22190@osadl.at> Content-type: text/plain; charset=windows-1252 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrAIsWRmVeSWpSXmKPExsVy+t9jAd1r14IiDN5dNbXYuWg3k8WSn7uY LDo7O1gtOicuYbe4vGsOm0XPhq2sFss2/WGy+LTlG5MDh8eU3xtZPd7ees7uMbtjJqvHplWd bB7zTgZ6vOg5zOLxeZNcAHuUm01GamJKapFCal5yfkpmXrqtUmiIm66FkkJeYm6qrVKErm9I kJJCWWJOKZBnZIAGHJwD3IOV9O0S3DJurNnDXnCPrWLayXNMDYzrWLsYOTkkBEwkeg8vY4aw xSQu3FvP1sXIxSEksJRR4u2bRWAJIYGHjBIr1kqC2MICzhIzV29nAbFFBDQkDn+6BlVzgEmi d1MUSDOzwGImibbDF9lAEmwChhK9R/sYQWxeATuJ3Ws+gMVZBFQltj4+BWRzcIgKREg0HE6H KBGU+DH5Hth8TgE9icP9G9lBSpiB7PsXtUDCzALyEpvXvGWewCgwC0nHLISqWUiqFjAyr2KU SC1ILihOSs81ykst1ytOzC0uzUvXS87P3cQIjr1n0jsYD+9yP8QowMGoxMP7Y1tQhBBrYllx Ze4hRgkOZiUR3uIrQCHelMTKqtSi/Pii0pzU4kOMpkBfTGSWEk3OB6aFvJJ4QxNzE3NjAwtz S0sTIyVx3sbZz8KFBNITS1KzU1MLUotg+pg4OKUaGMW+qq5oFg9pu1osUG7cExa37Oycbdz9 i+Vuqzx9P2fLR4s+mX7z8BUaFT4zK3fPy6tbWK+zdvqS+dNvhL980We14vYCmZWcIq/+2BTu vdUo5Ds5cdvfuXIiadL3yr3N+go6DFplFz6xZd5TzrTr+dK5827sm7g9mi1p70Xza3VLWrhr U2MylyixFGckGmoxFxUnAgAgkmil0wIAAA== X-MTR: 20000000000000000@CPGS Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 844 Lines: 18 On 12/15/2016 02:14 AM, Nicholas Mc Guire wrote: > if its actually unused then it might be best to completely drop the code > raher than fixing up dead-code. Is the EXYNOS the only system that had > this device in use ? If it shold stay in then setting it to the above > proposed 3000, 4000 would seem the most resonable to me as I asume this > change would stay untested. I agree, there little sense in modifying unused code which cannot be tested anyway. The whole driver is a candidate for removal as it has no users in mainline. AFAIK it had only been used on Exynos platforms. I'd suggest to just drop the delay call, there are already usleep_range() calls after the GPIO state change. IIRC the delay was needed to ensure proper I2C bus operation after enabling the voltage level translator, but I'm not 100% sure. -- Thanks, Sylwester