From patchwork Thu Feb 29 16:23:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 21164 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2097:b0:108:e6aa:91d0 with SMTP id gs23csp611029dyb; Thu, 29 Feb 2024 10:56:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXh/x0tnZfwe3+gW3tklTGlCy6Oppa6F0hMcUL+LW/jkMg7/ef/qpVMacxOH6aYaVc4ToDu6F1KXAFbRVQYoNubpCrYyA== X-Google-Smtp-Source: AGHT+IHOh3Dh5xh05FihBIY5K7OGv5CyEASi9AOfxKFTtYnS1y67vihhUIklCLv/4ppUOC7rC7ST X-Received: by 2002:a05:6a21:3945:b0:1a0:e03f:dee with SMTP id ac5-20020a056a21394500b001a0e03f0deemr4251655pzc.43.1709233012984; Thu, 29 Feb 2024 10:56:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709233012; cv=pass; d=google.com; s=arc-20160816; b=oHSKsiY4ZYPn/Wrh02Akcl6TtGKNR5cjWLcb0JS6gLOFpsZDuMwMRk7VVllaTY/5wb HMwGGFqGJo3l8ACe1lZKzEbeJ7h3Fhgi5qucNb69dP2lpXca4FivOIE33+LTmdYjUXbO JGGdRkbC0mSa5ZhnCN6dYA3DwlP1OmhwjcnbCe8wcRpGsVOoAGDq74xzAVfA+6cUiynd rHAN5/JBHITkOi+NtDAqwrOD3HMwoDOL1DihpFJYkwFx/RF/V4qk5ir20JxHpTuChewh sRg4J/aSEOw5xNjHZeLkKc1O+CgFOdwTYl2OXEsoa4GfCRiikAm16bFf0nOTktflra9E 2k5g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=VWW/NEGCBXiJogxaFW0dKiexnCI4LNBZevJCQkLasK4=; fh=HrOCeRPaC7Lya3UcENTh4bawJ1ArFqIxYfJyZPRlf+Y=; b=C+l1+6GO4PfxXGQRL0dforuoK3v4HJ2sjTDZcns4W2IqqjmOsj+VCEOnXVwTuNfTmS 3P8G6RkwaLU1cu6GipjpUVYKEjQrOIH93saqRXcOboLcQ6vtMa5nkqR+YECUpkdFiUIX yVMbowVF3bdJXmMLZuYdzujyNnGpDClSloSAt2urBPZdeuode6t+JsnlfE6+mbRywA8U gYGnlneM6Ghsy8qdcrN0RUq4mMH7NlyCgjsyGxd2IaHqEP80nyGWWVDJv4CzfXMjCvae YricKtISXTiRlMuAkPI9iznxNIGTH4iYvZLbJLbh6i1PZ/4Uu+VKC0khy7DbJKXzHsRV g0qA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ieCkvpQH; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-87080-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87080-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l6-20020a656806000000b005dc85a7eb1dsi1852625pgt.299.2024.02.29.10.56.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 10:56:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87080-ouuuleilei=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=@intel.com header.s=Intel header.b=ieCkvpQH; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-87080-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87080-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 C402F288EEB for ; Thu, 29 Feb 2024 16:30:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 91A0B7829B; Thu, 29 Feb 2024 16:27:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ieCkvpQH" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) (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 0AFA0160642; Thu, 29 Feb 2024 16:27:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.13 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709224076; cv=none; b=ggPiSVUq2hrqdPI7OXVIs9AiJcf/JEMDmMXf0X1gDmwEBuU8jEd9YTDmA1AqPxm+OPKf70RbrA/9uRb5Ktay58t75dIt4MS2LicosLAJljkKmau0UtdlnA97Fnlg3HXSwjCry92gEmYFQHogYHqHP0PhgrW5o9hbqcIGZTT14ck= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709224076; c=relaxed/simple; bh=ejvm1bmnxBFMRwAGP7H9c0MFEeLIiilFk0iRRW12wW4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XPvTxDIbg10BJ1h2Du9tza/SZqDp5knLsXkCm3jENhsp6Z5HVASy6OhjtblOaG/mEy8BYXAobKx+RN0jtGyXNHvmCft40/bMWXLTF8nFBivURGatTDxzROSupGaKrVtG/zCgluhycVfcaMP4dBJw7B81gT6xAqNsJO8DkS2UIGI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=ieCkvpQH; arc=none smtp.client-ip=192.198.163.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709224074; x=1740760074; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ejvm1bmnxBFMRwAGP7H9c0MFEeLIiilFk0iRRW12wW4=; b=ieCkvpQHJtxnjSizOR4ld81czQ8F2KehjyHqpRA6DbL92I1b1GPg9kUP Bd7ncMZEvxpdk8r9niSAwD40+UomwCOvTgWnfYf3oYgM0P0eJwPjX0wxp FQ/bNuyz/H4saRcOB8xRQWIPruNgs/Jaf1w0XaqcN/V6w8UPEFNSSAVbF bUmPvIenRdyIPPLn8lORDsGXiKN4VLflaYX6ZyGqMHiD8Lpw2DsvpiHtz 8El5YKKd1B+vd0wHz8pKUVWm9jmBokH3v8tCWChC0HaXCTXr7L4B0Uh3K SDH6OvoWDzfvop2HGQ3f4bifg42WdS3IzDzuBi8X+NA0CD+KxJ/AugYMc w==; X-IronPort-AV: E=McAfee;i="6600,9927,10999"; a="6660703" X-IronPort-AV: E=Sophos;i="6.06,194,1705392000"; d="scan'208";a="6660703" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Feb 2024 08:27:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10999"; a="937036135" X-IronPort-AV: E=Sophos;i="6.06,194,1705392000"; d="scan'208";a="937036135" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 29 Feb 2024 08:27:45 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 821A023A; Thu, 29 Feb 2024 18:27:44 +0200 (EET) From: Andy Shevchenko To: Greg Kroah-Hartman , Andy Shevchenko , Sakari Ailus , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org Cc: "Rafael J. Wysocki" , Daniel Scally , Heikki Krogerus , Len Brown , Jonathan Cameron , Lars-Peter Clausen Subject: [PATCH v3 0/4] driver core & device property: clean up APIs Date: Thu, 29 Feb 2024 18:23:42 +0200 Message-ID: <20240229162741.3854912-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1.gbec44491f096 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792260077320276871 X-GMAIL-MSGID: 1792260716089152591 There are two, but dependent pair of patches that: - makes some of devlink APIs static - removes 'proxy' header use This is rebased on top of latest patches from Jonathan as it has a minor conflict in property.h. The series can be applied directly to driver core tree with reduced context, but it may be better just to route it via IIO. Greg, which way do you prefer? v3: - improved commit message in patch 2 (Rafael) - added tag (Rafael) v2: https://lore.kernel.org/r/20240223155731.858412-1-andriy.shevchenko@linux.intel.com - most of the patches were sent separately as v1, thus this series is v2 - harvested tags from that patches (Sakari, Saravana) Andy Shevchenko (4): driver core: Drop unneeded 'extern' keyword in fwnode.h driver core: Move fw_devlink stuff to where it belongs device property: Move enum dev_dma_attr to fwnode.h device property: Don't use "proxy" headers drivers/base/core.c | 58 ++++++++++++++++++++++++++++++++++ drivers/base/property.c | 67 ++++------------------------------------ drivers/base/swnode.c | 13 +++++++- include/linux/fwnode.h | 13 +++++--- include/linux/property.h | 9 +----- 5 files changed, 86 insertions(+), 74 deletions(-)