Commit 0db5bc7b authored by Alexander A. Klimov's avatar Alexander A. Klimov Committed by Kalle Valo

ssb: Replace HTTP links with HTTPS ones

Rationale:
Reduces attack surface on kernel devs opening the links for MITM
as HTTPS traffic is much harder to manipulate.

Deterministic algorithm:
For each file:
  If not .svg:
    For each line:
      If doesn't contain `\bxmlns\b`:
        For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:
	  If neither `\bgnu\.org/license`, nor `\bmozilla\.org/MPL\b`:
            If both the HTTP and HTTPS versions
            return 200 OK and serve the same content:
              Replace HTTP with HTTPS.
Signed-off-by: default avatarAlexander A. Klimov <grandmaster@al2klimov.de>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200710062151.28871-1-grandmaster@al2klimov.de
parent 4f3ebd6f
...@@ -238,7 +238,7 @@ static void chipco_powercontrol_init(struct ssb_chipcommon *cc) ...@@ -238,7 +238,7 @@ static void chipco_powercontrol_init(struct ssb_chipcommon *cc)
} }
} }
/* http://bcm-v4.sipsolutions.net/802.11/PmuFastPwrupDelay */ /* https://bcm-v4.sipsolutions.net/802.11/PmuFastPwrupDelay */
static u16 pmu_fast_powerup_delay(struct ssb_chipcommon *cc) static u16 pmu_fast_powerup_delay(struct ssb_chipcommon *cc)
{ {
struct ssb_bus *bus = cc->dev->bus; struct ssb_bus *bus = cc->dev->bus;
...@@ -255,7 +255,7 @@ static u16 pmu_fast_powerup_delay(struct ssb_chipcommon *cc) ...@@ -255,7 +255,7 @@ static u16 pmu_fast_powerup_delay(struct ssb_chipcommon *cc)
} }
} }
/* http://bcm-v4.sipsolutions.net/802.11/ClkctlFastPwrupDelay */ /* https://bcm-v4.sipsolutions.net/802.11/ClkctlFastPwrupDelay */
static void calc_fast_powerup_delay(struct ssb_chipcommon *cc) static void calc_fast_powerup_delay(struct ssb_chipcommon *cc)
{ {
struct ssb_bus *bus = cc->dev->bus; struct ssb_bus *bus = cc->dev->bus;
......
...@@ -513,7 +513,7 @@ static void ssb_pmu_resources_init(struct ssb_chipcommon *cc) ...@@ -513,7 +513,7 @@ static void ssb_pmu_resources_init(struct ssb_chipcommon *cc)
chipco_write32(cc, SSB_CHIPCO_PMU_MAXRES_MSK, max_msk); chipco_write32(cc, SSB_CHIPCO_PMU_MAXRES_MSK, max_msk);
} }
/* http://bcm-v4.sipsolutions.net/802.11/SSB/PmuInit */ /* https://bcm-v4.sipsolutions.net/802.11/SSB/PmuInit */
void ssb_pmu_init(struct ssb_chipcommon *cc) void ssb_pmu_init(struct ssb_chipcommon *cc)
{ {
u32 pmucap; u32 pmucap;
......
...@@ -186,7 +186,7 @@ int ssb_fill_sprom_with_fallback(struct ssb_bus *bus, struct ssb_sprom *out) ...@@ -186,7 +186,7 @@ int ssb_fill_sprom_with_fallback(struct ssb_bus *bus, struct ssb_sprom *out)
return get_fallback_sprom(bus, out); return get_fallback_sprom(bus, out);
} }
/* http://bcm-v4.sipsolutions.net/802.11/IsSpromAvailable */ /* https://bcm-v4.sipsolutions.net/802.11/IsSpromAvailable */
bool ssb_is_sprom_available(struct ssb_bus *bus) bool ssb_is_sprom_available(struct ssb_bus *bus)
{ {
/* status register only exists on chipcomon rev >= 11 and we need check /* status register only exists on chipcomon rev >= 11 and we need check
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment