Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1149660lqb; Sat, 25 May 2024 07:53:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXiAovGPe0VAk6CTWwNOOUGwFRKcxMez5lU1Zxm4Dj1ShXZf1azW4yTmikbKAEI1Jz7ueldEdsvGu4pmjoHJ3ZmwEHiY6ii7+VDfHKR3A== X-Google-Smtp-Source: AGHT+IEGaW0wjRqnGRNjyYxsmFGhrpOI3IJFAzx4I8TMqPUYU8vcWMIvNWzDJYriatgtBixf43GP X-Received: by 2002:a05:6214:5c02:b0:6ad:6ebc:54d4 with SMTP id 6a1803df08f44-6ad6ebc5a4amr9681236d6.22.1716648789101; Sat, 25 May 2024 07:53:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716648789; cv=pass; d=google.com; s=arc-20160816; b=l/vqm2p4hC47zU7AVPShnC6fhtAaJ39woflLWFH68VkyyX88rbKp8o6l5KOTrmpJU0 ZrfuSiKl8befbBVnDNswkXjPCmsePhtDYCk1qPSZugvmnDBTIDSFld2dxzWudpEiWKg1 Bq7geiZeDreqyR4jr50h7dLLk87PHvhSqzjt6/Wby0FBvxSGvg83EtaCD1YHNcBouZ+e M652SL6sp75KV/nRW1Xwb+zJHHV2vlHz+JYcL7COL57XQIH27mrLmkfBf8pAHhsOjSKK GyFQ1txmnnfO70AkKvEujv5AvUogBiswsTQI7+Zfr8FW8Ns2Jr8dr3LgTrpV6/WPTphU RAJw== 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=CHMHccaLfupgHFYAlYD/4pcYQldMV+GyUWHQKdmwPUo=; fh=mobIMka53sFXtyG9cz/BY7REd4+2u0c+po+3svFSixU=; b=J7QtCIEGPEyOvVjSO4vQSYAZqzkKdj2wFeUbwsl+0NCTUuhBxctbu1H6NxOaL6dEXi bCrf1oy3qXu/qGcSjw+FHXHyU3P1Ar2xsySMFHIDC9qXNC9DYJMChbbaoNnTBQsVSEF0 Es/kgs48jxkf/JR7cvqgzvoZRp0okdcMYcoK3BiPUOaN0B+iItG7OMIzh6bvC7GOUmTL D47vglWqJ26q61w+wdnT25FnclV3mJqB/Ku3isu6ftMxBtLmL6KEGM8mdDVrMvyL8eHU cMUdVAWiLbCEZruKoZuiFWYSDZw7m4baCHhmyqUH1+uz8LqWk9mUFo+GUaPMTcduu79A 029g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=l9iLSHSk; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-189404-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189404-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ac06f88b02si40130106d6.147.2024.05.25.07.53.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 May 2024 07:53:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189404-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=@gmail.com header.s=20230601 header.b=l9iLSHSk; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-189404-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189404-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9A4931C2081D for ; Sat, 25 May 2024 14:53:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 655F55A0FC; Sat, 25 May 2024 14:53:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="l9iLSHSk" Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (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 E19EB5914C for ; Sat, 25 May 2024 14:53:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716648783; cv=none; b=KbVubEuSwiHVvDYoijwJ5x+RDU4igkhk9uWaHUrqPKhIU5ReUNVMyHm7ijiWNThD/Pa4UueFwZ5fjhqlmVWXpKDqj4eGftLsl74aB8TczfkL1i7GQ30vK+kL1RSMlxa88ztKlUSFffILyYJhMVT8UW3oYgnDrjvqIYHSqMQGggs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716648783; c=relaxed/simple; bh=CHMHccaLfupgHFYAlYD/4pcYQldMV+GyUWHQKdmwPUo=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=EwyG67kpwJ8HCPmqCvu53i86usYZBbjqUl9Vuu2XG4qOpKPlxes7icmwPMfSAk+LQqZ5VvBjPQGpI00NqtCjMid2k8WEIOPmBWzAbZEbcgwt2//ubny+OimefLz+oLyQ//Seoc2RKXpZ9uCr2t1pn6sgIFvocmpVP5hXUuiP4M8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=l9iLSHSk; arc=none smtp.client-ip=209.85.167.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f51.google.com with SMTP id 2adb3069b0e04-5238b5c07efso9410321e87.3 for ; Sat, 25 May 2024 07:53:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716648780; x=1717253580; 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=CHMHccaLfupgHFYAlYD/4pcYQldMV+GyUWHQKdmwPUo=; b=l9iLSHSkslv+21off7qfxzKG5VyAcNauDmmSufvnYHn6HjPVZI3ocAz74Nfev5K3YL ht76D4HuE3QArDk0llIsIf+kh5RnedZTCmWPbQw06/ewgH837nj+iDyUw3FdubjmQm6M O/LhySQ3Lxs/yxKdoxN0Sthd99tMamTxVoVfUtWCxn1N2SGFb5N7qjlslRw9/P4Va1v/ sGzqWTwMO8UyjCbchMJdsHoUA003eu90vPn/ilqD7urKEyvjXdnHO4lDctbJVxnSjBVN G86ajzBuGJ0qDTqhFAAJCZeXDgMDcq8F3evAQbLhz1hGvmjfym9jUN/BBSIjGph93pA0 /4/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716648780; x=1717253580; 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=CHMHccaLfupgHFYAlYD/4pcYQldMV+GyUWHQKdmwPUo=; b=C+x04cHxmQwaVsrt014jKkOVKnGmoFs0dhvE4T9CPqHYs2r2j3cMZ49m1UDnDqwqpr 8IEc56Xe2YRoA5nbdfZ+MT8y6IZA7xEZIY9RGz/V9L7bXQF8kaOaZgyskphxxvjVkymU aSwSQgxzUv6qTGNHQLuQdAMXtnJ7n45y3yz8ASN4jT+C4hzUyhTEGSYmbfaXWSpK5Gav ptv1H+1yFFRZV0pQzIkR5OSlF00Pxkcfkp96qKlYsSmapkYbA0Fs+UcJZMNykbGxQ5bY sb6n396eIY6IM/7854cq/aEzOQ3ZuK86z3YAJGB3pwoBZySr0YDX0ElsAzeQmGOzp5gn aWyQ== X-Forwarded-Encrypted: i=1; AJvYcCXJCzqyR78VyKqnxT/6DfwjaN3MTiwPvhzriXEurYjlkw4Kw0oeH5RvHpbtYQHuL9lESVsWIMI+YKl6Q9SdkIxqUsg4QN34vzPj2yIr X-Gm-Message-State: AOJu0YyqPuvnagR+8CQzCGTSHtYb/FsdIwWth9x2pnOC9LkfDDFGLFoY PP8R5zgOeuPnuN5hDQOxKt29962AQuwwAAkxYWvVZ5wJSvTSmZxYMilwRdpmZjEU0I69FcFP8En 19YdP0zDYovU5L5QP7ErCkLwz0T4q2sB7 X-Received: by 2002:a19:9103:0:b0:519:63c1:6f45 with SMTP id 2adb3069b0e04-52966ca8debmr2780578e87.61.1716648779859; Sat, 25 May 2024 07:52:59 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240523170745.92166-1-hdegoede@redhat.com> In-Reply-To: <20240523170745.92166-1-hdegoede@redhat.com> From: Andy Shevchenko Date: Sat, 25 May 2024 17:52:23 +0300 Message-ID: Subject: Re: [PATCH] mfd: intel_soc_pmic_crc: Use PWM_LOOKUP_WITH_MODULE() for the PWM lookup To: Hans de Goede Cc: Andy Shevchenko , Lee Jones , Jani Nikula , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, May 23, 2024 at 8:07=E2=80=AFPM Hans de Goede = wrote: > > The primary use of the CRC PMIC's PWM is for LCD panel backlight > control by the i915 driver. > > Due to its complexity the probe() function of the i915 driver does not > support -EPROBE_DEFER handling. So far the pwm-crc driver must be built > into the kernel to ensure that the pwm_get() done by the i915 driver > succeeds at once (rather then returning -EPROBE_DEFER). > > But the PWM core can load the module from pwm_get() if a module-name is > provided in the pwm_lookup associated with the consumer device. > > Switch to using PWM_LOOKUP_WITH_MODULE() for the lookup added for > the Intel integrated GPU, so that the PWM core can load the module from > pwm_get() as needed allowing the pwm-crc driver to be safely build as built > module. > > This has been successfully tested on an Asus T100TAM with pwm-crc > build as module. a module Makes sense to me and it's good we allow better modularity as not all x86-based products use Crystal Cove PMIC. Reviewed-by: Andy Shevchenko Thanks for this good patch! --=20 With Best Regards, Andy Shevchenko