public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab@infradead.org>
To: Jonathan Corbet <corbet@lwn.net>
Cc: Daniel Drake <dsd@laptop.org>,
	dilinger@queued.net, linux-media@vger.kernel.org
Subject: Re: [PATCH] via-camera: Fix OLPC serial check
Date: Mon, 21 Mar 2011 21:48:06 -0300	[thread overview]
Message-ID: <4D87F1C6.3040209@infradead.org> (raw)
In-Reply-To: <20110310092457.2e748f72@bike.lwn.net>

Em 10-03-2011 13:24, Jonathan Corbet escreveu:
> [Trying to bash my inbox into reasonable shape, sorry for the slow
> response...]
> 
> On Thu,  3 Mar 2011 19:03:31 +0000 (GMT)
> Daniel Drake <dsd@laptop.org> wrote:
> 
>> The code that checks the OLPC serial port is never built at the moment,
>> because CONFIG_OLPC_XO_1_5 doesn't exist and probably won't be added.
>>
>> Fix it so that it gets compiled in, only executes on OLPC laptops, and
>> move the check into the probe routine.
>>
>> The compiler is smart enough to eliminate this code when CONFIG_OLPC=n
>> (due to machine_is_olpc() always returning false).
> 
> Getting rid of the nonexistent config option is clearly the right thing to
> do.  I only wonder about moving the check to viacam_probe().  The nice
> thing about having things fail in viacam_init() is that, if the camera is
> not usable, the module will not load at all.  By the time you get to
> viacam_probe(), the module is there but not will be useful for anything.
> 
> Did the check need to move for some reason?  If so, a one-of-these-days
> nice feature might be to allow changing override_serial at run time.
> 
> Regardless, the behavior change only affects OLPC folks using the serial
> line, so I'm OK with it.
> 
> 	Acked-by: Jonathan Corbet <corbet@lwn.net>

Weird, patchwork didn't catch the acked-by:
	https://patchwork.kernel.org/patch/607461/

Perhaps it only does the right thing if the ack is not indented?

As reference, I'm enclosing what patchwork provides when clicking at the
mbox download hyperlink.

Anyway, manually added.

Thanks!
Mauro

---

>From patchwork Thu Mar  3 19:03:31 2011
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: via-camera: Fix OLPC serial check
Date: Thu, 03 Mar 2011 19:03:31 -0000
From: Daniel Drake <dsd@laptop.org>
X-Patchwork-Id: 607461
Message-Id: <20110303190331.E8ED79D401D@zog.reactivated.net>
To: mchehab@infradead.org
Cc: linux-media@vger.kernel.org

The code that checks the OLPC serial port is never built at the moment,
because CONFIG_OLPC_XO_1_5 doesn't exist and probably won't be added.

Fix it so that it gets compiled in, only executes on OLPC laptops, and
move the check into the probe routine.

The compiler is smart enough to eliminate this code when CONFIG_OLPC=n
(due to machine_is_olpc() always returning false).

Signed-off-by: Daniel Drake <dsd@laptop.org>

---
drivers/media/video/via-camera.c |   83 +++++++++++++++++---------------------
 1 files changed, 37 insertions(+), 46 deletions(-)

<diff snipped>

      parent reply	other threads:[~2011-03-22  0:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-03 19:03 [PATCH] via-camera: Fix OLPC serial check Daniel Drake
2011-03-10 16:24 ` Jonathan Corbet
2011-03-10 19:46   ` Daniel Drake
2011-03-22  0:48   ` Mauro Carvalho Chehab [this message]

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=4D87F1C6.3040209@infradead.org \
    --to=mchehab@infradead.org \
    --cc=corbet@lwn.net \
    --cc=dilinger@queued.net \
    --cc=dsd@laptop.org \
    --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