Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266583
b: refs/heads/master
c: f9ea075
h: refs/heads/master
i:
  266581: d4e9201
  266579: b5e24ef
  266575: 338e0e4
v: v3
  • Loading branch information
Vasanthakumar Thiagarajan authored and Kalle Valo committed Sep 5, 2011
1 parent 8e9d59b commit c2f50fe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 38c35ffd38be9fbbf2ec0b67a802472d3f58f9fa
refs/heads/master: f9ea0753a18448a5e92369317b6ac061fe1275bf
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/ath/ath6kl/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ enum htc_send_full_action ath6kl_tx_queue_full(struct htc_target *target,
struct htc_packet *packet);
void ath6kl_stop_txrx(struct ath6kl *ar);
void ath6kl_cleanup_amsdu_rxbufs(struct ath6kl *ar);
int ath6kl_diag_write32(struct ath6kl *ar, u32 address, u32 value);
int ath6kl_diag_write32(struct ath6kl *ar, u32 address, __le32 value);
int ath6kl_diag_write(struct ath6kl *ar, u32 address, void *data, u32 length);
int ath6kl_diag_read32(struct ath6kl *ar, u32 address, u32 *value);
int ath6kl_diag_read(struct ath6kl *ar, u32 address, void *data, u32 length);
Expand Down
10 changes: 6 additions & 4 deletions trunk/drivers/net/wireless/ath/ath6kl/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ int ath6kl_diag_read32(struct ath6kl *ar, u32 address, u32 *value)
* Write to the ATH6KL through its diagnostic window. No cooperation from
* the Target is required for this.
*/
int ath6kl_diag_write32(struct ath6kl *ar, u32 address, u32 value)
int ath6kl_diag_write32(struct ath6kl *ar, u32 address, __le32 value)
{
int ret;

Expand Down Expand Up @@ -298,7 +298,8 @@ int ath6kl_diag_read(struct ath6kl *ar, u32 address, void *data, u32 length)

int ath6kl_diag_write(struct ath6kl *ar, u32 address, void *data, u32 length)
{
u32 count, *buf = data;
u32 count;
__le32 *buf = data;
int ret;

if (WARN_ON(length % 4))
Expand Down Expand Up @@ -397,13 +398,14 @@ static void ath6kl_reset_device(struct ath6kl *ar, u32 target_type,
{
int status = 0;
u32 address;
u32 data;
__le32 data;

if (target_type != TARGET_TYPE_AR6003 &&
target_type != TARGET_TYPE_AR6004)
return;

data = cold_reset ? RESET_CONTROL_COLD_RST : RESET_CONTROL_MBOX_RST;
data = cold_reset ? cpu_to_le32(RESET_CONTROL_COLD_RST) :
cpu_to_le32(RESET_CONTROL_MBOX_RST);

switch (target_type) {
case TARGET_TYPE_AR6003:
Expand Down

0 comments on commit c2f50fe

Please sign in to comment.