1. 23 Feb, 2016 1 commit
    • Viresh Kumar's avatar
      greybus: interface: Add print messages on interface initialization/removal · 907d1e16
      Viresh Kumar authored
      It might be of interest (to developers at least) to know when an
      interface is getting created or removed from the system.
      
      Interface creation message can further contain basic information about
      the interface, like its vid/pid and mfg/prod ids.
      
      Now, the interface is created by gb_interface_create(), which doesn't
      register the intf->dev to the kernel and so the print message is rather
      added to gb_interface_init() where we register the device with the
      kernel.
      
      A similar message is added to gb_interface_remove() only when the
      interface was earlier initialized.
      
      And this is how the output looks on real insertion/removal of the
      module:
      
      greybus 1-1: Interface added: VID=0x00000001, PID=0x00000001
      greybus 1-1: DDBL1 Manufacturer=0x00000001, Product=0x00000001
      ...
      greybus 1-1: Interface removed
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      Reviewed-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
      907d1e16
  2. 18 Feb, 2016 4 commits
  3. 17 Feb, 2016 7 commits
  4. 15 Feb, 2016 28 commits