Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: chromeos/compat-wireless/drivers/net/wireless/ath/ath9k/gpio.c

Issue 6900058: ath9k: Fix LED gpio for AR93xx chipsets. (Closed) Base URL: ssh://gitrw.chromium.org:9222/kernel.git@master
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chromeos/compat-wireless/drivers/net/wireless/ath/ath9k/ath9k.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2008-2009 Atheros Communications Inc. 2 * Copyright (c) 2008-2009 Atheros Communications Inc.
3 * 3 *
4 * Permission to use, copy, modify, and/or distribute this software for any 4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above 5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies. 6 * copyright notice and this permission notice appear in all copies.
7 * 7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 ath9k_hw_set_gpio(sc->sc_ah, sc->sc_ah->led_pin, 1); 128 ath9k_hw_set_gpio(sc->sc_ah, sc->sc_ah->led_pin, 1);
129 } 129 }
130 130
131 void ath_init_leds(struct ath_softc *sc) 131 void ath_init_leds(struct ath_softc *sc)
132 { 132 {
133 char *trigger; 133 char *trigger;
134 int ret; 134 int ret;
135 135
136 if (AR_SREV_9287(sc->sc_ah)) 136 if (AR_SREV_9287(sc->sc_ah))
137 sc->sc_ah->led_pin = ATH_LED_PIN_9287; 137 sc->sc_ah->led_pin = ATH_LED_PIN_9287;
138 else if (AR_SREV_9300(sc->sc_ah))
139 sc->sc_ah->led_pin = ATH_LED_PIN_9300;
138 else 140 else
139 sc->sc_ah->led_pin = ATH_LED_PIN_DEF; 141 sc->sc_ah->led_pin = ATH_LED_PIN_DEF;
140 142
141 /* Configure gpio 1 for output */ 143 /* Configure gpio 1 for output */
142 ath9k_hw_cfg_output(sc->sc_ah, sc->sc_ah->led_pin, 144 ath9k_hw_cfg_output(sc->sc_ah, sc->sc_ah->led_pin,
143 AR_GPIO_OUTPUT_MUX_AS_OUTPUT); 145 AR_GPIO_OUTPUT_MUX_AS_OUTPUT);
144 /* LED off, active low */ 146 /* LED off, active low */
145 ath9k_hw_set_gpio(sc->sc_ah, sc->sc_ah->led_pin, 1); 147 ath9k_hw_set_gpio(sc->sc_ah, sc->sc_ah->led_pin, 1);
146 148
147 if (led_blink) 149 if (led_blink)
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 struct ath_btcoex *btcoex = &sc->btcoex; 403 struct ath_btcoex *btcoex = &sc->btcoex;
402 struct ath_hw *ah = sc->sc_ah; 404 struct ath_hw *ah = sc->sc_ah;
403 405
404 del_timer_sync(&btcoex->period_timer); 406 del_timer_sync(&btcoex->period_timer);
405 407
406 if (btcoex->hw_timer_enabled) 408 if (btcoex->hw_timer_enabled)
407 ath9k_gen_timer_stop(ah, btcoex->no_stomp_timer); 409 ath9k_gen_timer_stop(ah, btcoex->no_stomp_timer);
408 410
409 btcoex->hw_timer_enabled = false; 411 btcoex->hw_timer_enabled = false;
410 } 412 }
OLDNEW
« no previous file with comments | « chromeos/compat-wireless/drivers/net/wireless/ath/ath9k/ath9k.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698