we remove slp_global_lock after kernel enables tgl
Change-Id: I356c344863a7d700929cb53151db7c6fda1b75cc
KERNEL=="tgl", MODE="0666", GROUP="display", SECLABEL{smack}="*"
+KERNEL=="slp_global_lock*", MODE="0666", GROUP="display", SECLABEL{smack}="*"
/* open tgl fd for saving cache flush data */
bufmgr_sprd->tgl_fd = open(tgl_devfile, O_RDWR);
+
if (bufmgr_sprd->tgl_fd < 0) {
- TBM_SPRD_ERROR("fail to open global_lock:%s\n", tgl_devfile);
- return 0;
+ bufmgr_sprd->tgl_fd = open(tgl_devfile1, O_RDWR);
+ if (bufmgr_sprd->tgl_fd < 0) {
+ TBM_SPRD_ERROR("fail to open global_lock:%s\n",
+ tgl_devfile1);
+ return 0;
+ }
}
if (!_tgl_get_version(bufmgr_sprd->tgl_fd)) {
#include <linux/ioctl.h>
-static char tgl_devfile[] = "/dev/tgl";
+static char tgl_devfile[] = "/dev/slp_global_lock";
+static char tgl_devfile1[] = "/dev/tgl";
#define TGL_IOCTL_BASE 0x32
#define TGL_IO(nr) _IO(TGL_IOCTL_BASE, nr)