All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH 2/4] phy: phy-can-transceiver: Add support for generic CAN transceiver driver
Date: Sat, 10 Apr 2021 01:13:09 +0800	[thread overview]
Message-ID: <202104100144.guND0rc4-lkp@intel.com> (raw)
In-Reply-To: <20210409134056.18740-3-a-govindraju@ti.com>

[-- Attachment #1: Type: text/plain, Size: 4251 bytes --]

Hi Aswath,

I love your patch! Perhaps something to improve:

[auto build test WARNING on mkl-can-next/testing]
[also build test WARNING on robh/for-next linus/master v5.12-rc6 next-20210409]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Aswath-Govindraju/CAN-TRANSCEIVER-Add-support-for-CAN-transceivers/20210409-214324
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git testing
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/4c36c3573a45d758ed08da12e803ddd1c99b52b7
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Aswath-Govindraju/CAN-TRANSCEIVER-Add-support-for-CAN-transceivers/20210409-214324
        git checkout 4c36c3573a45d758ed08da12e803ddd1c99b52b7
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sh 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/phy/phy-can-transceiver.c:77:5: warning: no previous prototype for 'can_transceiver_phy_probe' [-Wmissing-prototypes]
      77 | int can_transceiver_phy_probe(struct platform_device *pdev)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
   Depends on SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && HAS_DMA
   Selected by
   - SND_ATMEL_SOC_SSC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC
   - SND_ATMEL_SOC_SSC_PDC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && ATMEL_SSC


vim +/can_transceiver_phy_probe +77 drivers/phy/phy-can-transceiver.c

    76	
  > 77	int can_transceiver_phy_probe(struct platform_device *pdev)
    78	{
    79		struct phy_provider *phy_provider;
    80		struct device *dev = &pdev->dev;
    81		struct can_transceiver_phy *can_transceiver_phy;
    82		const struct can_transceiver_data *drvdata;
    83		const struct of_device_id *match;
    84		struct phy *phy;
    85		struct gpio_desc *standby_gpio;
    86		struct gpio_desc *enable_gpio;
    87		u32 max_bitrate = 0;
    88	
    89		can_transceiver_phy = devm_kzalloc(dev, sizeof(struct can_transceiver_phy), GFP_KERNEL);
    90	
    91		match = of_match_node(can_transceiver_phy_ids, pdev->dev.of_node);
    92		drvdata = match->data;
    93	
    94		phy = devm_phy_create(dev, dev->of_node,
    95				      &can_transceiver_phy_ops);
    96		if (IS_ERR(phy)) {
    97			dev_err(dev, "failed to create can transceiver phy\n");
    98			return PTR_ERR(phy);
    99		}
   100	
   101		device_property_read_u32(dev, "max-bitrate", &max_bitrate);
   102		phy->attrs.max_link_rate = max_bitrate / 1000000;
   103	
   104		can_transceiver_phy->generic_phy = phy;
   105	
   106		if (drvdata->flags & STB_PRESENT) {
   107			standby_gpio = devm_gpiod_get(dev, "standby",   GPIOD_OUT_LOW);
   108			if (IS_ERR(standby_gpio))
   109				return PTR_ERR(standby_gpio);
   110			can_transceiver_phy->standby_gpio = standby_gpio;
   111		}
   112	
   113		if (drvdata->flags & EN_PRESENT) {
   114			enable_gpio = devm_gpiod_get(dev, "enable",   GPIOD_OUT_LOW);
   115			if (IS_ERR(enable_gpio))
   116				return PTR_ERR(enable_gpio);
   117			can_transceiver_phy->enable_gpio = enable_gpio;
   118		}
   119	
   120		phy_set_drvdata(can_transceiver_phy->generic_phy, can_transceiver_phy);
   121	
   122		phy_provider = devm_of_phy_provider_register(dev, of_phy_simple_xlate);
   123	
   124		return PTR_ERR_OR_ZERO(phy_provider);
   125	}
   126	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 54273 bytes --]

  reply	other threads:[~2021-04-09 17:13 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-09 13:40 [PATCH 0/4] CAN TRANSCEIVER: Add support for CAN transceivers Aswath Govindraju
2021-04-09 13:40 ` Aswath Govindraju
2021-04-09 13:40 ` [PATCH 1/4] dt-bindings: phy: Add binding for TI TCAN104x " Aswath Govindraju
2021-04-09 13:40   ` Aswath Govindraju
2021-04-12 10:19   ` Marc Kleine-Budde
2021-04-12 10:19     ` Marc Kleine-Budde
2021-04-12 17:49     ` Rob Herring
2021-04-12 17:49       ` Rob Herring
2021-04-13  7:41       ` Marc Kleine-Budde
2021-04-13  7:41         ` Marc Kleine-Budde
2021-04-13 13:15         ` Rob Herring
2021-04-13 13:15           ` Rob Herring
2021-04-14 12:53           ` Aswath Govindraju
2021-04-14 12:53             ` Aswath Govindraju
2021-04-09 13:40 ` [PATCH 2/4] phy: phy-can-transceiver: Add support for generic CAN transceiver driver Aswath Govindraju
2021-04-09 13:40   ` Aswath Govindraju
2021-04-09 17:13   ` kernel test robot [this message]
2021-04-12 10:18   ` Marc Kleine-Budde
2021-04-12 10:18     ` Marc Kleine-Budde
2021-04-14  6:24     ` Aswath Govindraju
2021-04-14  6:24       ` Aswath Govindraju
2021-04-14  6:57       ` Marc Kleine-Budde
2021-04-14  6:57         ` Marc Kleine-Budde
2021-04-09 13:40 ` [PATCH 3/4] dt-bindings: net: can: Document transceiver implementation as phy Aswath Govindraju
2021-04-09 13:40   ` Aswath Govindraju
2021-04-12 17:51   ` Rob Herring
2021-04-12 17:51     ` Rob Herring
2021-04-14  6:49     ` Aswath Govindraju
2021-04-14  6:49       ` Aswath Govindraju
2021-04-14 13:24       ` Rob Herring
2021-04-14 13:24         ` Rob Herring
2021-04-09 13:40 ` [PATCH 4/4] can: m_can_platform: Add support for transceiver " Aswath Govindraju
2021-04-09 13:40   ` Aswath Govindraju
2021-04-12 10:22   ` Marc Kleine-Budde
2021-04-12 10:22     ` Marc Kleine-Budde
2021-04-14  6:59 ` [PATCH 0/4] CAN TRANSCEIVER: Add support for CAN transceivers Marc Kleine-Budde
2021-04-14  6:59   ` Marc Kleine-Budde

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202104100144.guND0rc4-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.