Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2135906ybc; Wed, 13 Nov 2019 09:29:33 -0800 (PST) X-Google-Smtp-Source: APXvYqz9/aDoB6XA4PyfHF05YGn2826cgUPFK5lqwAmOoPZ0bCXyq2d1IurlN7FR/NRtBomLLetN X-Received: by 2002:a50:b6cb:: with SMTP id f11mr4857554ede.299.1573666173075; Wed, 13 Nov 2019 09:29:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573666173; cv=none; d=google.com; s=arc-20160816; b=it8J31fSQUkJUI2A67D2VgrjvzlAc4TXk8YSAJNcDeKBlis3mFaK4uKy3IaXjamlIX VDrczkpcKOEYA7NLCGJjHxwdPUSRJt5+JlwcRB2zEl7gY5SkWqtV3TaF1QrdZwUjjlNS c6kpKtfC/IkTng/dz5Z65h6+Km2TIEA82yr/5g3z39rZeq4prmZg+/kPkpi4EvxHBXp3 GUNsmap/v/FJXG6bx42faAcctfYy7/3nCkGBW6Y8mMKqk3WRoKhctWl/mo/i0FJe5u71 Mmg0vakBOcEJ4cM5grZNDRmc2WuFvqQG7QLI7I0L85n1cAnqCBwgst1NjXm2yIcgwpYT BaVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=pFRHzdnlMNniuFWtD+rMaIpPH7jaZVSWgKgjW/UDtWA=; b=vi39JScglle0oNb+vhtvKS/k/PXkgc/DCcxIqnX8fh0rZaNa+CZz6UUn37oO5mX2e6 +gMWqvi7MnLPQ+DtZ0dxZrxtB/qrhwlUCcz0t0v/+SwNEwJcqTVFVer6V9ah6Ulzhtai AvNtf2VYRZqBERy2K6J8mwp8oMPgDKyhU8tQLjd8gFKbkqp3dV1uqBwoaU/QosoVt28C izl4+khEioZ3pLaQUKka3Obyj7B+6ui6cWHYoiiwIA/PZPcXKQ0lFMCcoAIBh+7CCQqP IssiqDHEhNv/Y0quK2Zwt11jgNSYdGa1lAhPpV0EgggkMhU798HELeVln/NOJTaEVaeL pbnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=oBFWfDzU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q9si1513732ejn.147.2019.11.13.09.29.08; Wed, 13 Nov 2019 09:29:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=oBFWfDzU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728477AbfKMRXX (ORCPT + 99 others); Wed, 13 Nov 2019 12:23:23 -0500 Received: from mail-lf1-f68.google.com ([209.85.167.68]:36238 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726952AbfKMRXX (ORCPT ); Wed, 13 Nov 2019 12:23:23 -0500 Received: by mail-lf1-f68.google.com with SMTP id m6so2620521lfl.3 for ; Wed, 13 Nov 2019 09:23:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pFRHzdnlMNniuFWtD+rMaIpPH7jaZVSWgKgjW/UDtWA=; b=oBFWfDzU/yX8hkGLN2ysyjY9x0MHdixc+4lGj1pc5Ccjhg3EdLRCJPN70P1XDRy7Wa I0nyR13k+GNRGPQ1xL4nMtD2DrkPxS8V8jsfNor9AqKYcf4yAynx2pVdLkikSRPYjKSO fPX8+YqhU3rtScCqsgUhAMJKuN86SR0uopvGs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pFRHzdnlMNniuFWtD+rMaIpPH7jaZVSWgKgjW/UDtWA=; b=oj7ZpOa1vPLcdiWuyPMQ0kXlpNk6VnTqZPVM2pUnQwyyDfSWu+RL28mMzms+kICE2K R0IhFqF+tU8znCQjSD8xKMu78Yb+cyhil7BuUIvwFvcg1K6R+WD1hGFTf9vCqc4slRXz KlMMPVt1MDVmxu4McIplSD7tl0wA1pBdVH+ha/4QfJJawe5xrg6tk95m7wqaaYz+SbaA nVbgXkAqTgtRuZt5k5gIcW9SLljpxrwr7FnuzFb9c0yz3rDoMBSPcNwVpVjF/1NSiPaM OM7qVcWdAb4SOpqb992Ztm9P/v+cMCaFA1ahwO1ilX7Aqz0MSRHHHl6zafA6UU0MYMUQ Dn4w== X-Gm-Message-State: APjAAAUw1uCvI3BnE2TMgSiu/44MNpfmxYQSIDj+taoAWHsld1nWGhSt dH4Q4ChQtvtZ6Z+32H2QGzYykJL37mc= X-Received: by 2002:a19:cbcc:: with SMTP id b195mr3423118lfg.129.1573665800913; Wed, 13 Nov 2019 09:23:20 -0800 (PST) Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com. [209.85.208.172]) by smtp.gmail.com with ESMTPSA id v21sm1173443ljh.53.2019.11.13.09.23.19 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Nov 2019 09:23:20 -0800 (PST) Received: by mail-lj1-f172.google.com with SMTP id d5so3488577ljl.4 for ; Wed, 13 Nov 2019 09:23:19 -0800 (PST) X-Received: by 2002:a2e:2e10:: with SMTP id u16mr3580388lju.51.1573665799180; Wed, 13 Nov 2019 09:23:19 -0800 (PST) MIME-Version: 1.0 References: <20191113031044.136232-4-jflat@chromium.org> <201911132033.3UoCbltt%lkp@intel.com> In-Reply-To: <201911132033.3UoCbltt%lkp@intel.com> From: Jon Flatley Date: Wed, 13 Nov 2019 09:23:07 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 3/3] platform: chrome: Added cros-ec-typec driver To: kbuild test robot Cc: Jon Flatley , kbuild-all@lists.01.org, Linux Kernel Mailing List , Benson Leung , groeck@chromium.org, sre@kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 13, 2019 at 4:55 AM kbuild test robot wrote: > > Hi Jon, > > Thank you for the patch! Perhaps something to improve: > > [auto build test WARNING on ljones-mfd/for-mfd-next] > [cannot apply to v5.4-rc7 next-20191113] > [if your patch is applied to the wrong git tree, please drop us a note to help > improve the system. BTW, we also suggest to use '--base' option to specify the > base tree in git format-patch, please see https://stackoverflow.com/a/37406982] > > url: https://github.com/0day-ci/linux/commits/Jon-Flatley/ChromeOS-EC-USB-C-Connector-Class/20191113-193504 > base: https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-mfd-next > > If you fix the issue, kindly add following tag > Reported-by: kbuild test robot > > > coccinelle warnings: (new ones prefixed by >>) > > >> drivers/platform/chrome/cros_ec_typec.c:223:9-16: ERROR: PTR_ERR applied after initialization to constant on line 222 > > vim +223 drivers/platform/chrome/cros_ec_typec.c > > 206 > 207 static int cros_typec_add_partner(struct typec_data *typec, int port_num, > 208 bool pd_enabled) > 209 { > 210 struct port_data *port; > 211 struct typec_partner_desc p_desc; > 212 int ret; > 213 > 214 port = typec->ports[port_num]; > 215 p_desc.usb_pd = pd_enabled; > 216 p_desc.identity = &port->p_identity; > 217 > 218 port->partner = typec_register_partner(port->port, &p_desc); > 219 if (IS_ERR_OR_NULL(port->partner)) { > 220 dev_err(typec->dev, "Port %d partner register failed\n", > 221 port_num); > > 222 port->partner = NULL; > > 223 return PTR_ERR(port->partner); > 224 } > 225 > 226 ret = cros_typec_query_pd_info(typec, port_num); > 227 if (ret < 0) { > 228 dev_err(typec->dev, "Port %d PD query failed\n", port_num); > 229 typec_unregister_partner(port->partner); > 230 port->partner = NULL; > 231 return ret; > 232 } > 233 > 234 ret = typec_partner_set_identity(port->partner); > 235 return ret; > 236 } > 237 > > --- > 0-DAY kernel test infrastructure Open Source Technology Center > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation This patch is based off of the chrome-platform for-next branch. base: https://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git for-next Is this incorrect? I'm happy to rebase if necessary. Thanks, -Jon