Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
f053f44c
Commit
f053f44c
authored
Apr 01, 2016
by
Akash Choudhari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
greybus: Revert "Added a sysfs entry to power down the SVC"
This reverts commit a1d8f2c3856804ed26157104bb203edf4c882a6c.
parent
88a3011e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
30 deletions
+0
-30
drivers/staging/greybus/greybus_protocols.h
drivers/staging/greybus/greybus_protocols.h
+0
-1
drivers/staging/greybus/svc.c
drivers/staging/greybus/svc.c
+0
-28
drivers/staging/greybus/svc.h
drivers/staging/greybus/svc.h
+0
-1
No files found.
drivers/staging/greybus/greybus_protocols.h
View file @
f053f44c
...
...
@@ -798,7 +798,6 @@ struct gb_spi_transfer_response {
#define GB_SVC_TYPE_INTF_EJECT 0x11
#define GB_SVC_TYPE_KEY_EVENT 0x12
#define GB_SVC_TYPE_PING 0x13
#define GB_SVC_TYPE_PWR_DOWN 0x1d
/*
* SVC version request/response has the same payload as
...
...
drivers/staging/greybus/svc.c
View file @
f053f44c
...
...
@@ -99,31 +99,11 @@ static ssize_t watchdog_store(struct device *dev,
}
static
DEVICE_ATTR_RW
(
watchdog
);
static
ssize_t
pwr_off_store
(
struct
device
*
dev
,
struct
device_attribute
*
attr
,
const
char
*
buf
,
size_t
len
)
{
struct
gb_svc
*
svc
=
to_gb_svc
(
dev
);
int
retval
;
bool
user_request
;
retval
=
strtobool
(
buf
,
&
user_request
);
if
(
retval
)
{
return
retval
;
}
if
(
user_request
)
{
retval
=
gb_svc_pwr_off
(
svc
);
}
return
len
;
}
static
DEVICE_ATTR_WO
(
pwr_off
);
static
struct
attribute
*
svc_attrs
[]
=
{
&
dev_attr_endo_id
.
attr
,
&
dev_attr_ap_intf_id
.
attr
,
&
dev_attr_intf_eject
.
attr
,
&
dev_attr_watchdog
.
attr
,
&
dev_attr_pwr_off
.
attr
,
NULL
,
};
ATTRIBUTE_GROUPS
(
svc
);
...
...
@@ -340,14 +320,6 @@ int gb_svc_ping(struct gb_svc *svc)
}
EXPORT_SYMBOL_GPL
(
gb_svc_ping
);
int
gb_svc_pwr_off
(
struct
gb_svc
*
svc
)
{
return
gb_operation_sync_timeout
(
svc
->
connection
,
GB_SVC_TYPE_PWR_DOWN
,
NULL
,
0
,
NULL
,
0
,
GB_OPERATION_TIMEOUT_DEFAULT
*
2
);
}
EXPORT_SYMBOL_GPL
(
gb_svc_pwr_off
);
static
int
gb_svc_version_request
(
struct
gb_operation
*
op
)
{
struct
gb_connection
*
connection
=
op
->
connection
;
...
...
drivers/staging/greybus/svc.h
View file @
f053f44c
...
...
@@ -71,7 +71,6 @@ void gb_svc_watchdog_destroy(struct gb_svc *svc);
bool
gb_svc_watchdog_enabled
(
struct
gb_svc
*
svc
);
int
gb_svc_watchdog_enable
(
struct
gb_svc
*
svc
);
int
gb_svc_watchdog_disable
(
struct
gb_svc
*
svc
);
int
gb_svc_pwr_off
(
struct
gb_svc
*
svc
);
int
gb_svc_protocol_init
(
void
);
void
gb_svc_protocol_exit
(
void
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment