Return-path: Received: from mail-wr0-f176.google.com ([209.85.128.176]:34389 "EHLO mail-wr0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752820AbdHQTu1 (ORCPT ); Thu, 17 Aug 2017 15:50:27 -0400 Received: by mail-wr0-f176.google.com with SMTP id y96so49980949wrc.1 for ; Thu, 17 Aug 2017 12:50:27 -0700 (PDT) Subject: Re: [PATCH v2] media: isl6421: add checks for current overflow To: Mauro Carvalho Chehab Cc: Linux Media Mailing List , Mauro Carvalho Chehab , Sakari Ailus References: <24d5b36b-0ed5-f290-15a3-d291b10b6c39@gmail.com> <201c07fc2bed74943f2a74fc5734d9aed3e62f8d.1502652879.git.mchehab@s-opensource.com> <20170816064226.54002cc7@vela.lan> From: Jemma Denson Message-ID: <18c87cff-a407-8ebc-b758-eeb496f29345@gmail.com> Date: Thu, 17 Aug 2017 20:50:24 +0100 MIME-Version: 1.0 In-Reply-To: <20170816064226.54002cc7@vela.lan> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB Sender: linux-media-owner@vger.kernel.org List-ID: On 16/08/17 10:42, Mauro Carvalho Chehab wrote: >> I've just tested both your v2 patch and changes I'm suggesting above; both work >> fine on my setup. Do you want me to send a v3? > Yeah, sure! I'm currently in travel, returning only on Friday, and I don't > have the hardware to test. So, if you can send it, I'd appreciate :-) > > Cheers, > Mauro Ok, just sent. The if statements ended up being a bit complicated, but I added checking if the DCL bit was being overridden (it is by several cards under cx88), only pausing for a second if DCL was in use as the datasheet suggested that's only done in that mode, and also skipped checking overflow if the device was set to off. The latter should cover overflow somehow being picked up during attach and causing the attach to fail. Unlikely to happen but we shouldn't fail on what could be a transient issue. Jemma.