Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2340680lqo; Mon, 20 May 2024 02:46:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVOLneINm0ElQsaNB8VhP+tDqqAKX+q0OL52nQ+pVbSpGcVTMvJhV9C7szIxtit4Wj+zVBUCeZYJmT/C9UVpjXHXBfGFHdgwWbZ/84NJQ== X-Google-Smtp-Source: AGHT+IEulAhzK/IFzs4DD45i0euv6z3sQwMBDv8HPqxGOgg/NcF1NBq7c6t7Jv+7JLn2khJZQFP5 X-Received: by 2002:a50:9e61:0:b0:56e:23e3:bdc2 with SMTP id 4fb4d7f45d1cf-5734d5cf9b4mr29123267a12.13.1716198416685; Mon, 20 May 2024 02:46:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716198416; cv=pass; d=google.com; s=arc-20160816; b=U0IIXyS7jYsgdMi68VJW006MYCjNDmao0gBYyqHGKHGhqGDbM9gOoNPu1LWCr6zdee duTmWunnKesfBw970Up+wDHHkybZsUyb0HyNZ6qITASuCDoR+ndkxU4Mu5sLvRUz7VTP HevlbTgOc+D8Zb7i2iGLN68qHn68W9AWHhM1X6VMzN+e7t8xZpn7pibbp4iyAUGFkACu BL9RO/pltrSkXYI5cOvvRz8J/cVZst/dvTBb3THuGPmm/hB+5+AEOzw/WGH7AN/sHSMs +MoG7WXSbR8LwafZg5pReM3da+VwfVpelYAiuz0SXRXCCj7NiKbX0mADyIXRgfmCxWQ/ +yHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=w9s70M4W1PegcTM23p4HoFm9C2Ay+es9T83Py90mf2o=; fh=O7W32hzrxLioy2lU7cq0myUffGADZNPHRUPmOpshY3A=; b=0Qxyn4QfcFOElI4UJZWZ3wyxgPdoXjbDS9JQaJDGPJ0v0TRVI59vEu9i9qOT8CO60r RidI73rJEVHVBcZRvHi296rTb8uk+0EjXDy3wsoRwrsqVQ9bI2IreSs8HRUvTRJHRhe2 3EoD+rjhy4LtPZIgbutZ2TOO0y+5wo7lfaS31br3KmGcHKnp2ezE2xx2A/lkkKD2Hcnu c5Yc2BsGgZT/ogG6q3FA5e2KsPmTfHIqXw4dGyyL4GnfDa/KLUI9m73AAEmLXMjVUyx4 qh04P8WHvVGov+jdS9QXsAc/FmiLyKd/IDL+USKGRk1mpex1nac19WFrBIQ0nIiVLgQ5 9olA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ai3w3hmY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-183563-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183563-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c327085si12966826a12.356.2024.05.20.02.46.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 02:46:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183563-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ai3w3hmY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-183563-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183563-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 696881F21262 for ; Mon, 20 May 2024 09:46:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1BCB246556; Mon, 20 May 2024 09:46:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ai3w3hmY" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 44FB246426; Mon, 20 May 2024 09:46:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716198409; cv=none; b=NYUVOdlS9fn3UlaQ4kCNiUJl0dtJ2fLjz9vINLbQc2QdpfjdqKAn5C3cfd/li2RSezdNBImrPlcQexC0lcg04y8tPiwrs4EnNVBEXpUdlArV0XlPGOiyDW8b8cZQawww3nXEKm8FfaBHBgeAHqs25FGKEfP+a3ReCVLWHVMeKaA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716198409; c=relaxed/simple; bh=ngGzKQovEqZCQRCuA0UQM97qY9IEl28WOJ1T6pBDXek=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TX/08JQuAGgXQ07NBwnZ1nZQJ4+M83oSeXkioFzd8XGsaDHFeCpm+eMBTI0ENa0N8bktW+b+6VzFcGqF4tScFQNYNpwS31vx77+6MVUugKolmYoKx06CPQfySTRFIVvIqjkGy9+SRx0DfTssxRAs+e7tJ3byBriE8Z+ffJ78Lu8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ai3w3hmY; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 67A14C2BD10; Mon, 20 May 2024 09:46:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716198408; bh=ngGzKQovEqZCQRCuA0UQM97qY9IEl28WOJ1T6pBDXek=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ai3w3hmY0y10iaceQjxFM4LCSfzaAW3O28X+9WHEl2OS+1up1JeC4PJ+p7lnHuMiN EYGnl22YjmlMKGTOHQ/Oa6I07l9jlxAumI5t8vy7sWYvALxskDgS6plOKZtDzw1wXs NsZO8TZWNvEXIUJSlbu4ZyDPu67cHSx8Z1QGfwykXtYNsfMhkCikSd/mUThwM4d4Gr xStJrZ0Ji4oBdRQ7zGVze6vG9axvlW9RG0acoA4DoKYH7Zxy1bWONdNvDkUIcft3zv AjJDGHMarSgAVZDX0ZAtWvr7jV02CrD0W01eHBTJGMGxfXsksadO3tfIBhcMJDuh4B TFZLwSQ8+Fk9g== Date: Mon, 20 May 2024 17:46:45 +0800 From: Tzung-Bi Shih To: Ben Walsh Cc: Benson Leung , Guenter Roeck , "Dustin L. Howett" , Kieran Levin , Thomas =?iso-8859-1?Q?Wei=DFschuh?= , Mario Limonciello , chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/6] platform/chrome: cros_ec_lpc: Pass driver_data in static variable Message-ID: References: <20240515055631.5775-1-ben@jubnut.com> <20240515055631.5775-4-ben@jubnut.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240515055631.5775-4-ben@jubnut.com> On Wed, May 15, 2024 at 06:56:28AM +0100, Ben Walsh wrote: > The module init passed extra data to the driver via the driver_data of > a new platform device. But when an ACPI device already existed, no > platform device was created, so this extra data wasn't passed to the > driver. > > Stop using the driver_data and use a static variable instead. Could it be possible to put the driver data in the acpi_device_id and somewhere calls acpi_device_get_match_data()?