Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5350433pxb; Wed, 26 Jan 2022 09:59:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJyqxIo1ZvGtLEMGdtDWML8dmnLLise83J004JwbHS20+x99vjoZUqezbVWCNKvASK5l62MR X-Received: by 2002:a63:a09:: with SMTP id 9mr80691pgk.152.1643219946088; Wed, 26 Jan 2022 09:59:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643219946; cv=none; d=google.com; s=arc-20160816; b=gSe6VZzRerxaPDlm4y7G4rCY9Zq3D9tphdvVHi+pNGAbbjywzuat7gFDLtPJv7eUg2 VUv7NE8XXK0aLtbZoJAvA5zFKceYxkg0t7uj5YHodBAOIWuNFhyC2d5dgzGjZ78iDVAO 8hMYSWln/J2YNzgZ0F+b/GD3JGv8TZV1JYyw3GMojuP3Bl3aB3jO1ax3aSkvAyn9D0dz cQzP0fy5ExoGI3ssrfg6XmdXm3s7ad5ezi6fR6KpQZ30/p4htwGe9by5yZ5gQveSbZPp GtExuk47ga2G9vWf0axH1lBZawcG9lsoEx4dr3DfyEiCImpYTVWF5mG1HZeyk11c7epb ub6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=/p/L0DuUuVHknH8fGhtQHEJub+4n9C+9W04Ffm4OFeY=; b=EvKS4KAfPGAYnu7AwBHyUek1qbuobqFJ/zUPzLtImmyKeoRNa/870M5LcDUC6NOsxH 9tX8R6TNRZU4NOMFU5lhw73jepWnKFT4Rldc7vNoNrM/g9kw50mALmnkBtXV54S40CeI nUdOlAN7jE9W3lD1Cyg2neJNS+1q7MITI2WZosfQzmE0ZWxx6gy8XLkBj8DjaPQLnwcV X2LIXMqpNx0Km6zsedcPYgBzMnp18WO8yym7+uwtwUWpvqBBpZwVipUnuTYlozAx1gjo gxpuuqtEfS62seWmGthIvrvKbv1T8zJDMdNDutjEsvg4GsR9j1wxtBpaqKaWIfohD9CZ phmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=WXJ9d82G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id s7si10208558plr.245.2022.01.26.09.58.53; Wed, 26 Jan 2022 09:59:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=WXJ9d82G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S237474AbiAZEFx (ORCPT + 99 others); Tue, 25 Jan 2022 23:05:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237456AbiAZEFs (ORCPT ); Tue, 25 Jan 2022 23:05:48 -0500 Received: from mail-yb1-xb34.google.com (mail-yb1-xb34.google.com [IPv6:2607:f8b0:4864:20::b34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 095C1C061748 for ; Tue, 25 Jan 2022 20:05:48 -0800 (PST) Received: by mail-yb1-xb34.google.com with SMTP id 23so67676507ybf.7 for ; Tue, 25 Jan 2022 20:05:48 -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=/p/L0DuUuVHknH8fGhtQHEJub+4n9C+9W04Ffm4OFeY=; b=WXJ9d82Gn42UZlHVH9evCW6lxaIkMgv6rfjDv2QVSKXoLkfCEWDV8Za8GVLdA5nD// tDI43EFhICjvwPM9Ck9XbnOe4rGAXb/RJ1jJVyKotBAznxc0YkhwiB6Wr9PkekeCEhlV cVKM+yncek19fCUPqHiu8VysIm3J1J46N1+vg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/p/L0DuUuVHknH8fGhtQHEJub+4n9C+9W04Ffm4OFeY=; b=7Cipk43gY69md5rpj56rGV4kCWpKCmsqE1TWP/gdrbpoYNIl1rFHa7/bSYGQmHqatc XGlfI/cmamZth43jfhDilRRkfHXtwstwUpJTvqfjyXV2iJVCZYsaY43Of7/g/wt4f5oQ o4ix4WOCooD0TrGJOwaSAaRCSlku7PTnzvbbRb6xzg39LgiCs2tyLij2ByyUVpbMxh7S eKpD9R6s/so8maYGfQe0agZrkvEz2M3ldRzDXw+2eZ+7wj5pucQtUQ7wXKP7N/g9kwc7 XyJI7fQVXN+Fsym5sPqs0cfoRRqTFxGNYD6iZgyVHEOPfbyCvLkrhswrOjm7okzcWNcK IN7A== X-Gm-Message-State: AOAM5320bWbXbx4LOpR4aPpGxChx8myBz2iz3WnkML8ZxFh4d65IcV/I IlXm7g/6Pnd21ygtRsoX/Ldx+44GaSnKFJQqAcRUNA== X-Received: by 2002:a05:6902:724:: with SMTP id l4mr22285946ybt.656.1643169947334; Tue, 25 Jan 2022 20:05:47 -0800 (PST) MIME-Version: 1.0 References: <20220126012203.2979709-1-pmalani@chromium.org> In-Reply-To: From: Prashant Malani Date: Tue, 25 Jan 2022 20:05:36 -0800 Message-ID: Subject: Re: [PATCH] platform/chrome: cros_ec_typec: Check for EC device To: Tzung-Bi Shih Cc: linux-kernel@vger.kernel.org, Alyssa Ross , Benson Leung , Enric Balletbo i Serra , Guenter Roeck , Heikki Krogerus Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tzung-Bi, Thanks for your review. On Tue, Jan 25, 2022 at 7:46 PM Tzung-Bi Shih wrote: > > On Wed, Jan 26, 2022 at 01:22:03AM +0000, Prashant Malani wrote: > > Fixes: fdc6b21e2444 ("platform/chrome: Add Type C connector class driver") > > Reported-by: Alyssa Ross > > Signed-off-by: Prashant Malani > > With a minor comment, > Reviewed-by: Tzung-Bi Shih > > > @@ -1076,6 +1076,12 @@ static int cros_typec_probe(struct platform_device *pdev) > > > > typec->dev = dev; > > typec->ec = dev_get_drvdata(pdev->dev.parent); > > + > > I would prefer to remove the blank line to make it look like an integrated block. I actually prefer it as it is. typec->dev is not really part of this "integrated block", and I don't want to add another space there. In any case, since this is a very minor style nit, I will address it in case there is another version required due to other comments. > > > + if (!typec->ec) { > > + dev_err(dev, "couldn't find parent EC device\n"); > > + return -ENODEV; > > + } > > + Best, -Prashant