linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
To: Jiri Kosina <jikos@kernel.org>
Cc: jic23@kernel.org, benjamin.tissoires@redhat.com,
	linux-input@vger.kernel.org, linux-iio@vger.kernel.org,
	linux-kernel@vger.kernel.org, chaya.golan@intel.com,
	daniel.drubin@intel.com, A.Bhattacharya@ulg.ac.be
Subject: Re: [PATCH 2/6] hid: intel_ish-hid: ISH Transport layer
Date: Fri, 17 Jun 2016 14:12:43 -0700	[thread overview]
Message-ID: <1466197963.24319.110.camel@linux.intel.com> (raw)
In-Reply-To: <alpine.LNX.2.00.1606172236520.6874@cbobk.fhfr.pm>

On Fri, 2016-06-17 at 22:43 +0200, Jiri Kosina wrote:
> On Sat, 11 Jun 2016, Srinivas Pandruvada wrote:
> 
> [ ... snip ... ]
> > diff --git a/drivers/hid/intel-ish-hid/Kconfig b/drivers/hid/intel-
> ish-hid/Kconfig
> > new file mode 100644
> > index 0000000..8914f3b
> > --- /dev/null
> > +++ b/drivers/hid/intel-ish-hid/Kconfig
> > @@ -0,0 +1,22 @@
> > +menu "Intel ISH HID support"
> > +     depends on X86 && PCI
> > +
> > +config INTEL_ISH_HID_TRANSPORT
> > +     bool
> > +     default n
> > +
> > +config INTEL_ISH_HID
> > +     bool "Intel Integrated Sensor Hub"
> 
> Why can't the transport driver be built as a module?
In current use case for PM, we don't want anyone to unload and
complain.
But if this is a strong requirement, I will change this to a module.

Thanks,
Srinivas

> 
> [ ... snip ... ]
> > +/**
> > + * ishtp_bus_add_device() - Function to create device on bus
> > + *
> > + * @dev:     ishtp device
> > + * @uuid:    uuid of the client
> > + * @name:    Name of the client
> > + *
> > + * Allocate ISHTP bus client device, attach it to uuid
> > + * and register with ISHTP bus.
> > + */
> > +struct ishtp_cl_device *ishtp_bus_add_device(struct ishtp_device
> *dev,
> > +                                          uuid_le uuid, char
> *name)
> > +{
> 
> Should be static.
> 
> [ ... snip ... ]
> > +/**
> > + * ishtp_bus_remove_device() - Function to relase device on bus
> > + *
> > + * @device:  client device instance
> > + *
> > + * This is a counterpart of ishtp_bus_add_device.
> > + * Device is unregistered.
> > + * the device structure is freed in 'ishtp_cl_dev_release'
> function
> > + * Called only during error in pci driver init path.
> > + */
> > +void ishtp_bus_remove_device(struct ishtp_cl_device *device)
> > +{
> 
> Should be static.
> 
> [ ... snip ... ]
> > +/*
> > + * ishtp_hbm_dma_xfer_ack - receive ack for ISHTP-over-DMA client
> message
> > + *
> > + * Constraint:
> > + * First implementation is one ISHTP message per DMA transfer
> > + */
> > +void ishtp_hbm_dma_xfer_ack(struct ishtp_device *dev,
> 
> Should be static.
> 
> [ ... snip ... ]
> > +/* ishtp_hbm_dma_xfer - receive ISHTP-over-DMA client message */
> > +void ishtp_hbm_dma_xfer(struct ishtp_device *dev,
> > +                     struct dma_xfer_hbm *dma_xfer)
> 
> Should be static.
> 
> -- 
> Jiri Kosina
> SUSE Labs
> 

  parent reply	other threads:[~2016-06-17 21:12 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-11 12:13 [PATCH 0/6] Intel Integrated Sensor Hub Support (ISH) Srinivas Pandruvada
2016-06-11 12:13 ` [PATCH 1/6] Documentation: hid: Intel ISH HID document Srinivas Pandruvada
     [not found]   ` <1465647219-7798-2-git-send-email-srinivas.pandruvada-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2016-06-17 20:43     ` Jiri Kosina
2016-06-11 12:13 ` [PATCH 2/6] hid: intel_ish-hid: ISH Transport layer Srinivas Pandruvada
2016-06-17 20:43   ` Jiri Kosina
2016-06-17 20:45     ` Jiri Kosina
2016-06-17 21:09       ` Srinivas Pandruvada
2016-06-17 21:12     ` Srinivas Pandruvada [this message]
2016-06-20  9:29       ` Jiri Kosina
     [not found]         ` <alpine.LNX.2.00.1606201129060.6874-YHPUNQjx9ReKbouaWp301Q@public.gmane.org>
2016-06-20 14:19           ` One Thousand Gnomes
2016-06-11 12:13 ` [PATCH 3/6] hid: intel-ish-hid: ipc layer Srinivas Pandruvada
2016-06-11 12:13 ` [PATCH 4/6] hid: intel-ish-hid: ISH HID client driver Srinivas Pandruvada
2016-06-11 12:13 ` [PATCH 5/6] iio: hid-sensors: use asynchronous resume Srinivas Pandruvada
2016-06-11 12:13 ` [PATCH 6/6] hid: hid-sensor-hub: Add ISH quirk Srinivas Pandruvada
2016-06-11 13:10 ` [PATCH 0/6] Intel Integrated Sensor Hub Support (ISH) Atri Bhattacharya
2016-06-16 19:14 ` Grant Likely

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=1466197963.24319.110.camel@linux.intel.com \
    --to=srinivas.pandruvada@linux.intel.com \
    --cc=A.Bhattacharya@ulg.ac.be \
    --cc=benjamin.tissoires@redhat.com \
    --cc=chaya.golan@intel.com \
    --cc=daniel.drubin@intel.com \
    --cc=jic23@kernel.org \
    --cc=jikos@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@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;
as well as URLs for NNTP newsgroup(s).