24 Sep, 2020

2 commits

  • pmbus_do_probe doesn't use the id information provided in its second
    argument, so this can be removed, which then allows using the
    single-parameter i2c probe function ("probe_new") for probes.

    This avoids scanning the identifier tables during probes.

    Drivers which didn't use the id are converted as-is; drivers which did
    are modified as follows:

    * if the information in i2c_client is sufficient, that's used instead
    (client->name);
    * configured v. probed comparisons are performed by comparing the
    configured name to the detected name, instead of the ids; this
    involves strcmp but is still cheaper than comparing all the device
    names when scanning the tables;
    * anything else is handled by calling i2c_match_id() with the same
    level of error-handling (if any) as before.

    Additionally, the mismatch message in the ltc2978 driver is adjusted
    so that it no longer assumes that the driver_data is an index into
    ltc2978_id.

    Signed-off-by: Stephen Kitt
    Acked-by: Wolfram Sang
    Link: https://lore.kernel.org/r/20200808210004.30880-1-steve@sk2.org
    Signed-off-by: Guenter Roeck

    Stephen Kitt
     
  • Adding implementation for new attributes (rated_min/rated_max) to
    cover PMBus specification about rated values reporting:
    MFR_VIN_MIN, MFR_VIN_MAX, MFR_IIN_MAX, MFR_PIN_MAX, MFR_VOUT_MIN,
    MFR_VOUT_MAX, MFR_IOUT_MAX, MFR_POUT_MAX, MFR_MAX_TEMP_1/2/3.

    Tested with OpenBMC stack. All rated attributes were available
    and reported correct values.

    Signed-off-by: Zbigniew Lukwinski
    Link: https://lore.kernel.org/r/1596224237-32280-4-git-send-email-zbigniew.lukwinski@linux.intel.com
    Signed-off-by: Guenter Roeck

    Zbigniew Lukwinski
     

24 Jul, 2020

1 commit

  • 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: Alexander A. Klimov
    Link: https://lore.kernel.org/r/20200719170420.60399-1-grandmaster@al2klimov.de
    Signed-off-by: Guenter Roeck

    Alexander A. Klimov
     

09 Mar, 2020

1 commit

  • Some PMBus chips support multiple phases, and report telemetry such
    as input current, output current, or temperature for each phase.
    Add support for such chips to the PMBus core.

    Start with a maximum of 8 phases per page, and assume that supported
    sensors per phase are similar for all pages. Only support per-phase
    telemetry attributes, no limits or alarms.

    As part of this patch, set the initial page variable to 0xff to ensure
    that the page is updated when the first page command is issued. Also
    only issue page commands if the chip supports more than one page.

    Cc: Vadim Pasternak
    Signed-off-by: Guenter Roeck

    Guenter Roeck
     

24 Jan, 2020

1 commit


18 Apr, 2019

1 commit