All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/32 v2] staging: gasket: sundry fixes and fixups
@ 2018-07-17  2:08 Todd Poynor
  2018-07-17  2:08 ` [PATCH 01/32] staging: gasket: remove X86 Kconfig restriction Todd Poynor
                   ` (33 more replies)
  0 siblings, 34 replies; 58+ messages in thread
From: Todd Poynor @ 2018-07-17  2:08 UTC (permalink / raw)
  To: Rob Springer, John Joseph, Ben Chan, Greg Kroah-Hartman
  Cc: Zhongze Hu, Simon Que, Dmitry Torokhov, Guenter Roeck, devel,
	linux-kernel, Todd Poynor

From: Todd Poynor <toddpoynor@google.com>

Various fixes mainly from the chromium review of the gasket and apex
drivers.  More to come.

Various (32):
  staging: gasket: remove X86 Kconfig restriction
  staging: gasket: fix typo in apex_enter_reset
  staging: gasket: fix typo in gasket_core.h comments
  staging: gasket: whitespace fix in gasket_page_table_init
  staging: gasket: remove driver registration on class creation failure
  staging: gasket: hold mutex on gasket driver unregistration
  staging: gasket: Return EBUSY on mapping create when already in use
  staging: gasket: Remove stale pointers on error allocating attr array
  staging: gasket: convert gasket_mmap_has_permissions to bool return
  staging: gasket: fix gasket_wait_with_reschedule timeout return code
  staging: gasket: gasket_wait_with_reschedule use msleep
  staging: gasket: gasket_wait_with_reschedule return when condition hit
  staging: gasket: gasket_wait_with_reschedule use 32 bits of retry
    count
  staging: gasket: bail out of reset sequence on device callback error
  staging: gasket: drop gasket_cdev_get_info, use container_of
  staging: gasket: always allow root open for write
  staging: gasket: annotate ioctl arg with __user
  staging: gasket: gasket_enable_dev remove unnecessary variable
  staging: gasket: remove code for no physical device
  staging: gasket: fix class create bug handling
  staging: gasket: remove unnecessary code in coherent allocator
  staging: gasket: don't treat no device reset callback as an error
  staging: gasket: gasket_mmap return error instead of valid BAR index
  staging: gasket: apex_clock_gating simplify logic, reduce indentation
  staging: gasket: apex_ioctl_check_permissions use bool return type
  staging: gasket: gasket page table functions use bool return type
  staging: gasket: remove else clause after return in if clause
  staging: gasket: fix comment syntax in apex.h
  staging: gasket: remove unnecessary parens in page table code
  staging: gasket: gasket_mmap use PAGE_MASK
  staging: gasket: remove extra parens in gasket_write_mappable_regions
  staging: gasket: fix multi-line comment syntax in gasket_core.h

 drivers/staging/gasket/Kconfig             |   2 +-
 drivers/staging/gasket/apex.h              |   7 +-
 drivers/staging/gasket/apex_driver.c       |  79 ++++++++--------
 drivers/staging/gasket/gasket_core.c       | 105 +++++++++------------
 drivers/staging/gasket/gasket_core.h       |  11 ++-
 drivers/staging/gasket/gasket_ioctl.c      |  91 +++++++++---------
 drivers/staging/gasket/gasket_ioctl.h      |   4 +-
 drivers/staging/gasket/gasket_page_table.c |  67 +++++++------
 drivers/staging/gasket/gasket_page_table.h |   8 +-
 drivers/staging/gasket/gasket_sysfs.c      |   4 +-
 10 files changed, 177 insertions(+), 201 deletions(-)

-- 
2.18.0.203.gfac676dfb9-goog

Patches changed from version 1:
  staging: gasket: typo and whitespace cleanups
     Split into new separate patches:
        staging: gasket: whitespace fix in gasket_page_table_init
        staging: gasket: fix typo in gasket_core.h comments
        staging: gasket: fix typo in apex_enter_reset
  staging: gasket: device registration error and unregister fixups
     Split into new separate patches:
        staging: gasket: remove driver registration on class creation failure
	staging: gasket: hold mutex on gasket driver unregistration
  staging: gasket: sysfs mapping creation fixups
     Split into new separate patches:
        staging: gasket: Return EBUSY on mapping create when already in use
        staging: gasket: Remove stale pointers on error allocating attr array
  staging: gasket: gasket_wait_with_reschedule fixups
     Split into new separate patches:
        staging: gasket: fix gasket_wait_with_reschedule timeout return code
	staging: gasket: gasket_wait_with_reschedule use msleep
	staging: gasket: gasket_wait_with_reschedule return when condition hit
  staging: gasket: gasket_open use container_of()
      Replaced by new patch:
        staging: gasket: drop gasket_cdev_get_info, use container_of
  staging: gasket: always allow root open for write
     Add Reviewed-by from Dmitry Torokhov.
  staging: gasket: gasket_enable_dev fixups
     Split into new separate patches:
        staging: gasket: gasket_enable_dev remove unnecessary variable
	staging: gasket: remove code for no physical device
  staging: gasket: fix class create bug handling
     Add Reviewed-by from Dmitry Torokhov.
  staging: gasket: gasket core error handling fixups
     Split into new separate patches:
        staging: gasket: don't treat no device reset callback as an error
	staging: gasket: gasket_mmap return error instead of valid BAR index
  staging: gasket: various cleanups
     Split into new separate patches:
        staging: gasket: apex_clock_gating simplify logic, reduce indentation
	staging: gasket: apex_ioctl_check_permissions use bool return type
	staging: gasket: gasket page table functions use bool return type
	staging: gasket: remove else clause after return in if clause
	staging: gasket: fix comment syntax in apex.h
	staging: gasket: remove unnecessary parens in page table code
	staging: gasket: gasket_mmap use PAGE_MASK
	staging: gasket: remove extra parens in gasket_write_mappable_regions
	staging: gasket: fix multi-line comment syntax in gasket_core.h

Patches dropped from version 1:
  MAINTAINERS: Add maintainer for drivers/staging/gasket
     Need to arrange a positive handoff from existing maintainer, not
     available now.
  staging: gasket: fix deadlock in pci driver unregister path
     Wrapped PCI calls broken, needs a rewrite.
  staging: gasket: don't release coherent mappings
     Not necessary.

Patches unchanged from version 1:
  staging: gasket: remove X86 Kconfig restriction
  staging: gasket: convert gasket_mmap_has_permissions to bool return
  staging: gasket: bail out of reset sequence on device callback error
  staging: gasket: always allow root open for write
  staging: gasket: annotate ioctl arg with __user   
  staging: gasket: remove unnecessary code in coherent allocator

^ permalink raw reply	[flat|nested] 58+ messages in thread
* [PATCH 00/32 v3] staging: gasket: sundry fixes and fixups
@ 2018-07-17 20:56 Todd Poynor
  2018-07-17 20:56 ` [PATCH 17/32] staging: gasket: annotate ioctl arg with __user Todd Poynor
  0 siblings, 1 reply; 58+ messages in thread
From: Todd Poynor @ 2018-07-17 20:56 UTC (permalink / raw)
  To: Rob Springer, John Joseph, Ben Chan, Greg Kroah-Hartman
  Cc: Zhongze Hu, Simon Que, Dmitry Torokhov, Guenter Roeck, devel,
	linux-kernel, Todd Poynor

From: Todd Poynor <toddpoynor@google.com>

Various fixes mainly from the chromium review of the gasket and apex
drivers.  More to come.

Todd Poynor (32):
  staging: gasket: remove X86 Kconfig restriction
  staging: gasket: fix typo in apex_enter_reset
  staging: gasket: fix typo in gasket_core.h comments
  staging: gasket: whitespace fix in gasket_page_table_init
  staging: gasket: remove driver registration on class creation failure
  staging: gasket: hold mutex on gasket driver unregistration
  staging: gasket: Return EBUSY on mapping create when already in use
  staging: gasket: Remove stale pointers on error allocating attr array
  staging: gasket: convert gasket_mmap_has_permissions to bool return
  staging: gasket: fix gasket_wait_with_reschedule timeout return code
  staging: gasket: gasket_wait_with_reschedule use msleep
  staging: gasket: gasket_wait_with_reschedule simplify logic
  staging: gasket: gasket_wait_with_reschedule use 32 bits of retry
    count
  staging: gasket: bail out of reset sequence on device callback error
  staging: gasket: drop gasket_cdev_get_info, use container_of
  staging: gasket: always allow root open for write
  staging: gasket: annotate ioctl arg with __user
  staging: gasket: gasket_enable_dev remove unnecessary variable
  staging: gasket: remove code for no physical device
  staging: gasket: fix class create bug handling
  staging: gasket: remove unnecessary code in coherent allocator
  staging: gasket: don't treat no device reset callback as an error
  staging: gasket: gasket_mmap return error instead of valid BAR index
  staging: gasket: apex_clock_gating simplify logic, reduce indentation
  staging: gasket: apex_ioctl_check_permissions use bool return type
  staging: gasket: gasket page table functions use bool return type
  staging: gasket: remove else clause after return in if clause
  staging: gasket: fix comment syntax in apex.h
  staging: gasket: remove unnecessary parens in page table code
  staging: gasket: gasket_mmap use PAGE_MASK
  staging: gasket: remove extra parens in gasket_write_mappable_regions
  staging: gasket: fix multi-line comment syntax in gasket_core.h

Changes from v2:
  staging: gasket: Return EBUSY on mapping create when already in use
     Update commit text for clarity: why EBUSY is better than EINVAL here.
  staging: gasket: gasket_wait_with_reschedule use msleep
     Update commit text for clarity: why msleep is better than
     schedule_timeout here.
  staging: gasket: gasket_wait_with_reschedule return when condition hit
     Renamed: staging: gasket: gasket_wait_with_reschedule simplify logic
     Update commit text for clarity: improved description of change.
     Remove extraneous condition check and a return statement now impossible
     to reach.
  staging: gasket: always allow root open for write
     Add change that accidentally went into the below patch in v2.
     Normalize file mode bitwise ANDs to zero or one values.
     Dropped Reviewed-by from Dmitry Torokhov since this has changed.
  staging: gasket: annotate ioctl arg with __user
     Remove stray change from v2, now moved into the above patch in v3.
  staging: gasket: remove else clause after return in if clause
     Don't break line that doesn't need it after indentation reduced.
  staging: gasket: gasket_mmap use PAGE_MASK
     Update commit text for clarity: why ~PAGE_MASK is better than
     PAGE_SIZE - 1 here.
  staging: gasket: apex_clock_gating simplify logic, reduce indentation
     Unbreak line that no longer needs a break after re-indent.
     
Unchanged from v2:
  staging: gasket: remove X86 Kconfig restriction
  staging: gasket: fix typo in apex_enter_reset
  staging: gasket: fix typo in gasket_core.h comments
  staging: gasket: whitespace fix in gasket_page_table_init
  staging: gasket: remove driver registration on class creation failure
  staging: gasket: hold mutex on gasket driver unregistration
  staging: gasket: Remove stale pointers on error allocating attr array
  staging: gasket: convert gasket_mmap_has_permissions to bool return
  staging: gasket: fix gasket_wait_with_reschedule timeout return code
  staging: gasket: gasket_wait_with_reschedule use 32 bits of retry
    count
  staging: gasket: bail out of reset sequence on device callback error
  staging: gasket: drop gasket_cdev_get_info, use container_of
  staging: gasket: gasket_enable_dev remove unnecessary variable
  staging: gasket: remove code for no physical device
  staging: gasket: fix class create bug handling
  staging: gasket: remove unnecessary code in coherent allocator
  staging: gasket: don't treat no device reset callback as an error
  staging: gasket: gasket_mmap return error instead of valid BAR index
  staging: gasket: apex_ioctl_check_permissions use bool return type
  staging: gasket: gasket page table functions use bool return type
  staging: gasket: fix comment syntax in apex.h
  staging: gasket: remove unnecessary parens in page table code
  staging: gasket: remove extra parens in gasket_write_mappable_regions
  staging: gasket: fix multi-line comment syntax in gasket_core.h

 drivers/staging/gasket/Kconfig             |   2 +-
 drivers/staging/gasket/apex.h              |   7 +-
 drivers/staging/gasket/apex_driver.c       |  77 ++++++--------
 drivers/staging/gasket/gasket_core.c       | 115 ++++++++-------------
 drivers/staging/gasket/gasket_core.h       |  11 +-
 drivers/staging/gasket/gasket_ioctl.c      |  95 +++++++++--------
 drivers/staging/gasket/gasket_ioctl.h      |   4 +-
 drivers/staging/gasket/gasket_page_table.c |  66 ++++++------
 drivers/staging/gasket/gasket_page_table.h |   8 +-
 drivers/staging/gasket/gasket_sysfs.c      |   4 +-
 10 files changed, 177 insertions(+), 212 deletions(-)

-- 
2.18.0.203.gfac676dfb9-goog


^ permalink raw reply	[flat|nested] 58+ messages in thread

end of thread, other threads:[~2018-07-30  7:01 UTC | newest]

Thread overview: 58+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-17  2:08 [PATCH 00/32 v2] staging: gasket: sundry fixes and fixups Todd Poynor
2018-07-17  2:08 ` [PATCH 01/32] staging: gasket: remove X86 Kconfig restriction Todd Poynor
2018-07-19  9:25   ` Greg Kroah-Hartman
2018-07-17  2:08 ` [PATCH 02/32] staging: gasket: fix typo in apex_enter_reset Todd Poynor
2018-07-17  2:08 ` [PATCH 03/32] staging: gasket: fix typo in gasket_core.h comments Todd Poynor
2018-07-17  2:08 ` [PATCH 04/32] staging: gasket: whitespace fix in gasket_page_table_init Todd Poynor
2018-07-17  2:08 ` [PATCH 05/32] staging: gasket: remove driver registration on class creation failure Todd Poynor
2018-07-17  2:09 ` [PATCH 06/32] staging: gasket: hold mutex on gasket driver unregistration Todd Poynor
2018-07-17  2:09 ` [PATCH 07/32] staging: gasket: Return EBUSY on mapping create when already in use Todd Poynor
2018-07-17  2:09 ` [PATCH 08/32] staging: gasket: Remove stale pointers on error allocating attr array Todd Poynor
2018-07-17  2:09 ` [PATCH 09/32] staging: gasket: convert gasket_mmap_has_permissions to bool return Todd Poynor
2018-07-17  2:09 ` [PATCH 10/32] staging: gasket: fix gasket_wait_with_reschedule timeout return code Todd Poynor
2018-07-17  2:09 ` [PATCH 11/32] staging: gasket: gasket_wait_with_reschedule use msleep Todd Poynor
2018-07-17 10:08   ` Dan Carpenter
2018-07-17  2:09 ` [PATCH 12/32] staging: gasket: gasket_wait_with_reschedule return when condition hit Todd Poynor
2018-07-17 10:13   ` Dan Carpenter
2018-07-17 11:12     ` Dan Carpenter
2018-07-17 19:53       ` Todd Poynor
2018-07-17 19:52     ` Todd Poynor
2018-07-17  2:09 ` [PATCH 13/32] staging: gasket: gasket_wait_with_reschedule use 32 bits of retry count Todd Poynor
2018-07-17  2:09 ` [PATCH 14/32] staging: gasket: bail out of reset sequence on device callback error Todd Poynor
2018-07-17  2:09 ` [PATCH 15/32] staging: gasket: drop gasket_cdev_get_info, use container_of Todd Poynor
2018-07-17  2:09 ` [PATCH 16/32] staging: gasket: always allow root open for write Todd Poynor
2018-07-17 10:22   ` Dan Carpenter
2018-07-17 18:50     ` Joe Perches
2018-07-17 19:04       ` Todd Poynor
2018-07-17  2:09 ` [PATCH 17/32] staging: gasket: annotate ioctl arg with __user Todd Poynor
2018-07-17 10:26   ` Dan Carpenter
2018-07-17 18:20     ` Todd Poynor
2018-07-17  2:09 ` [PATCH 18/32] staging: gasket: gasket_enable_dev remove unnecessary variable Todd Poynor
2018-07-17  2:09 ` [PATCH 19/32] staging: gasket: remove code for no physical device Todd Poynor
2018-07-17  2:09 ` [PATCH 20/32] staging: gasket: fix class create bug handling Todd Poynor
2018-07-17  2:09 ` [PATCH 21/32] staging: gasket: remove unnecessary code in coherent allocator Todd Poynor
2018-07-17  2:09 ` [PATCH 22/32] staging: gasket: don't treat no device reset callback as an error Todd Poynor
2018-07-17  2:09 ` [PATCH 23/32] staging: gasket: gasket_mmap return error instead of valid BAR index Todd Poynor
2018-07-17  2:09 ` [PATCH 24/32] staging: gasket: apex_clock_gating simplify logic, reduce indentation Todd Poynor
2018-07-17  2:09 ` [PATCH 25/32] staging: gasket: apex_ioctl_check_permissions use bool return type Todd Poynor
2018-07-17  2:09 ` [PATCH 26/32] staging: gasket: gasket page table functions " Todd Poynor
2018-07-17  2:09 ` [PATCH 27/32] staging: gasket: remove else clause after return in if clause Todd Poynor
2018-07-17 10:37   ` Dan Carpenter
2018-07-17 19:23     ` Todd Poynor
2018-07-17  2:09 ` [PATCH 28/32] staging: gasket: fix comment syntax in apex.h Todd Poynor
2018-07-17  2:09 ` [PATCH 29/32] staging: gasket: remove unnecessary parens in page table code Todd Poynor
2018-07-17  2:09 ` [PATCH 30/32] staging: gasket: gasket_mmap use PAGE_MASK Todd Poynor
2018-07-17 10:44   ` Dan Carpenter
2018-07-17  2:09 ` [PATCH 31/32] staging: gasket: remove extra parens in gasket_write_mappable_regions Todd Poynor
2018-07-17  2:09 ` [PATCH 32/32] staging: gasket: fix multi-line comment syntax in gasket_core.h Todd Poynor
2018-07-17 11:16 ` [PATCH 00/32 v2] staging: gasket: sundry fixes and fixups Greg Kroah-Hartman
2018-07-17 11:25   ` Todd Poynor
2018-07-17 11:46     ` Todd Poynor
2018-07-17 11:53     ` Greg KH
2018-07-17 11:16 ` Greg Kroah-Hartman
2018-07-17 11:27   ` Todd Poynor
2018-07-17 20:56 [PATCH 00/32 v3] " Todd Poynor
2018-07-17 20:56 ` [PATCH 17/32] staging: gasket: annotate ioctl arg with __user Todd Poynor
2018-07-19  9:37   ` Greg Kroah-Hartman
2018-07-20  2:44     ` Todd Poynor
2018-07-20  5:43       ` Greg Kroah-Hartman
2018-07-30  7:00       ` Dan Carpenter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.