// SPDX-License-Identifier: GPL-2.0+ /* * Core driver for Renesas Synchronization Management Unit (SMU) devices. * * Copyright (C) 2021 Integrated Device Technology, Inc., a Renesas Company. */ #include #include #include #include #include #include #include #include #include "rsmu.h" enum { RSMU_PHC = 0, RSMU_CDEV = 1, RSMU_N_DEVS = 2, }; static struct mfd_cell rsmu_cm_devs[] = { [RSMU_PHC] = { .name = "8a3400x-phc", }, [RSMU_CDEV] = { .name = "8a3400x-cdev", }, }; static struct mfd_cell rsmu_sabre_devs[] = { [RSMU_PHC] = { .name = "82p33x1x-phc", }, [RSMU_CDEV] = { .name = "82p33x1x-cdev", }, }; static struct mfd_cell rsmu_sl_devs[] = { [RSMU_PHC] = { .name = "8v19n85x-phc", }, [RSMU_CDEV] = { .name = "8v19n85x-cdev", }, }; int rsmu_core_init(struct rsmu_ddata *rsmu) { struct mfd_cell *cells; int ret; switch (rsmu->type) { case RSMU_CM: cells = rsmu_cm_devs; break; case RSMU_SABRE: cells = rsmu_sabre_devs; break; case RSMU_SL: cells = rsmu_sl_devs; break; default: dev_err(rsmu->dev, "Unsupported RSMU device type: %d\n", rsmu->type); return -ENODEV; } mutex_init(&rsmu->lock); ret = devm_mfd_add_devices(rsmu->dev, PLATFORM_DEVID_AUTO, cells, RSMU_N_DEVS, NULL, 0, NULL); if (ret < 0) dev_err(rsmu->dev, "Failed to register sub-devices: %d\n", ret); return ret; } void rsmu_core_exit(struct rsmu_ddata *rsmu) { mutex_destroy(&rsmu->lock); } MODULE_DESCRIPTION("Renesas SMU core driver"); MODULE_LICENSE("GPL"); ework vmwgfx and ttm linux repothomash
summaryrefslogtreecommitdiff
path: root/fs/devpts
AgeCommit message (Expand)AuthorFilesLines
2010-05-21Simplify devpts_get_sb() failure exitsAl Viro1-6/+3
2010-03-30include cleanup: Update gfp.h and slab.h includes to prepare for breaking imp...Tejun Heo1-0/+1
2009-12-11devpts_get_tty() should validate inodeSukadev Bhattiprolu1-2/+14
2009-09-23Move magic numbers into magic.hNick Black1-2/+1
2009-06-24devpts: remove module-related codeH. Peter Anvin1-10/+0
2009-06-11devpts: unregister the file system on errorAlan Cox1-1/+3
2009-05-15devpts: correctly set default optionsSukadev Bhattiprolu1-6/+12
2009-05-09Convert obvious places to deactivate_locked_super()Al Viro1-3/+2
2009-03-27Merge code for single and multiple-instance mountsSukadev Bhattiprolu1-73/+40
2009-03-27Remove get_init_pts_sb()Sukadev Bhattiprolu1-19/+6
2009-03-27Move common mknod_ptmx() calls into callerSukadev Bhattiprolu1-19/+17
2009-03-27Parse mount options just once and copy them to super blockSukadev Bhattiprolu1-78/+22
2009-03-27Unroll essentials of do_remount_sb() into devptsSukadev Bhattiprolu1-1/+6
2009-03-27vfs: simple_set_mnt() should return voidSukadev Bhattiprolu1-1/+2
2009-03-27devpts: Must release s_umount on errorSukadev Bhattiprolu1-0/+2
2009-03-10devpts: remove graffitiAlexey Dobriyan1-5/+0
2009-01-05zero i_uid/i_gid on inode allocationAl Viro1-4/+0
2009-01-02CRED: Wrap task credential accesses in the devpts filesystemDavid Howells1-3/+3
2009-01-02devpts: fix unused function warningAndrew Morton1-1/+1
2009-01-02devpts: Coding style clean upAlan Cox1-27/+26
2009-01-02Enable multiple instances of devptsSukadev Bhattiprolu1-7/+163
2009-01-02Define get_init_pts_sb()Sukadev Bhattiprolu1-1/+54
2009-01-02Define mknod_ptmx()Sukadev Bhattiprolu1-5/+110
2009-01-02Extract option parsing to new functionSukadev Bhattiprolu1-3/+9
2009-01-02Per-mount 'config' objectSukadev Bhattiprolu1-18/+27
2009-01-02Per-mount allocated_ptysSukadev Bhattiprolu1-7/+48
2009-01-02Remove devpts_root globalSukadev Bhattiprolu1-9/+20
2008-11-14CRED: Wrap task credential accesses in the devpts filesystemDavid Howells1-2/+2
2008-10-13vfs: Use const for kernel parser tableSteven Whitehouse1-1/+1
2008-10-13Simplify devpts_pty_killSukadev Bhattiprolu1-17/+12
2008-10-13Simplify devpts_pty_new()Sukadev Bhattiprolu1-3/+8
2008-10-13Simplify devpts_get_tty()Sukadev Bhattiprolu1-12/+5
2008-10-13Add an instance parameter devpts interfacesSukadev Bhattiprolu1-5/+6
2008-08-01[PATCH] devpts: switch to IDAAlexey Dobriyan1-8/+8
2008-04-30devpts: factor out PTY index allocationSukadev Bhattiprolu1-1/+42
2008-02-08mount options: fix devptsMiklos Szeredi1-3/+18