Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp301957rdb; Thu, 25 Jan 2024 16:23:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IGsWLSAyGv3P2swBXJ2vmNIbGKgskmTFwniUy/7DcIggsuIkKLNwkxP096LtXidmOOh8iLM X-Received: by 2002:a05:6358:ed11:b0:175:c1b8:1e93 with SMTP id hy17-20020a056358ed1100b00175c1b81e93mr701129rwb.65.1706228590861; Thu, 25 Jan 2024 16:23:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706228590; cv=pass; d=google.com; s=arc-20160816; b=KWnM70jpTNuq2DmFuvsnV6CgNTFVkeTbZjX3JRBaQmvoFYCU+6HauupuGCn4mecFmD laYqYUPbPZA1VXwj5ENfyNC8xYqYenRh5dGe+PNYp8AhDxilmYxa8v+pwEwmrw6pU5eL /2sMV/pzy35p03qdJIEqOuN2Gcb5ZZqf9mlFONU1Saxb3YU4eWrBpU1xO3aTpiBW2znm wM6c3dQfQW4bdyl1FQj99cnyOtRb5wD0bHjXwK0jItDkD+CUXe9PphIUVoEwYyxLaY+t 4UMaQFuCENPNOth+S2xL9/uAac74bXkabdVWQqT8qWh6dfb6Lwq9r2UNhmUTd7rB5sYR 9nDA== 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=XrbGD9nhu09VbWmra4xDpvbma+oaLmacGCLBgklrSUo=; fh=lhOt/zPZwqFNozmq5ikdV18WlIhNYLYFlQ6Yns1PyRw=; b=KeB1M2ZDCeK3pZeNCcubNla1DV5QlCxuGv1wBbdn55q3ku175E9hiHMSTu0okHAR9F S4JX1lI+Jn1iCXf6rEKq8fgrTBT9f5351cS+1kpMzN8PHA/c4JyH6ynj9Jl3ztZAAAmk b7DaripA+1yQo6nOWiy+hkKvib9099FAsqEW7p67G/Q3L+Ifhg01XeHdtandMWn+unWJ KrbF0B2t8FkvGliEGgfiEKaoA3mhQ7Czy1ioDNCsscFK8fVSiqxVhAswXqCJMXESaE9y EgqRCQJ58jeNhn0sMjuQu0lDhCRpd1j9lK9brvXmGy3gP42Xkga3iympLN5lgiUMDTWd ZkFA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=RmvsWzwh; 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-39456-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39456-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id z11-20020aa785cb000000b006dd9f0a3874si158113pfn.225.2024.01.25.16.23.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 16:23:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39456-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=RmvsWzwh; 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-39456-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39456-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id AC18228844B for ; Fri, 26 Jan 2024 00:22:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1BB81EC3; Fri, 26 Jan 2024 00:22:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="RmvsWzwh" 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 B9F557E2 for ; Fri, 26 Jan 2024 00:21:59 +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=1706228521; cv=none; b=qNLBW12uKBv3QujNxJsAcQZK88Ch84L/lBReyEG6znT8Xq4eJwEOnuznSSWzsQV50eZ607lkO98aHTfErtfU0GuyjKQ1T9K21RwGOSw1oT3g7bfSviiG3XeXC3bh1e/z8hmBV0wJKJ2JvCRX7nrVGmfICX+w81Tq1lBtVgV4qeg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706228521; c=relaxed/simple; bh=QrCvh2bDVmQVhbZy1e0kGFeRP9qJbI85tKvDb1mTQrg=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=WGzdZfkSQTqSBD1/sc+QUOvWq2HyvfkHUyP9ha6chnvj5s8NZIUZ/uluCstaTyyToagejq8Fg6b6OXe5ekWie49Z7qgOxTPTE83rzSGnekrnBXMbg/KvJ2fCUxpJpg4S4FJp2pokKqN1XOarhF0UTPgdMPZQbHb3IrKRJ1NMiKA= 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=RmvsWzwh; 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-dc2308fe275so6383545276.1 for ; Thu, 25 Jan 2024 16:21:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1706228519; x=1706833319; 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=XrbGD9nhu09VbWmra4xDpvbma+oaLmacGCLBgklrSUo=; b=RmvsWzwhavUjq1AC+FKseIM5zk/ELvLlcuFnO/zFX043ilLWONPaoLLPF2FG3ZA+P1 C5CZartLiVid1Te52NhZAz3PI1q8y8SZOcoBaCeq3AVSMdxemXZVeqHcKts7uEUv40lO AfnCFYxAUwxct+7kiH8QjMfR+kyDS0f2zlwX0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706228519; x=1706833319; 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=XrbGD9nhu09VbWmra4xDpvbma+oaLmacGCLBgklrSUo=; b=KcFTzeQjLHO98c4nm0je7Kgbb54irQCjYWS8lcymbo8X1qtPA4ccsVruCsh2yxZ64l ag/5VlBufW1qFO5i1N0DtvnmsuavxpqeQG1tVYYn6dHVImH/iM16qJ/2YM9uYA4qSW6Y ul3BjeK4SsugM9OGFka3uHqzJd2/j0zMpmrm/fmMFN5LzMOYF/f1qHWis12Dy31+oeA5 BMSUftgC3al3dIabiG1K/77xmrHXrmkju3iBisCIlN+VZIKX3RSWScHDPjZXFDIqHn9B Pwj83KecsvkpVS0MvemmUz5aMWZJBZ1jJu0Ivxt4Z3h82jFRYnHCAcJOX41oRrJtYlyr aV3A== X-Gm-Message-State: AOJu0YzzTKXY+daYC/Hft1fKMaobnMi306c06pxxd3/jOxnN8BYnncR/ /yRWpSfuE50mUgVCvO4Pdqwi/VRYPmfAkgTSk/ikBI1qX9iPBaZCIUEdn9+4AeCE82dDG3W1B4R IEQQFdNhwawt3A7rJ385qrBexU184BTS2c1XI X-Received: by 2002:a25:f911:0:b0:dbf:67f0:efc5 with SMTP id q17-20020a25f911000000b00dbf67f0efc5mr518538ybe.119.1706228518825; Thu, 25 Jan 2024 16:21:58 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240125004456.575891-1-abhishekpandit@google.com> <20240124164443.v2.2.I3d909e3c9a200621e3034686f068a3307945fd87@changeid> <2024012512-haphazard-mobster-f566@gregkh> In-Reply-To: <2024012512-haphazard-mobster-f566@gregkh> From: Abhishek Pandit-Subedi Date: Thu, 25 Jan 2024 16:21:47 -0800 Message-ID: Subject: Re: [PATCH v2 2/3] usb: typec: ucsi: Update connector cap and status To: Greg Kroah-Hartman Cc: Abhishek Pandit-Subedi , Heikki Krogerus , linux-usb@vger.kernel.org, jthies@google.com, pmalani@chromium.org, Dmitry Baryshkov , Neil Armstrong , Rajaram Regupathy , 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:03=E2=80=AFPM Greg Kroah-Hartman wrote: > > On Wed, Jan 24, 2024 at 04:44:53PM -0800, Abhishek Pandit-Subedi wrote: > > diff --git a/drivers/usb/typec/ucsi/ucsi.h b/drivers/usb/typec/ucsi/ucs= i.h > > index bec920fa6b8a..94b373378f63 100644 > > --- a/drivers/usb/typec/ucsi/ucsi.h > > +++ b/drivers/usb/typec/ucsi/ucsi.h > > @@ -3,6 +3,7 @@ > > #ifndef __DRIVER_USB_TYPEC_UCSI_H > > #define __DRIVER_USB_TYPEC_UCSI_H > > > > +#include > > Do you really need to include a asm/ include file? This feels very > wrong. I didn't see any header in include/linux that already had these unaligned access functions so I opted to include asm-generic/unaligned.h. Is there a reason not to use an asm/ include file? > > It's also in the wrong place, AND why "asm-generic"? That also feels > wrong. asm-generic is definitely wrong; I misunderstood how these headers are supposed to be used (should be just asm/unaligned.h). For ordering, I took a look at some other files and it looks like goes below the includes. This also probably deserves documenting in the style guide. > > thanks, > > greg k-h