tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-next head: aaf3f4e925dc2bdc4715142103660285632a245c commit: 990da41530b31ed7de29340ce1d78c04bee9670c [36/38] staging: typec: tcpci: move tcpci drivers out of staging config: x86_64-randconfig-a0-06290727 (attached as .config) compiler: gcc-7 (Debian 7.3.0-16) 7.3.0 reproduce: git checkout 990da41530b31ed7de29340ce1d78c04bee9670c # save the attached .config to linux build tree make ARCH=x86_64
All errors (new ones prefixed by >>):
drivers/usb/typec/tcpci.o: In function `tcpci_probe':
>> drivers/usb/typec/tcpci.c:549: undefined reference to
>> `__devm_regmap_init_i2c'
drivers/usb/typec/tcpci.o: In function `tcpci_i2c_driver_init':
>> drivers/usb/typec/tcpci.c:609: undefined reference to `i2c_register_driver'
drivers/usb/typec/tcpci.o: In function `tcpci_i2c_driver_exit':
>> drivers/usb/typec/tcpci.c:609: undefined reference to `i2c_del_driver'
drivers/usb/typec/tcpci_rt1711h.o: In function `rt1711h_check_revision':
>> drivers/usb/typec/tcpci_rt1711h.c:218: undefined reference to
>> `i2c_smbus_read_word_data'
drivers/usb/typec/tcpci_rt1711h.c:225: undefined reference to
`i2c_smbus_read_word_data'
drivers/usb/typec/tcpci_rt1711h.o: In function `rt1711h_probe':
>> drivers/usb/typec/tcpci_rt1711h.c:251: undefined reference to
>> `__devm_regmap_init_i2c'
drivers/usb/typec/tcpci_rt1711h.o: In function `rt1711h_i2c_driver_init':
>> drivers/usb/typec/tcpci_rt1711h.c:308: undefined reference to
>> `i2c_register_driver'
drivers/usb/typec/tcpci_rt1711h.o: In function `rt1711h_i2c_driver_exit':
>> drivers/usb/typec/tcpci_rt1711h.c:308: undefined reference to
>> `i2c_del_driver'
vim +549 drivers/usb/typec/tcpci.c
8f9439022 drivers/staging/typec/tcpci.c ShuFan Lee 2018-03-06 537
8f9439022 drivers/staging/typec/tcpci.c ShuFan Lee 2018-03-06 538 static
int tcpci_probe(struct i2c_client *client,
8f9439022 drivers/staging/typec/tcpci.c ShuFan Lee 2018-03-06 539
const struct i2c_device_id *i2c_id)
8f9439022 drivers/staging/typec/tcpci.c ShuFan Lee 2018-03-06 540 {
8f9439022 drivers/staging/typec/tcpci.c ShuFan Lee 2018-03-06 541 struct
tcpci_chip *chip;
8f9439022 drivers/staging/typec/tcpci.c ShuFan Lee 2018-03-06 542 int err;
8f9439022 drivers/staging/typec/tcpci.c ShuFan Lee 2018-03-06 543 u16 val
= 0;
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 544
8f9439022 drivers/staging/typec/tcpci.c ShuFan Lee 2018-03-06 545 chip =
devm_kzalloc(&client->dev, sizeof(*chip), GFP_KERNEL);
8f9439022 drivers/staging/typec/tcpci.c ShuFan Lee 2018-03-06 546 if
(!chip)
8f9439022 drivers/staging/typec/tcpci.c ShuFan Lee 2018-03-06 547
return -ENOMEM;
8f9439022 drivers/staging/typec/tcpci.c ShuFan Lee 2018-03-06 548
8f9439022 drivers/staging/typec/tcpci.c ShuFan Lee 2018-03-06 @549
chip->data.regmap = devm_regmap_init_i2c(client, &tcpci_regmap_config);
8f9439022 drivers/staging/typec/tcpci.c ShuFan Lee 2018-03-06 550 if
(IS_ERR(chip->data.regmap))
8f9439022 drivers/staging/typec/tcpci.c ShuFan Lee 2018-03-06 551
return PTR_ERR(chip->data.regmap);
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 552
b28d9be6c drivers/staging/typec/tcpci.c Peter Chen 2018-06-27 553
i2c_set_clientdata(client, chip);
b28d9be6c drivers/staging/typec/tcpci.c Peter Chen 2018-06-27 554
8f9439022 drivers/staging/typec/tcpci.c ShuFan Lee 2018-03-06 555 /*
Disable chip interrupts before requesting irq */
8f9439022 drivers/staging/typec/tcpci.c ShuFan Lee 2018-03-06 556 err =
regmap_raw_write(chip->data.regmap, TCPC_ALERT_MASK, &val,
8f9439022 drivers/staging/typec/tcpci.c ShuFan Lee 2018-03-06 557
sizeof(u16));
8f9439022 drivers/staging/typec/tcpci.c ShuFan Lee 2018-03-06 558 if (err
< 0)
8f9439022 drivers/staging/typec/tcpci.c ShuFan Lee 2018-03-06 559
return err;
8f9439022 drivers/staging/typec/tcpci.c ShuFan Lee 2018-03-06 560
b28d9be6c drivers/staging/typec/tcpci.c Peter Chen 2018-06-27 561
chip->tcpci = tcpci_register_port(&client->dev, &chip->data);
b28d9be6c drivers/staging/typec/tcpci.c Peter Chen 2018-06-27 562 if
(IS_ERR(chip->tcpci))
b28d9be6c drivers/staging/typec/tcpci.c Peter Chen 2018-06-27 563
return PTR_ERR(chip->tcpci);
b28d9be6c drivers/staging/typec/tcpci.c Peter Chen 2018-06-27 564
8f9439022 drivers/staging/typec/tcpci.c ShuFan Lee 2018-03-06 565 err =
devm_request_threaded_irq(&client->dev, client->irq, NULL,
8f9439022 drivers/staging/typec/tcpci.c ShuFan Lee 2018-03-06 566
_tcpci_irq,
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 567
IRQF_ONESHOT | IRQF_TRIGGER_LOW,
8f9439022 drivers/staging/typec/tcpci.c ShuFan Lee 2018-03-06 568
dev_name(&client->dev), chip);
b28d9be6c drivers/staging/typec/tcpci.c Peter Chen 2018-06-27 569 if (err
< 0) {
b28d9be6c drivers/staging/typec/tcpci.c Peter Chen 2018-06-27 570
tcpci_unregister_port(chip->tcpci);
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 571
return err;
b28d9be6c drivers/staging/typec/tcpci.c Peter Chen 2018-06-27 572 }
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 573
8f9439022 drivers/staging/typec/tcpci.c ShuFan Lee 2018-03-06 574 return
0;
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 575 }
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 576
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 577 static
int tcpci_remove(struct i2c_client *client)
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 578 {
8f9439022 drivers/staging/typec/tcpci.c ShuFan Lee 2018-03-06 579 struct
tcpci_chip *chip = i2c_get_clientdata(client);
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 580
8f9439022 drivers/staging/typec/tcpci.c ShuFan Lee 2018-03-06 581
tcpci_unregister_port(chip->tcpci);
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 582
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 583 return
0;
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 584 }
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 585
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 586 static
const struct i2c_device_id tcpci_id[] = {
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 587 {
"tcpci", 0 },
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 588 { }
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 589 };
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 590
MODULE_DEVICE_TABLE(i2c, tcpci_id);
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 591
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 592 #ifdef
CONFIG_OF
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 593 static
const struct of_device_id tcpci_of_match[] = {
40242086f drivers/staging/typec/tcpci.c Li Jun 2018-06-27 594 {
.compatible = "nxp,ptn5110", },
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 595 {},
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 596 };
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 597
MODULE_DEVICE_TABLE(of, tcpci_of_match);
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 598 #endif
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 599
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 600 static
struct i2c_driver tcpci_i2c_driver = {
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 601 .driver
= {
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 602
.name = "tcpci",
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 603
.of_match_table = of_match_ptr(tcpci_of_match),
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 604 },
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 605 .probe
= tcpci_probe,
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 606 .remove
= tcpci_remove,
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 607
.id_table = tcpci_id,
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 608 };
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 @609
module_i2c_driver(tcpci_i2c_driver);
74e656d6b drivers/staging/typec/tcpci.c Guenter Roeck 2017-04-27 610
:::::: The code at line 549 was first introduced by commit
:::::: 8f94390226487bcb86c554ddc12eef0d27bdec3b staging: typec: handle vendor
defined part and modify drp toggling flow
:::::: TO: ShuFan Lee <[email protected]>
:::::: CC: Greg Kroah-Hartman <[email protected]>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
.config.gz
Description: application/gzip
