Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp585022lqh; Fri, 31 May 2024 09:59:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXfVhQeKEOzTtHPs+eL4mH/+N18rHP8KrDc7uurgPPnAtE5hUp+0R0UFG2Y6IWh7QigKja9XDgSydf1Hq7I6pgF8VpMBbZGeCvgyY1jJQ== X-Google-Smtp-Source: AGHT+IGLCe6CcRAcvxptBR2Xk2H/9gs88DSecGGTdogWRLxbWHhWvKCgrh1mcAdnGO8BHyJmbAlU X-Received: by 2002:a05:6a20:975a:b0:1af:f64c:b795 with SMTP id adf61e73a8af0-1b26f20f5b8mr2528264637.30.1717174746704; Fri, 31 May 2024 09:59:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717174746; cv=pass; d=google.com; s=arc-20160816; b=xeX1N9trC5VyGfP41JM5PuzCTl+BUkwErdbqrs99tMnCZ+0HInNRzEFakjjkGvtvgf bryPl01vCYxvZzjTPcrrHJHJGndFtoJ2em3lE7gi97cJ3k9ypEzAjrLyF/aTlF3JsBXZ VeYWUsNNmL9TALebQ9gB+4lmY/JkHKlpTTG3sOzhMmlapUAsn+ALAC3IEu15dOm0fHJs lyQcM8oXltigLH9F/yvURa7xxrzofNe+bBh9moCzNgmNWt3ANHpro+Rgf7oENoyZcmir xdmg8iAT4+42DuxIXJHySGOara/hZsFR9BTGLQf33TW8Hr83iDnCfUJtaR5gfm466Ibn amJw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=AvoKrw3t3kSwhprFHzwwT0u7OhNSnyNORTCLCxsyXfw=; fh=BVQrElBDnjq35lhvhB2C3WQVl2McvsnL303MJAG8GQI=; b=vmRljxVUntUzAyGZ68FWlLKWACultAfibQsdY46dPDU3YAbFUvrXuqrhUIJTc0zFTQ NqluP1uTgIeWzms/zJ0co1QwTfW0Ti9LIodYv8M28g5LqPmo8bef4/iVz7XharT2B8gY iCI7/suw4hHQcZ3TGK6TXmYgke8CVME6t9OSXQ4jko96jHWTtT08snnlmhpzqo8NQR7d 8zLirkuMqKXxy+hB9Xzdyxq268QwqiJ8046plMwA4WD8eXKTg7YqdnUxc50v1hcQHeNK ukJzyksaua0odk/g0lJTycBbdjJg2LSHg454q2G3ckYkZHSzScrg7doY5GuFCYQJJceL Ot6g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SLPHo0v7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-197207-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197207-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c1e9754c06si1037317a91.153.2024.05.31.09.59.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 09:59:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197207-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SLPHo0v7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-197207-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197207-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 27876283928 for ; Fri, 31 May 2024 16:59:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C21316F83D; Fri, 31 May 2024 16:58:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SLPHo0v7" 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 99BF116D9AC for ; Fri, 31 May 2024 16:58:38 +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=1717174718; cv=none; b=h0SCuYzbqO5nvOCueRL7mRMWnfWKFaMlJ0bi4bYtb5ew4vEnmF97VKeyC17UaexFh0nsKlNxstrylXZ2h7VJ2ku8l/WDnVWjgysvam65WSQHBdzhmDePB3qZD8LyMpVSYrcXulYXCeUoc0nKMb43k07uUg32fFBYiykELb7GKj8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717174718; c=relaxed/simple; bh=JP5FgACki9lWVStVz0zZfzJonGjYnYCtNW2WTeX1HD4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Rolew4h8UFyV9ixnddcD8ZIQcRt6hacdiwf5CSATD7lQSiCiDD5fTPtkFBpJDFsZaiQXU6/tYtcMCd4iTFma93aea0dY2+PN7kAVbKCRZw240R7FIIP/r9w8cf2FZ+cupdLKfebHn3ikVOE15A1VglfbWaFywxbh04l4LFI914E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SLPHo0v7; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0E82DC116B1; Fri, 31 May 2024 16:58:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717174718; bh=JP5FgACki9lWVStVz0zZfzJonGjYnYCtNW2WTeX1HD4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SLPHo0v7a6sqPnvGBsg0go+M7RdhsO5GPIulJIHTCiIS+3n+3TiwnzUpRfxfrNiUp Uvq4TF3KU2Oxnl/uZJujuY63yEXl563XravaoIW+Dz9r2AnPQifP8R7L+oDMuGdRwU jO/EA4STPSrXIa0teUq+Je0vyLk1/U6FkA4ejzFTiCLzVpo76d+AuB8KAsvWgeMzeu Y5f2CEXMYTXd1ZJ3iPFqpAH8CDfaO3G+Pfx4ZSvyiLDNdlBDiUv8Su33CrCLFMUSnO Le36+n/b8XIu0TMdpIiSV2Fid5VI2bNtXgmkbd8K7gpGFXni4F6u95kXjr38qzujvS efU62MRSQ6i0A== Date: Fri, 31 May 2024 17:58:34 +0100 From: Lee Jones To: Andy Shevchenko , johan@kernel.org Cc: linux-kernel@vger.kernel.org, Linus Walleij Subject: Re: [PATCH v1 1/2] mfd: lm3533: Hide legacy platform data in the driver Message-ID: <20240531165834.GA1204315@google.com> References: <20240508104848.846580-1-andriy.shevchenko@linux.intel.com> <20240508104848.846580-2-andriy.shevchenko@linux.intel.com> <20240531150048.GO1005600@google.com> <20240531155445.GS1005600@google.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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Fri, 31 May 2024, Andy Shevchenko wrote: > On Fri, May 31, 2024 at 04:54:45PM +0100, Lee Jones wrote: > > On Fri, 31 May 2024, Andy Shevchenko wrote: > > > On Fri, May 31, 2024 at 04:00:48PM +0100, Lee Jones wrote: > > > > On Wed, 08 May 2024, Andy Shevchenko wrote: > > > > > > > > > First of all, there is no user for the platform data in the kernel. > > > > > Second, it needs a lot of updates to follow the modern standards > > > > > of the kernel, including proper Device Tree bindings and device > > > > > property handling. > > > > > > > > > > For now, just hide the legacy platform data in the driver's code. > > > > > > > > Why not just rip it out entirely? > > > > > > You mean the driver? > > > > The unused platform data. > > Good question. In any case these drivers are non-functional anyway without OOT > board code. If we rip out the main platform data completely, the logical following > question arises: why do we need the per-device platform data? If we rip that out, > we basically make non-functional driver a 100% dead code. Hence what you propose > mostly equals to ripping out the drivers completely. > > TL;DR: with the main platform data being ripped out the driver code will be in > inconsistent state. What do you think Johan? Do you see any reason to keep it around? -- Lee Jones [李琼斯]