1. 19 Mar, 2019 2 commits
    • Srinivas Pandruvada's avatar
      HID: intel-ish-hid: Hide members of struct ishtp_cl_device · 7ab21842
      Srinivas Pandruvada authored
      ISH clients don't need to access any field of struct ishtp_cl_device. To
      avoid this create an interface functions instead where it is required.
      In the case of ishtp_cl_allocate(), modify the parameters so that the
      clients don't have to dereference.
      Clients can also use tracing, here a new interface is added to get the
      common trace function pointer, instead of direct call.
      The new interface functions defined in one external header file, named
      intel-ish-client-if.h. This is the only header files all ISHTP clients
      must include.
      Signed-off-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      7ab21842
    • Hong Liu's avatar
      HID: intel-ish-hid: Add match callback to ishtp bus type · 6b3f75f7
      Hong Liu authored
      Currently we depend on the guid check in ishtp_cl_driver.probe to match
      the device and driver. However Linux device core first calls the match()
      callback to decide the matching of driver and device, and then does some
      preparation before calling the driver probe function. If we return error
      in the driver probe, it needs to tear down all the preparation work and
      retry with next driver.
      
      Adding the match callback can avoid the unnecessary entry into unmatched
      driver probe function for ishtp clients reported by FW.
      Signed-off-by: default avatarHong Liu <hong.liu@intel.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      6b3f75f7
  2. 18 Mar, 2019 1 commit
  3. 08 Mar, 2019 37 commits