Skip to content

Commit ba314ed

Browse files
committed
Merge tag 'hwlock-v7.1' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux
Pull hwspinlock updates from Bjorn Andersson: "Remove the unused u8500 hardware spinlock driver, and clean out the hwspinlock_pdata struct as this was the last user of the struct" * tag 'hwlock-v7.1' of git://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux: hwspinlock: remove now unused pdata from header file hwspinlock: u8500: delete driver
2 parents 3d2d10e + ad5fd5a commit ba314ed

6 files changed

Lines changed: 0 additions & 196 deletions

File tree

MAINTAINERS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3153,7 +3153,6 @@ F: drivers/clocksource/clksrc-dbx500-prcmu.c
31533153
F: drivers/dma/ste_dma40*
31543154
F: drivers/pmdomain/st/ste-ux500-pm-domain.c
31553155
F: drivers/gpio/gpio-nomadik.c
3156-
F: drivers/hwspinlock/u8500_hsem.c
31573156
F: drivers/i2c/busses/i2c-nomadik.c
31583157
F: drivers/iio/adc/ab8500-gpadc.c
31593158
F: drivers/mfd/ab8500*

arch/arm/configs/u8500_defconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ CONFIG_RTC_DRV_PL031=y
148148
CONFIG_DMADEVICES=y
149149
CONFIG_STE_DMA40=y
150150
CONFIG_HWSPINLOCK=y
151-
CONFIG_HSEM_U8500=y
152151
CONFIG_EXTCON_FSA9480=y
153152
CONFIG_IIO=y
154153
CONFIG_IIO_SW_TRIGGER=y

drivers/hwspinlock/Kconfig

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,4 @@ config HWSPINLOCK_SUN6I
5353

5454
If unsure, say N.
5555

56-
config HSEM_U8500
57-
tristate "STE Hardware Semaphore functionality"
58-
depends on ARCH_U8500 || COMPILE_TEST
59-
help
60-
Say y here to support the STE Hardware Semaphore functionality, which
61-
provides a synchronisation mechanism for the various processor on the
62-
SoC.
63-
64-
If unsure, say N.
65-
6656
endif # HWSPINLOCK

drivers/hwspinlock/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ obj-$(CONFIG_HWSPINLOCK_QCOM) += qcom_hwspinlock.o
99
obj-$(CONFIG_HWSPINLOCK_SPRD) += sprd_hwspinlock.o
1010
obj-$(CONFIG_HWSPINLOCK_STM32) += stm32_hwspinlock.o
1111
obj-$(CONFIG_HWSPINLOCK_SUN6I) += sun6i_hwspinlock.o
12-
obj-$(CONFIG_HSEM_U8500) += u8500_hsem.o

drivers/hwspinlock/u8500_hsem.c

Lines changed: 0 additions & 155 deletions
This file was deleted.

include/linux/hwspinlock.h

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -25,34 +25,6 @@ struct hwspinlock;
2525
struct hwspinlock_device;
2626
struct hwspinlock_ops;
2727

28-
/**
29-
* struct hwspinlock_pdata - platform data for hwspinlock drivers
30-
* @base_id: base id for this hwspinlock device
31-
*
32-
* hwspinlock devices provide system-wide hardware locks that are used
33-
* by remote processors that have no other way to achieve synchronization.
34-
*
35-
* To achieve that, each physical lock must have a system-wide id number
36-
* that is agreed upon, otherwise remote processors can't possibly assume
37-
* they're using the same hardware lock.
38-
*
39-
* Usually boards have a single hwspinlock device, which provides several
40-
* hwspinlocks, and in this case, they can be trivially numbered 0 to
41-
* (num-of-locks - 1).
42-
*
43-
* In case boards have several hwspinlocks devices, a different base id
44-
* should be used for each hwspinlock device (they can't all use 0 as
45-
* a starting id!).
46-
*
47-
* This platform data structure should be used to provide the base id
48-
* for each device (which is trivially 0 when only a single hwspinlock
49-
* device exists). It can be shared between different platforms, hence
50-
* its location.
51-
*/
52-
struct hwspinlock_pdata {
53-
int base_id;
54-
};
55-
5628
#ifdef CONFIG_HWSPINLOCK
5729

5830
int hwspin_lock_register(struct hwspinlock_device *bank, struct device *dev,

0 commit comments

Comments
 (0)