1. 06 Feb, 2024 16 commits
  2. 05 Feb, 2024 15 commits
  3. 04 Feb, 2024 6 commits
  4. 03 Feb, 2024 3 commits
    • David S. Miller's avatar
      Merge branch 'qca-phy-led-fixes' · d6aa8e0a
      David S. Miller authored
      Christian Marangi says:
      
      ====================
      net: phy: qcom: qca808x: fixup qca808x LED
      
      This is a bit embarassing and totally my fault so sorry for that!
      
      While reworking the patch to phy_modify API, it was done a logic
      error and made the brightness_set function broken. It wasn't
      notice in last revisions test as the testing method was to verify
      if hw control was correctly working.
      
      Noticing this problem also made me notice an additional problem
      with the polarity.
      
      The introduced patch made the polarity configurable but I forgot
      to add the required code to enable Active High by default.
      (the PHY sets active low by default)
      
      This wasn't notice with hw control testing as the LED blink on
      traffic and polarity problem are not notice.
      
      It might be worth discussing if needed a change in implementation
      where the polarity function is always called but I think it's
      better this way where specific PHY apply fixup with the help
      of priv struct and on the config_init phase.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      d6aa8e0a
    • Christian Marangi's avatar
      net: phy: qcom: qca808x: default to LED active High if not set · f203c8c7
      Christian Marangi authored
      qca808x PHY provide support for the led_polarity_set OP to configure
      and apply the active-low property but on PHY reset, the Active High bit
      is not set resulting in the LED driven as active-low.
      
      To fix this, check if active-low is not set in DT and enable Active High
      polarity by default to restore correct funcionality of the LED.
      
      Fixes: 7196062b ("net: phy: at803x: add LED support for qca808x")
      Signed-off-by: default avatarChristian Marangi <ansuelsmth@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      f203c8c7
    • Christian Marangi's avatar
      net: phy: qcom: qca808x: fix logic error in LED brightness set · f2ec9856
      Christian Marangi authored
      In switching to using phy_modify_mmd and a more short version of the
      LED ON/OFF condition in later revision, it was made a logic error where
      
      value ? QCA808X_LED_FORCE_ON : QCA808X_LED_FORCE_OFF is always true as
      value is always OR with QCA808X_LED_FORCE_EN due to missing ()
      resulting in the testing condition being QCA808X_LED_FORCE_EN | value.
      
      Add the () to apply the correct condition and restore correct
      functionality of the brightness ON/OFF.
      
      Fixes: 7196062b ("net: phy: at803x: add LED support for qca808x")
      Signed-off-by: default avatarChristian Marangi <ansuelsmth@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      f2ec9856