fusb302_log
fusb302_log(chip, "sending PD message header: %x", msg->header);
fusb302_log(chip, "sending PD message len: %d", len);
fusb302_log(chip, "Cannot update retry count ret=%d", ret);
fusb302_log(chip,
fusb302_log(chip,
fusb302_log(chip, "type %s not supported",
fusb302_log(chip, "BC_LVL interrupt is turned off, abort");
fusb302_log(chip, "BC_LVL handler, status0=0x%02x", status0);
fusb302_log(chip, "CC activities detected, delay handling");
fusb302_log(chip, "cc1: %s -> %s",
fusb302_log(chip, "cc2: %s -> %s",
fusb302_log(chip, "cannot set cc polarity %s, ret=%d",
fusb302_log(chip, "restart toggling as CC_OPEN detected");
fusb302_log(chip,
fusb302_log(chip,
fusb302_log(chip, "detected cc1=%s, cc2=%s",
fusb302_log(chip, "get_src_cc_status switches: 0x%0x", status0);
fusb302_log(chip, "get_src_cc_status rd_mda status0: 0x%0x", status0);
fusb302_log(chip, "get_src_cc_status ra_mda status0: 0x%0x", status0);
fusb302_log(chip, "cannot set toggling mode off, ret=%d", ret);
fusb302_log(chip, "unexpected CC status cc1=%s, cc2=%s, restarting toggling",
fusb302_log(chip, "cannot set cc polarity %s, ret=%d",
fusb302_log(chip,
fusb302_log(chip, "detected cc1=%s, cc2=%s",
fusb302_log(chip, "AudioAccessory not supported");
fusb302_log(chip, "TOGDONE with an invalid state: %d",
fusb302_log(chip, "PD message too long %d", len);
fusb302_log(chip, "PD message header: %x", msg->header);
fusb302_log(chip, "PD message len: %d", len);
fusb302_log(chip,
fusb302_log(chip, "IRQ: VBUS_OK, vbus=%s",
fusb302_log(chip, "IRQ: TOGDONE");
fusb302_log(chip,
fusb302_log(chip, "IRQ: BC_LVL, handler pending");
fusb302_log(chip, "IRQ: COMP_CHNG, comp=%s",
fusb302_log(chip, "IRQ: PD collision");
fusb302_log(chip, "IRQ: PD retry failed");
fusb302_log(chip, "IRQ: PD hardreset sent");
fusb302_log(chip, "cannot PD reset, ret=%d", ret);
fusb302_log(chip, "IRQ: PD tx success");
fusb302_log(chip,
fusb302_log(chip, "IRQ: PD received hardreset");
fusb302_log(chip, "cannot PD reset, ret=%d", ret);
fusb302_log(chip, "IRQ: PD sent good CRC");
fusb302_log(chip,
static void fusb302_log(struct fusb302_chip *chip, const char *fmt, ...)
fusb302_log(chip, "cannot write 0x%02x to 0x%02x, ret=%d",
fusb302_log(chip, "cannot block write 0x%02x, len=%d, ret=%d",
fusb302_log(chip, "cannot read %02x, ret=%d", address, ret);
fusb302_log(chip, "cannot block read 0x%02x, len=%d, ret=%d",
fusb302_log(chip, "only read %d/%d bytes from 0x%02x",
fusb302_log(chip, "cannot sw reset the chip, ret=%d", ret);
fusb302_log(chip, "sw reset");
fusb302_log(chip, "fusb302 device ID: 0x%02x", data);
fusb302_log(chip, "unsupported cc value %s",
fusb302_log(chip, "cc := %s", typec_cc_status_name[cc]);
fusb302_log(chip, "cannot set toggling mode, ret=%d", ret);
fusb302_log(chip, "cannot set pull-up/-down, ret = %d", ret);
fusb302_log(chip, "cannot set src current %s, ret=%d",
fusb302_log(chip,
fusb302_log(chip, "cannot set SRC interrupt, ret=%d",
fusb302_log(chip, "cannot set SRC interrupt, ret=%d",
fusb302_log(chip, "cc1=%s, cc2=%s", typec_cc_status_name[*cc1],
fusb302_log(chip, "vconn is already %s", str_on_off(on));
fusb302_log(chip, "vconn := %s", str_on_off(on));
fusb302_log(chip, "vbus is already %s", str_on_off(on));
fusb302_log(chip, "cannot %s vbus regulator, ret=%d",
fusb302_log(chip, "vbus := %s", str_on_off(on));
fusb302_log(chip, "charge is already %s", str_on_off(charge));
fusb302_log(chip, "pd is already %s", str_on_off(on));
fusb302_log(chip, "cannot flush pd rx buffer, ret=%d", ret);
fusb302_log(chip, "cannot flush pd tx buffer, ret=%d", ret);
fusb302_log(chip, "cannot turn %s auto GCRC, ret=%d",
fusb302_log(chip, "cannot turn %s pd interrupts, ret=%d",
fusb302_log(chip, "pd := %s", str_on_off(on));
fusb302_log(chip, "unable to set pd header %s, %s, ret=%d",
fusb302_log(chip, "pd header := %s, %s", typec_role_name[pwr],
fusb302_log(chip, "unable to set src current %s, ret=%d",
fusb302_log(chip,
fusb302_log(chip, "start drp toggling");
fusb302_log(chip,