linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: Antti Palosaari <crope@iki.fi>
Cc: Hans Verkuil <hverkuil@xs4all.nl>,
	linux-media <linux-media@vger.kernel.org>
Subject: Re: dvb-usb-v2 change broke s2250-loader compilation
Date: Thu, 16 Aug 2012 15:34:29 -0300	[thread overview]
Message-ID: <502D3D35.7020107@redhat.com> (raw)
In-Reply-To: <502D3C6F.6010507@iki.fi>

Em 16-08-2012 15:31, Antti Palosaari escreveu:
> On 08/16/2012 07:50 PM, Mauro Carvalho Chehab wrote:
>> Em 16-08-2012 11:29, Antti Palosaari escreveu:
>>> On 08/16/2012 05:07 PM, Hans Verkuil wrote:
>>>> On Thu August 16 2012 15:45:47 Antti Palosaari wrote:
>>>>> On 08/16/2012 03:18 PM, Antti Palosaari wrote:
>>>>>> On 08/16/2012 01:33 PM, Hans Verkuil wrote:
>>>>>>> Building the kernel with the Sensoray 2250/2251 staging go7007 driver
>>>>>>> enabled
>>>>>>> fails with this link error:
>>>>>>>
>>>>>>> ERROR: "usb_cypress_load_firmware"
>>>>>>> [drivers/staging/media/go7007/s2250-loader.ko] undefined!
>>>>>>>
>>>>>>> As far as I can tell this is related to the dvb-usb-v2 changes.
>>>>>>>
>>>>>>> Can someone take a look at this?
>>>>>>>
>>>>>>> Thanks!
>>>>>>>
>>>>>>>       Hans
>>>>>>
>>>>>> Yes it is dvb usb v2 related. I wasn't even aware that someone took that
>>>>>> module use in few days after it was added for the dvb-usb-v2.
>>>>>>
>>>>>> Maybe it is worth to make it even more common and move out of dvb-usb-v2...
>>>>>>
>>>>>> regards
>>>>>> Antti
>>>>>
>>>>> And after looking it twice I cannot see the reason. I split that Cypress
>>>>> firmware download to own module called dvb_usb_cypress_firmware which
>>>>> offer routine usbv2_cypress_load_firmware(). Old DVB USB is left
>>>>> untouched. I can confirm it fails to compile for s2250, but there is
>>>>> still old dvb_usb_cxusb that is compiling without a error.
>>>>>
>>>>> Makefile paths seems to be correct also, no idea whats wrong....
>>>>
>>>> drivers/media/usb/Makefile uses := instead of += for the dvb-usb(-v2) directories,
>>>> and that prevents dvb-usb from being build. I think that's the cause of the link
>>>> error.
>>>
>>> For that I cannot say as I don't understand situation enough.
>>>
>>>> In addition I noticed that in usb/dvb-usb there is a dvb_usb_dvb.c and a
>>>> dvb-usb-dvb.c file: there's a mixup with _ and -.
>>>
>>> These files seems to be my fault. Original patch series removes those,
>>> but I was forced to rebase whole set and in that rebased set those are left unremoved.
>>> Likely due to some rebase conflict. I will send new patch to remove those.
>>
>> If you remove the _, they'll conflict with dvb-usb at media-build.git.
>>
>> The better is to add a _v2 (or -v2) on all dvb-usb-v2 files
>> (or to convert the remaining dvb-usb drivers to dvb-usb-v2).
> 
> hmm, now I am quite out what you mean.
> 
> This is from my first PULL-request:
> http://git.linuxtv.org/anttip/media_tree.git/commit/c60c6d44111be2b2fd9ef9b716ea50bd87493893
> 
> And this is same patch after large rebase:
> http://git.linuxtv.org/anttip/media_tree.git/commit/ac97c6f722aafb5b562ef04062b543147399dff8
> 
> Why removing those wrong files will cause conflict in media_build.git ?

Because, at the media-build, all files are linked into the "/v4l" dir. If there are two different
modules with the same name, one will override the other.
> 
> 
> 
> OK, those are just wasting space nothing more. But there was that original problem too which breaks s2250-loader compilation.
> 
> regards
> Antti
> 
>>
>> Regards,
>> Mauro
>>
>>>
>>>> Mauro, did that happen during the reorganization?
>>>>
>>>> Regards,
>>>>
>>>>      Hans
>>>>
>>>
>>> regards
>>> Antti
>>>
>>
> 
> 


  reply	other threads:[~2012-08-16 18:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-16 10:33 dvb-usb-v2 change broke s2250-loader compilation Hans Verkuil
2012-08-16 12:18 ` Antti Palosaari
2012-08-16 13:45   ` Antti Palosaari
2012-08-16 14:07     ` Hans Verkuil
2012-08-16 14:29       ` Antti Palosaari
2012-08-16 16:50         ` Mauro Carvalho Chehab
2012-08-16 18:31           ` Antti Palosaari
2012-08-16 18:34             ` Mauro Carvalho Chehab [this message]
2012-08-16 18:48               ` Antti Palosaari
2012-08-16 20:06                 ` Mauro Carvalho Chehab
2012-08-16 20:41                   ` Antti Palosaari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=502D3D35.7020107@redhat.com \
    --to=mchehab@redhat.com \
    --cc=crope@iki.fi \
    --cc=hverkuil@xs4all.nl \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).