mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
char/misc drivers for 4.4-rc1
Here is the big char/misc driver update for 4.4-rc1. Lots of different driver and subsystem updates, hwtracing being the largest with the addition of some new platforms that are now supported. Full details in the shortlog. All of these have been in linux-next for a long time with no reported issues. Signed-off-by: Greg Kroah-Hartman <[email protected]> -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEABECAAYFAlY6d/oACgkQMUfUDdst+yl93ACcCf91y+ufwU3cmcnq5LpwHPfx VbkAn08Cn6Wu6IcihoEpR4hqGgIOtjqW =1a3d -----END PGP SIGNATURE----- Merge tag 'char-misc-4.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc Pull char/misc driver updates from Greg KH: "Here is the big char/misc driver update for 4.4-rc1. Lots of different driver and subsystem updates, hwtracing being the largest with the addition of some new platforms that are now supported. Full details in the shortlog. All of these have been in linux-next for a long time with no reported issues" * tag 'char-misc-4.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (181 commits) fpga: socfpga: Fix check of return value of devm_request_irq lkdtm: fix ACCESS_USERSPACE test mcb: Destroy IDA on module unload mcb: Do not return zero on error path in mcb_pci_probe() mei: bus: set the device name before running fixup mei: bus: use correct lock ordering mei: Fix debugfs filename in error output char: ipmi: ipmi_ssif: Replace timeval with timespec64 fpga: zynq-fpga: Fix issue with drvdata being overwritten. fpga manager: remove unnecessary null pointer checks fpga manager: ensure lifetime with of_fpga_mgr_get fpga: zynq-fpga: Change fw format to handle bin instead of bit. fpga: zynq-fpga: Fix unbalanced clock handling misc: sram: partition base address belongs to __iomem space coresight: etm3x: adding documentation for sysFS's cpu interface vme: 8-bit status/id takes 256 values, not 255 fpga manager: Adding FPGA Manager support for Xilinx Zynq 7000 ARM: zynq: dt: Updated devicetree for Zynq 7000 platform. ARM: dt: fpga: Added binding docs for Xilinx Zynq FPGA manager. ver_linux: proc/modules, limit text processing to 'sed' ...
This commit is contained in:
commit
8e483ed134
204 changed files with 21697 additions and 2645 deletions
|
|
@ -168,11 +168,6 @@ struct pmic_arb_ver_ops {
|
|||
u32 (*irq_clear)(u8 n);
|
||||
};
|
||||
|
||||
static inline u32 pmic_arb_base_read(struct spmi_pmic_arb_dev *dev, u32 offset)
|
||||
{
|
||||
return readl_relaxed(dev->rd_base + offset);
|
||||
}
|
||||
|
||||
static inline void pmic_arb_base_write(struct spmi_pmic_arb_dev *dev,
|
||||
u32 offset, u32 val)
|
||||
{
|
||||
|
|
@ -193,7 +188,7 @@ static inline void pmic_arb_set_rd_cmd(struct spmi_pmic_arb_dev *dev,
|
|||
*/
|
||||
static void pa_read_data(struct spmi_pmic_arb_dev *dev, u8 *buf, u32 reg, u8 bc)
|
||||
{
|
||||
u32 data = pmic_arb_base_read(dev, reg);
|
||||
u32 data = __raw_readl(dev->rd_base + reg);
|
||||
memcpy(buf, &data, (bc & 3) + 1);
|
||||
}
|
||||
|
||||
|
|
@ -208,7 +203,7 @@ pa_write_data(struct spmi_pmic_arb_dev *dev, const u8 *buf, u32 reg, u8 bc)
|
|||
{
|
||||
u32 data = 0;
|
||||
memcpy(&data, buf, (bc & 3) + 1);
|
||||
pmic_arb_base_write(dev, reg, data);
|
||||
__raw_writel(data, dev->wr_base + reg);
|
||||
}
|
||||
|
||||
static int pmic_arb_wait_for_done(struct spmi_controller *ctrl,
|
||||
|
|
@ -365,7 +360,7 @@ static int pmic_arb_write_cmd(struct spmi_controller *ctrl, u8 opc, u8 sid,
|
|||
opc = PMIC_ARB_OP_EXT_WRITE;
|
||||
else if (opc >= 0x30 && opc <= 0x37)
|
||||
opc = PMIC_ARB_OP_EXT_WRITEL;
|
||||
else if (opc >= 0x80 && opc <= 0xFF)
|
||||
else if (opc >= 0x80)
|
||||
opc = PMIC_ARB_OP_ZERO_WRITE;
|
||||
else
|
||||
return -EINVAL;
|
||||
|
|
|
|||
|
|
@ -560,12 +560,13 @@ EXPORT_SYMBOL_GPL(spmi_controller_remove);
|
|||
* This API will register the client driver with the SPMI framework.
|
||||
* It is typically called from the driver's module-init function.
|
||||
*/
|
||||
int spmi_driver_register(struct spmi_driver *sdrv)
|
||||
int __spmi_driver_register(struct spmi_driver *sdrv, struct module *owner)
|
||||
{
|
||||
sdrv->driver.bus = &spmi_bus_type;
|
||||
sdrv->driver.owner = owner;
|
||||
return driver_register(&sdrv->driver);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(spmi_driver_register);
|
||||
EXPORT_SYMBOL_GPL(__spmi_driver_register);
|
||||
|
||||
static void __exit spmi_exit(void)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue