Skip to contentSkip to conversation

[09051_54] Siano: remove obsolete sms_board_setup

PATCH Michael Krufky 1 participant 1 message May 19, 2009 1 message not in the archive Media (V4L/DVB)

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 154 lines · Uri Shkolnik
Quoted 142 lines · Michael Krufky

From: Michael Krufky <[email protected]>
Subject: Re: [PATCH] [09051_54] Siano: remove obsolete sms_board_setup
To: "Uri Shkolnik" <[email protected]>
Cc: "LinuxML" <[email protected]>, "Mauro Carvalho Chehab" <[email protected]>
Date: Tuesday, May 19, 2009, 7:31 PM

Quoted 11 lines · Uri Shkolnik

# HG changeset patch
# User Uri Shkolnik <[email protected]>
# Date 1242749967 -10800
# Node ID 0296b0c436d6deba48c710cfb510988267cea057 # Parent  dfcfb90798d3a27cb174019b17fffdee9ce7b2b9 [09051_54] Siano: remove obsolete sms_board_setup

From: Uri Shkolnik <[email protected]>

Remove the target specific sms_board_setup from

smsdvb. This

Quoted 7 lines

is handled now via smsdvb and sms-cards events.

Priority: normal

diff -r dfcfb90798d3 -r 0296b0c436d6

linux/drivers/media/dvb/siano/sms-cards.c

Quoted 1 line

--- a/linux/drivers/media/dvb/siano/sms-cards.c Tue

May 19 19:05:02 2009 +0300
Quoted 1 line

+++ b/linux/drivers/media/dvb/siano/sms-cards.c Tue

May 19 19:19:27 2009 +0300

Review static int sms_set_gpio(struct

Quoted 1 line
(quoted diff) +0 -0
@@ -303,28 +303,6 @@ static int sms_set_gpio(struct

smscore_d

Review static int sms_set_gpio(struct · line 303

Quoted 1 line
(quoted diff) +0 -0
        return smscore_set_gpio(coredev, gpio,

lvl);

Review static int sms_set_gpio(struct · line 306

Quoted 3 lines
(quoted diff) +0 -1
  }
 
-int sms_board_setup(struct smscore_device_t

*coredev)

Review static int sms_set_gpio(struct · line 308

Quoted 2 lines
(quoted diff) +0 -2
-{
-       int board_id =

smscore_get_board_id(coredev);

Review static int sms_set_gpio(struct · line 309

Quoted 1 line
(quoted diff) +0 -1
-       struct sms_board *board =

sms_get_board(board_id);

Review static int sms_set_gpio(struct · line 314

Quoted 5 lines
(quoted diff) +0 -5
-
-       switch (board_id) {
-       case SMS1XXX_BOARD_HAUPPAUGE_WINDHAM:
-               /* turn off all LEDs */
-               sms_set_gpio(coredev,

board->led_power, 0);

Review static int sms_set_gpio(struct · line 315

Quoted 1 line
(quoted diff) +0 -1
-               sms_set_gpio(coredev,

board->led_hi, 0);

Review static int sms_set_gpio(struct · line 316

Quoted 1 line
(quoted diff) +0 -1
-               sms_set_gpio(coredev,

board->led_lo, 0);

Review static int sms_set_gpio(struct · line 318

Quoted 2 lines
(quoted diff) +0 -2
-               break;
-       case

SMS1XXX_BOARD_HAUPPAUGE_TIGER_MINICARD_R2:

Review static int sms_set_gpio(struct · line 319

Quoted 1 line
(quoted diff) +0 -1
-       case

SMS1XXX_BOARD_HAUPPAUGE_TIGER_MINICARD:

Review static int sms_set_gpio(struct · line 321

Quoted 2 lines
(quoted diff) +0 -2
-               /* turn off LNA */
-               sms_set_gpio(coredev,

board->lna_ctrl, 0);

Quoted 7 lines
(quoted diff) +0 -6
-               break;
-       }
-       return 0;
-}
-EXPORT_SYMBOL_GPL(sms_board_setup);
-

 int sms_board_power(struct smscore_device_t

*coredev, int onoff)

Quoted 2 lines

 {
       int board_id =

smscore_get_board_id(coredev);

Quoted 1 line

diff -r dfcfb90798d3 -r 0296b0c436d6

linux/drivers/media/dvb/siano/sms-cards.h

Quoted 1 line

--- a/linux/drivers/media/dvb/siano/sms-cards.h Tue

May 19 19:05:02 2009 +0300
Quoted 1 line

+++ b/linux/drivers/media/dvb/siano/sms-cards.h Tue

May 19 19:19:27 2009 +0300

Review int sms_board_event(struct

Quoted 1 line
(quoted diff) +0 -0
@@ -109,8 +109,6 @@ int sms_board_event(struct

smscore_devic

Quoted 1 line

 int sms_board_event(struct smscore_device_t

*coredev,

Quoted 3 lines

               enum SMS_BOARD_EVENTS gevent);

-int sms_board_setup(struct smscore_device_t

*coredev);

Quoted 5 lines

-
 #define SMS_LED_OFF 0
 #define SMS_LED_LO  1
 #define SMS_LED_HI  2
diff -r dfcfb90798d3 -r 0296b0c436d6

linux/drivers/media/dvb/siano/smsdvb.c

Quoted 1 line

--- a/linux/drivers/media/dvb/siano/smsdvb.c    Tue

May 19 19:05:02 2009 +0300
Quoted 1 line

+++ b/linux/drivers/media/dvb/siano/smsdvb.c    Tue

May 19 19:19:27 2009 +0300

Review static int smsdvb_hotplug(struct

Quoted 1 line
(quoted diff) +0 -0
@@ -600,7 +600,6 @@ static int smsdvb_hotplug(struct

smscore

Review static int smsdvb_hotplug(struct · line 600

Quoted 1 line
(quoted diff) +0 -0
        sms_board_dvb3_event(client,

DVB3_EVENT_HOTPLUG);

Quoted 11 lines
(quoted diff) +0 -2
        sms_info("success");
-       sms_board_setup(coredev);
 
        return 0;
 
 
 
 
 
--
Quoted 1 line

To unsubscribe from this list: send the line

"unsubscribe linux-media" in

Quoted 3 lines

the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

NACK.

This changes the behavior of the Hauppauge devices. Let Uri get all
his other stuff in place first, and THEN we can look at this
separately.

In addition, this changeset was merged WITHOUT my ack:

http://linuxtv.org/hg/v4l-dvb/rev/37969546eee8 - Siano:
smscards -
assign gpio to HPG targets

That changeset 37969546eee8 alone does not cause any change in
behavior, but with Uri's patches from today it will change the
Hauppauge device behavior.

Quoted 6 lines

That patch should be reverted and dealt with separately, after Uri is
finished with his other changes.

-Mike

Quoted 7 lines

Mike,

Please note that the Hauppauge device behavior has been merged to the board_event()  **prior** to this patch.

I did my best to follow the logic, I might be wrong (please check).

This patch is remove *duplicate* led setting, etc...

Uri,

I nack'd that patch as well. Please don't change the Hauppauge device behavior -- those changesets break the device functionality.

Please get all of your core changes in first, then we can look at device-specifics separately.

Regards,

Mike