Re: [GIT PULL FOR v4.15] RC cleanup fixes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Sep 24, 2017 at 06:09:32AM -0300, Mauro Carvalho Chehab wrote:
> Em Sat, 23 Sep 2017 21:38:59 +0100
> Sean Young <sean@xxxxxxxx> escreveu:
> 
> > Hi Mauro,
> > 
> > On Sat, Sep 23, 2017 at 04:35:31PM -0300, Mauro Carvalho Chehab wrote:
> > > Hi Sean,
> > > 
> > > Em Sat, 23 Sep 2017 11:33:56 +0100
> > > Sean Young <sean@xxxxxxxx> escreveu:
> > >   
> > > > Hi Mauro,
> > > > 
> > > > Just cleanups this round. Line count does go down, though.
> > > > 
> > > > Thanks,
> > > > 
> > > > Sean
> > > > 
> > > > 
> > > > The following changes since commit 1efdf1776e2253b77413c997bed862410e4b6aaf:
> > > > 
> > > >   media: leds: as3645a: add V4L2_FLASH_LED_CLASS dependency (2017-09-05 16:32:45 -0400)
> > > > 
> > > > are available in the git repository at:
> > > > 
> > > >   git://linuxtv.org/syoung/media_tree.git for-v4.15a
> > > > 
> > > > for you to fetch changes up to fe96866c81291a2887559fdfcc58ddf8fe54111d:
> > > > 
> > > >   imon: Improve a size determination in two functions (2017-09-23 11:20:12 +0100)
> > > > 
> > > > ----------------------------------------------------------------
> > > > Arvind Yadav (1):
> > > >       media: rc: constify usb_device_id
> > > > 
> > > > Bhumika Goyal (1):
> > > >       media: rc: make device_type const
> > > > 
> > > > Colin Ian King (1):
> > > >       media: imon: make two const arrays static, reduces object code size
> > > > 
> > > > David Härdeman (15):
> > > >       media: lirc_dev: clarify error handling
> > > >       media: lirc_dev: remove support for manually specifying minor number
> > > >       media: lirc_dev: remove min_timeout and max_timeout  
> > > 
> > > This patch doesn't get rid of the corresponding documentation bits:
> > > 
> > > $ git grep MIN_TIMEOUT Documentation/
> > > Documentation/media/uapi/rc/lirc-get-timeout.rst:ioctls LIRC_GET_MIN_TIMEOUT and LIRC_GET_MAX_TIMEOUT
> > > Documentation/media/uapi/rc/lirc-get-timeout.rst:LIRC_GET_MIN_TIMEOUT / LIRC_GET_MAX_TIMEOUT - Obtain the possible timeout
> > > Documentation/media/uapi/rc/lirc-get-timeout.rst:.. c:function:: int ioctl( int fd, LIRC_GET_MIN_TIMEOUT, __u32 *timeout)
> > > Documentation/media/uapi/rc/lirc-get-timeout.rst:    :name: LIRC_GET_MIN_TIMEOUT
> > > Documentation/media/uapi/rc/lirc-set-rec-timeout.rst:   The range of supported timeout is given by :ref:`LIRC_GET_MIN_TIMEOUT`.  
> > 
> > So this patch isn't removing those ioctls, it's just removing it from
> > the lirc kernel api (so for lirc_zilog.c and out out of tree lirc drivers,
> > like lirc_rpi). None of those use min/max timeout. It's probably better
> > to drop this.
> 
> Ah, I see. Well, if none of the in-kernel drivers use it, we can
> drop it.

Looks like our emails crossed each other -- I have already pushed out
another PR without it.

> Btw, as it seems that now only lirc_zilog uses the Linux kernel
> API, we could just move it to staging, under drivers/staging/media/lirc/,
> remove all EXPORT_SYMBOL_* from it, and add it to the lirc_zilog
> Makefile.

So ir-lirc-codec.c (our rc-core lirc interface) uses lirc_dev.c (lirc
kernel api), so it would be very difficult to move to staging.

> That probably meets the goal of avoiding people to write new
> drivers based on it. Any other out of tree driver that might
> be still using it could do the same, while such driver is not
> converted to rc-core.

Actually I've made good progress on a new lirc_zilog driver, based on a
re-rolled ir database (firmware file) file for rc-core. With that in
place, the linux kernel api can be removed completely and that will
make the lirc code much cleaner.

I'm hoping to have this finished soon, well in time for v4.15.


Thanks,

Sean



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux