Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932991AbbFCREe (ORCPT ); Wed, 3 Jun 2015 13:04:34 -0400 Received: from mail-wi0-f175.google.com ([209.85.212.175]:33306 "EHLO mail-wi0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932827AbbFCREQ (ORCPT ); Wed, 3 Jun 2015 13:04:16 -0400 Message-ID: <556F3388.607@gmail.com> Date: Wed, 03 Jun 2015 18:04:08 +0100 From: Malcolm Priestley User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Antti Palosaari , David Howells CC: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: Re: [PATCH 2/2] ts2020: Provide DVBv5 API signal strength References: <556F1A02.9020203@gmail.com> <55677568.4070603@gmail.com> <5564C269.2000003@gmail.com> <20150526150400.10241.25444.stgit@warthog.procyon.org.uk> <20150526150407.10241.89123.stgit@warthog.procyon.org.uk> <360.1432807690@warthog.procyon.org.uk> <23160.1433326669@warthog.procyon.org.uk> <31746.1433349441@warthog.procyon.org.uk> <556F2EB4.6030108@iki.fi> In-Reply-To: <556F2EB4.6030108@iki.fi> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1342 Lines: 39 On 03/06/15 17:43, Antti Palosaari wrote: > On 06/03/2015 07:37 PM, David Howells wrote: >> Malcolm Priestley wrote: >> >>>>> Yes, also, the workqueue appears not to be initialized when using >>>>> the dvb >>>>> attached method. >>>> >>>> I'm not sure what you're referring to. It's initialised in >>>> ts2020_probe() >>>> just after the ts2020_priv struct is allocated - the only place it is >>>> allocated. >>>> >>> ts2020_probe() isn't touched by devices not converted to I2C binding. >> >> Hmmm... Doesn't that expose a larger problem? The only place the >> ts2020_priv >> struct is allocated is in ts2020_probe() within ts2020.c and the struct >> definition is private to that file and so it can't be allocated from >> outside. >> So if you don't pass through ts2020_probe(), fe->tuner_priv will >> remain NULL >> and the driver will crash. > > Malcolm misses some pending patches where attach() is wrapped to I2C > model probe(). > http://git.linuxtv.org/cgit.cgi/anttip/media_tree.git/log/?h=ts2020 > Hmmm... Yes, I am indeed missing those patches. I will test. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/