Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp283076rdb; Thu, 25 Jan 2024 15:37:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IHcgbptyswGzPOmi4fSj+sZ9Jy6fWyBJkX0ESl5Z0mRdUdNUIu9QAimKmNZBuOOpYGeDFsl X-Received: by 2002:a05:6830:1bc2:b0:6dc:654:b360 with SMTP id v2-20020a0568301bc200b006dc0654b360mr613302ota.25.1706225858875; Thu, 25 Jan 2024 15:37:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706225858; cv=pass; d=google.com; s=arc-20160816; b=hkWgRux5JBi4a5OBKLSR3+zmEWk7X2k0RGAPgs12BxMsxxJ2eN4y3HSKMKHzVb+xin DTuAKVXndbEiNApqi1Rx6WdAwfwrGTaBKYmendZX0CNeuN68ONkgLu7LRlVPXhQmtVnD qmFq9kggj8c3qagzeJtj9pcY6gXCwfPGHHE0mwqkQAsmd0xVUtj6dKE+rE4RiWgOlYAc BtbWZaIvYKjcEanQ8tprYOxNZkSYUJvkeGdezZFIXZTeNOO+beT2fudpOm3zev+Lw6bW 5mVKMm0JhDIJkYWpVzp6o3BMJsK9Jz2ehmdyJKTgxMOMXlO/r163v4zAywoXCafEqfoO 1sKA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=0TT8uDLtgFXFefXC65XRlmCrItr6QtCpzz8mfVfY3xQ=; fh=1u1/Td2dvleXlQrVTl1h7vWl/89IyyXNwKOmEAd/0r0=; b=MxT23wLGFRHwy90lSSQQaYm7y2rSVRGYxBXg+wjxUDAb0NiDYPYAAnna+s/OPJf4Sa GsSAHi31Eu7Kxmk1nPMe/Vq3ib3yXd+9fzf6vuvwOHAwO4hENCrII5bwzcxqkmBUap2x y0cx+Ax7g5ualk2wGbu5T9tpqU5eqkhGBSqF+d80w6vxB4AcaumqfFu5k2feGnDOBFqO eXxZgVJcH/BbIiMx4oMvcj3YK2FD5i/IkdQZCMbgOVFZZrj3TudxlKW8yW9xsW7xmmc2 p9tE0XDyR+XsofVTfzeKuARUNVGPXEldPgRsddn9CQzKF+7xOTl0wHTp0jtACaL94RGO Tp1w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ZrqYoNaC; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-39415-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39415-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ke27-20020a056214301b00b00681725e75a5si17429qvb.399.2024.01.25.15.37.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 15:37:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39415-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ZrqYoNaC; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-39415-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39415-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9C60A1C23951 for ; Thu, 25 Jan 2024 23:37:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 11407134D7; Thu, 25 Jan 2024 23:37:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="ZrqYoNaC" Received: from mail-yb1-f180.google.com (mail-yb1-f180.google.com [209.85.219.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B78EA134A4 for ; Thu, 25 Jan 2024 23:37:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706225846; cv=none; b=EeBy7K/14pOE5KJUJUPmoAup6g4TrkzPzL0JH3UQqxNM6umicKrNaEwtIHZ52R3YmguloW+vPY6zSKA1WwuqrraWZDmlnpH2PzYCgLyao5KqvDBYx6AkTP+nvcC+FqQ6O7yp6mzNOdJwVMLWnTNBSSM8v2QN+lg1Pa0QME89Ev0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706225846; c=relaxed/simple; bh=0TT8uDLtgFXFefXC65XRlmCrItr6QtCpzz8mfVfY3xQ=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=oEXHPdm38baXwcKUolE0PZWuWlcsAO36mprj8O1vl8JXo3AUOFAV6+b3NFMkDvKCL4RqTcl+gYQ0wXTrYB1pINNl3xaSxVR9nPQr/AJTbozz6vx9ZdRKbHIz+gybJ8N5eRSSidkjWxESIkeOdGrNtOi1ud8flrGbSpBzYv+XOW4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=ZrqYoNaC; arc=none smtp.client-ip=209.85.219.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-yb1-f180.google.com with SMTP id 3f1490d57ef6-dc25099b084so5015501276.0 for ; Thu, 25 Jan 2024 15:37:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1706225843; x=1706830643; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=0TT8uDLtgFXFefXC65XRlmCrItr6QtCpzz8mfVfY3xQ=; b=ZrqYoNaCShcbS5z0fDpzMO6us/wcwnMMR7mLvR7NrManFN5gec6EZVAmrv0ECPZYho V9RonlzzEAGLYs05Q0ubbjx/GKDZfuHNVxIdfepGizNXHDFP/OhvmZbKW7Zn62Z8kkXT 6pKd08T4mxBOHnzAHHYfsmx2sb3oMzRY+pk98= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706225843; x=1706830643; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0TT8uDLtgFXFefXC65XRlmCrItr6QtCpzz8mfVfY3xQ=; b=Qv+wpMxftZJnUNcy8994CB/8gm9pR8J63FIpek9QK8xy5EkYre4g82E3J9NpN4STgP 0vC9++rF/nXWKr6R3JlwREj9ksaSc74LwYxHnvKP6UdurLA99VuZhhCmn2gAToRmkyNP 1p3amYlReUwptrhBYQb39chs365B+YJcHbBYfErKaZ9dKc3Tu0I6TjREDa23tqboZIrR pF5b9P53Vr32X3ByFk9fXeuXVs/v3eW07qiARKNchFWRdQj4OiLgGPIMQwTGJsTiO9dD EMNFA5qxKevrEHbzik8ysYWM7zLmVJSOutOnf/3wvxmGSHXyoOxnRmx+ewdlzSfFG9sC U/OQ== X-Gm-Message-State: AOJu0YyFQWtCLz8IqfCrcRnNG4+bqpCt0qr0L0iN3nNrCdMTBmw3MBM+ /GsfDuV6lxBgH8xgZkE9tQVgmLN2aisRKD1Gp1cTelJdDM4/qN7lq3xI/JYpfPgnPFGHPUL9XlA XbkNOSq4zmobUG41OPFIban8T+cbqNOK64KTIaiaR88cpcSVkiQ== X-Received: by 2002:a25:9b09:0:b0:dc6:2d45:621e with SMTP id y9-20020a259b09000000b00dc62d45621emr503598ybn.107.1706225843691; Thu, 25 Jan 2024 15:37:23 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240123223039.1471557-1-abhishekpandit@google.com> <20240123143026.v1.1.Iacf5570a66b82b73ef03daa6557e2fc0db10266a@changeid> <2024012405-stung-freckles-e196@gregkh> <2024012525-alienate-frown-916b@gregkh> In-Reply-To: <2024012525-alienate-frown-916b@gregkh> From: Abhishek Pandit-Subedi Date: Thu, 25 Jan 2024 15:37:12 -0800 Message-ID: Subject: Re: [PATCH v1 1/3] usb: typec: ucsi: Limit read size on v1.2 To: Greg Kroah-Hartman Cc: Heikki Krogerus , Prashant Malani , Abhishek Pandit-Subedi , linux-usb@vger.kernel.org, jthies@google.com, Bjorn Andersson , Dmitry Baryshkov , Fabrice Gasnier , Hans de Goede , Neil Armstrong , Saranya Gopal , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jan 25, 2024 at 3:16=E2=80=AFPM Greg Kroah-Hartman wrote: > > On Wed, Jan 24, 2024 at 10:59:28AM -0800, Abhishek Pandit-Subedi wrote: > > Ack. Will make dev_dbg on the next iteration. > > > > This seems like a good addition to the style guide too: > > https://www.kernel.org/doc/html/v6.7/process/coding-style.html#printing= -kernel-messages. > > "When drivers are working properly, they are quiet. Prefer to use > > DEBUG messages unless something is wrong." > > > > What do you think Greg? > > I think you need to stop top-posting :) > > But yes, that would be nice, hopefully people actually notice it there. > Would you have read this and seen it? > > thanks, > > greg k-h I blame gmail web-interface for the top-posting :) Prashant also mentioned the dev_info when we were reviewing this so I did a quick search for "kernel coding style" (to see if there was guidance) before sending this up so I would definitely have noticed it there. In Bluetooth (where I've previously contributed), dev_info is used for printing version info (example: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/dri= vers/bluetooth/btintel.c?h=3Dv6.8-rc1#n337) and it's very useful for debugging so I assumed it was acceptable. The added benefit of this guidance being in the coding style guide is it's a quick change to checkpatch.pl to add a warning for this (and point to the coding style as the source). I'm fairly sure Chromium actually has a lint that warns whenever you use LOG_INFO(...) for similar reasons (too many INFO messages that should be DEBUG). I will send up a patch with the change soon (both to coding style and checkpatch.pl). Thanks, Abhishek