1. 03 2月, 2017 5 次提交
  2. 31 1月, 2017 14 次提交
  3. 30 1月, 2017 4 次提交
  4. 28 1月, 2017 1 次提交
    • S
      [media] media: Rename graph and pipeline structs and functions · 20b85227
      Sakari Ailus 提交于
      The media_entity_pipeline_start() and media_entity_pipeline_stop()
      functions are renamed as media_pipeline_start() and media_pipeline_stop(),
      respectively. The reason is two-fold: the pipeline struct is, rightly,
      already called media_pipeline (rather than media_entity_pipeline) and what
      this really is about is a pipeline. A pipeline consists of entities ---
      and, well, other objects embedded in these entities.
      
      As the pipeline object will be in the future moved from entities to pads
      in order to support multiple pipelines through a single entity, do the
      renaming now.
      
      Similarly, functions operating on struct media_entity_graph as well as the
      struct itself are renamed by dropping the "entity_" part from the prefix
      of the function family and the data structure. The graph traversal which
      is what the functions are about is not specifically about entities only
      and will operate on pads for the same reason as the media pipeline.
      
      The patch has been generated using the following command:
      
      git grep -l media_entity |xargs perl -i -pe '
      	s/media_entity_pipeline/media_pipeline/g;
      	s/media_entity_graph/media_graph/g'
      
      And a few manual edits related to line start alignment and line wrapping.
      Signed-off-by: NSakari Ailus <sakari.ailus@linux.intel.com>
      Acked-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      20b85227
  5. 27 1月, 2017 1 次提交
    • S
      [media] media: Drop FSF's postal address from the source code files · bcb63314
      Sakari Ailus 提交于
      Drop the FSF's postal address from the source code files that typically
      contain mostly the license text. Of the 628 removed instances, 578 are
      outdated.
      
      The patch has been created with the following command without manual edits:
      
      git grep -l "675 Mass Ave\|59 Temple Place\|51 Franklin St" -- \
      	drivers/media/ include/media|while read i; do i=$i perl -e '
      open(F,"< $ENV{i}");
      $a=join("", <F>);
      $a =~ s/[ \t]*\*\n.*You should.*\n.*along with.*\n.*(\n.*USA.*$)?\n//m
      	&& $a =~ s/(^.*)Or, (point your browser to) /$1To obtain the license, $2\n$1/m;
      close(F);
      open(F, "> $ENV{i}");
      print F $a;
      close(F);'; done
      Signed-off-by: NSakari Ailus <sakari.ailus@linux.intel.com>
      bcb63314
  6. 25 12月, 2016 1 次提交
  7. 21 12月, 2016 1 次提交
    • M
      [media] pctv452e: move buffer to heap, no mutex · 48775cb7
      Max Kellermann 提交于
      commit 73d5c5c8 ("[media] pctv452e: don't do DMA on stack") caused
      a NULL pointer dereference which occurs when dvb_usb_init()
      calls dvb_usb_device_power_ctrl() for the first time, before the
      frontend has been attached. It also caused a recursive deadlock because
      tt3650_ci_msg_locked() has already locked the mutex.
      
      So, partially revert it, but move the buffer to the heap
      (DMA capable), not to the stack (may not be DMA capable).
      Instead of sharing one buffer which needs mutex protection,
      do a new heap allocation for each call.
      
      Fixes: commit 73d5c5c8 ("[media] pctv452e: don't do DMA on stack")
      
      Cc: stable@vger.kernel.org # For Kernel 4.9
      Signed-off-by: NMax Kellermann <max.kellermann@gmail.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      48775cb7
  8. 14 12月, 2016 1 次提交
  9. 12 12月, 2016 3 次提交
    • M
      [media] em28xx: don't store usb_device at struct em28xx · c6d48134
      Mauro Carvalho Chehab 提交于
      Now that we're storing usb_interface at em28xx struct,
      there's no good reason to keep storing usb_device, as we can
      get it from usb_interface. So, get rid of it.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      c6d48134
    • M
      [media] em28xx: use usb_interface for dev_foo() calls · 29b05e22
      Mauro Carvalho Chehab 提交于
      The usb_device->dev is not the right device for dev_foo() calls.
      Instead, it should use usb_interface->dev.
      Tested-by: NAntti Palosaari <crope@iki.fi>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      29b05e22
    • M
      [media] em28xx: don't change the device's name · ea48c368
      Mauro Carvalho Chehab 提交于
      Changing the device name, causes it to be unable to remove the
      sysfs file, causing troubles if a device is removed and then
      re-inserted.
      
      [ 1010.310320] WARNING: CPU: 3 PID: 119 at fs/sysfs/dir.c:31 sysfs_warn_dup+0x7b/0x90
      [ 1010.310323] sysfs: cannot create duplicate filename '/bus/usb/devices/1-3.3'
      [ 1010.310325] Modules linked in: lgdt330x em28xx_dvb dvb_core em28xx_alsa tuner_xc2028 tuner tvp5150 em28xx_v4l videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core em28xx tveeprom v4l2_common videodev media xt_CHECKSUM iptable_mangle ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp tun bridge stp llc ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter ip_tables x_tables cmac bnep cpufreq_powersave cpufreq_conservative cpufreq_userspace binfmt_misc parport_pc ppdev lp parport snd_hda_codec_hdmi iTCO_wdt snd_hda_codec_realtek iTCO_vendor_support snd_hda_codec_generic arc4 intel_rapl x86_pkg_temp_thermal iwlmvm intel_powerclamp coretemp kvm_intel mac80211 kvm i915
      [ 1010.310383]  irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel iwlwifi pl2303 aesni_intel btusb aes_x86_64 usbserial lrw btrtl gf128mul glue_helper btbcm ablk_helper cryptd btintel bluetooth drm_kms_helper cfg80211 drm psmouse pcspkr i2c_i801 e1000e serio_raw snd_hda_intel snd_soc_rt5640 snd_hda_codec snd_soc_rl6231 snd_soc_ssm4567 mei_me i2c_smbus rfkill snd_hda_core ptp mei snd_soc_core ehci_pci sg lpc_ich shpchp mfd_core ehci_hcd pps_core snd_hwdep i2c_algo_bit snd_compress snd_pcm sdhci_acpi snd_timer battery snd sdhci elan_i2c snd_soc_sst_acpi mmc_core fjes dw_dmac i2c_hid soundcore snd_soc_sst_match i2c_designware_platform video i2c_designware_core acpi_pad acpi_als kfifo_buf tpm_tis button industrialio tpm_tis_core tpm ext4 crc16 jbd2 fscrypto mbcache dm_mod joydev evdev hid_logitech_hidpp
      [ 1010.310449]  sd_mod hid_logitech_dj usbhid hid ahci libahci crc32c_intel libata xhci_pci xhci_hcd scsi_mod usbcore fan thermal
      [ 1010.310464] CPU: 3 PID: 119 Comm: kworker/3:2 Not tainted 4.9.0-rc8+ #14
      [ 1010.310466] Hardware name:                  /NUC5i7RYB, BIOS RYBDWi35.86A.0350.2015.0812.1722 08/12/2015
      [ 1010.310487] Workqueue: usb_hub_wq hub_event [usbcore]
      [ 1010.310490]  0000000000000000 ffffffff848f56c5 ffff8803b1f7f858 0000000000000000
      [ 1010.310496]  ffffffff8414f8f8 ffff88030000001f ffffed00763eff07 ffff8803b1f7f8f0
      [ 1010.310501]  ffff8803b3ea1e60 0000000000000001 ffffffffffffffef ffff8803b45c6840
      [ 1010.310505] Call Trace:
      [ 1010.310517]  [<ffffffff848f56c5>] ? dump_stack+0x5c/0x77
      [ 1010.310522]  [<ffffffff8414f8f8>] ? __warn+0x168/0x1a0
      [ 1010.310526]  [<ffffffff8414f9e4>] ? warn_slowpath_fmt+0xb4/0xf0
      [ 1010.310529]  [<ffffffff8414f930>] ? __warn+0x1a0/0x1a0
      [ 1010.310534]  [<ffffffff845436c6>] ? kasan_kmalloc+0xa6/0xd0
      [ 1010.310539]  [<ffffffff846ec2fa>] ? kernfs_path_from_node+0x4a/0x60
      [ 1010.310543]  [<ffffffff846f66eb>] ? sysfs_warn_dup+0x7b/0x90
      [ 1010.310547]  [<ffffffff846f6f26>] ? sysfs_do_create_link_sd.isra.2+0xb6/0xd0
      [ 1010.310553]  [<ffffffff84cd5a08>] ? bus_add_device+0x318/0x6b0
      [ 1010.310557]  [<ffffffff846f8693>] ? sysfs_create_groups+0x83/0x110
      [ 1010.310562]  [<ffffffff84ccff87>] ? device_add+0x777/0x1350
      [ 1010.310567]  [<ffffffff84ccf810>] ? device_private_init+0x180/0x180
      [ 1010.310583]  [<ffffffffc00c0f77>] ? usb_new_device+0x707/0x1030 [usbcore]
      [ 1010.310598]  [<ffffffffc00c58c5>] ? hub_event+0x1d65/0x3280 [usbcore]
      [ 1010.310604]  [<ffffffff841eb4ab>] ? account_entity_dequeue+0x30b/0x4a0
      [ 1010.310618]  [<ffffffffc00c3b60>] ? hub_port_debounce+0x280/0x280 [usbcore]
      [ 1010.310624]  [<ffffffff8407ccd0>] ? compat_start_thread+0x80/0x80
      [ 1010.310629]  [<ffffffff851f5cb4>] ? __schedule+0x704/0x1770
      [ 1010.310633]  [<ffffffff851f55b0>] ? io_schedule_timeout+0x390/0x390
      [ 1010.310638]  [<ffffffff84541783>] ? cache_reap+0x173/0x200
      [ 1010.310642]  [<ffffffff84197bed>] ? process_one_work+0x4ed/0xe60
      [ 1010.310646]  [<ffffffff84198642>] ? worker_thread+0xe2/0xfd0
      [ 1010.310650]  [<ffffffff8421f76c>] ? __wake_up_common+0xbc/0x160
      [ 1010.310654]  [<ffffffff84198560>] ? process_one_work+0xe60/0xe60
      [ 1010.310658]  [<ffffffff841a837c>] ? kthread+0x1cc/0x220
      [ 1010.310663]  [<ffffffff841a81b0>] ? kthread_park+0x80/0x80
      [ 1010.310667]  [<ffffffff841a81b0>] ? kthread_park+0x80/0x80
      [ 1010.310671]  [<ffffffff841a81b0>] ? kthread_park+0x80/0x80
      [ 1010.310675]  [<ffffffff852016f5>] ? ret_from_fork+0x25/0x30
      Tested-by: NAntti Palosaari <crope@iki.fi>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      ea48c368
  10. 29 11月, 2016 2 次提交
  11. 24 11月, 2016 2 次提交
  12. 23 11月, 2016 3 次提交
  13. 22 11月, 2016 1 次提交
  14. 21 11月, 2016 1 次提交