Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp384584lqd; Wed, 24 Apr 2024 05:38:54 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX2X6HON5MSJb5jY1pj0kKtaaEnQ1ZF7eqwOetxFfpnuSX+PGZKmaacaFyM+8/TozLtXZTpqLUjRmE1p7+3J4VHu1Jo7QJkKFjJ4sU/BA== X-Google-Smtp-Source: AGHT+IGBW4gyGWY+QLnUtshkkfaRYnBSFtYFGP1arBccTuWouQldiENPAcKy+N6jmRVxCqssElr5 X-Received: by 2002:a17:902:e80d:b0:1e4:31e9:83ba with SMTP id u13-20020a170902e80d00b001e431e983bamr3048675plg.1.1713962334022; Wed, 24 Apr 2024 05:38:54 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h5-20020a170902f7c500b001e7b7656181si11074987plw.393.2024.04.24.05.38.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 05:38:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156882-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=neutral (body hash did not verify) header.i=@gmail.com header.s=20230601 header.b=kRhW5Erz; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-156882-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156882-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8E54E2870AC for ; Wed, 24 Apr 2024 12:38:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 98D45157A72; Wed, 24 Apr 2024 12:38:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kRhW5Erz" Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 5A3B61DFF8; Wed, 24 Apr 2024 12:38:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713962290; cv=none; b=SXovJrhVb/c8IAl7n/N8VDbG9DCLf8d9TiPm21NbgA0gfGVzTowtVYzZiXJfzZzPKbBLK74v/RD1WGpWVps1wWV4f4hau4Q3Xzf+lZNMJvCwPfuBYit8YRmTxwmIsao3ME2632T4fVEeBl/hehWkbLioKli15vfEzzWoVmFCvRs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713962290; c=relaxed/simple; bh=xsF+vnHa/8cFh6oxrPVKsyuMm7DOJ2XE9MKSOl0XahM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=UeU4K8g2YObWF3YHFkaex1EbRCaOAqPMu71+6+LaTyh7GUVVFBvhCEm7RZlzcSw+KxFm7ij+dJFAPQkLvvxEt42ddOAHuPKdv229wljy1bFGrAWvhDdyv2HT0xbnS1XgwQrxu3GtqvFUyp2WU42dK7kpdZYSyZEl5nGVJ8SW/tw= 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=kRhW5Erz; arc=none smtp.client-ip=209.85.218.49 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-ej1-f49.google.com with SMTP id a640c23a62f3a-a557044f2ddso758299466b.2; Wed, 24 Apr 2024 05:38:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713962287; x=1714567087; 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=xsF+vnHa/8cFh6oxrPVKsyuMm7DOJ2XE9MKSOl0XahM=; b=kRhW5ErzlOzHVchYEduLow7OecPtFYE/3uCpsEVZ0un/anOjyzhN/3z7n+MebyEfo1 yTlOcatGD5HOMEvNdvMmY8eDboJJy9Jm8Q+H6FVliG6GOrFBLzJq2RPZuW9nJ4Yg/Vp4 qiQLAi5niBq84rgIPLyMS8WPc379b37TeFpXkt6DQQgnBwp6nEwW+icwGztmHVbHFaOi PWjUKKzxPYIihfm1NzETD0I3RF4Uq661msu9lwfPfcHvWfFt/5kHRqZWpEqqIABM1BaM LIwcJ0dNKK9ArJitiXb9IyuA83LMHg8f/FsvIOoae3CRPT1cAgE1hReSkVACCDneJUvf iFOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713962287; x=1714567087; 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=xsF+vnHa/8cFh6oxrPVKsyuMm7DOJ2XE9MKSOl0XahM=; b=j3otTVLV4EMvpIvISj546TTusm1JzE7DKuM0LU8BTW74N0Wc0xUSIJf4hRFwLwAriO nc1meRiLuIHiw5IlSYnTgzzNyAB4J0u/zTts+2yt5sWV5/F4n+1vAgEba9tydbdVXBcA PpbX53vNQ0fszHm6R6KtlRtV/pJPPXrCZs6LzqYBOnFSOrPlfc52UGjIctcnYq13VpQj Fto3pEW3Z07a3FYqH8HlGpVJY68QCUA2/8EPJrLcIrsSPyO8AyDOBE1sudWezYckNYga 362FMd1NNOQ2u5sFjxrWDNyLo/Pp+u/l9o2g2pdA5U2bZjbInVfC0qwaaAov5Yry+VNq OMeg== X-Forwarded-Encrypted: i=1; AJvYcCUHjWyRuyqyxy/Z8obYnqtnMOrIvKwDthUtcTlDsO3xOJvU1klP/TglhBqMbMWWOruRTjbRoW7frtQ8yLp8+SVPUSHMWvE1l7F2KPHklHWWmVhWJ5RqpKNDlydxTzWRKplH X-Gm-Message-State: AOJu0YyMGG2zDlMwOITbQPyd+AvAYZ1hes98BmAzgVZVSOPafjL1p+yf vHenW0FVx1/WFoqbLfYeNPV6qK85kOieJdO8I4echqhbaqqdJUOuFCAKL9pUKlrIq9PvwoBaP/+ hz/ve9bDsHYPNtmZveYcISWx3wls= X-Received: by 2002:a17:906:3759:b0:a58:9b82:93bf with SMTP id e25-20020a170906375900b00a589b8293bfmr808296ejc.61.1713962287334; Wed, 24 Apr 2024 05:38:07 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240423233622.1494708-1-florian.fainelli@broadcom.com> <20240423233622.1494708-4-florian.fainelli@broadcom.com> <95ed17d4-06e5-4ed2-add1-a2bf14e29dd0@broadcom.com> In-Reply-To: <95ed17d4-06e5-4ed2-add1-a2bf14e29dd0@broadcom.com> From: Andy Shevchenko Date: Wed, 24 Apr 2024 15:37:30 +0300 Message-ID: Subject: Re: [PATCH 3/4] mfd: intel_quark_i2c_gpio: Utilize i2c-designware.h To: Florian Fainelli Cc: linux-kernel@vger.kernel.org, Jarkko Nikula , Andy Shevchenko , Mika Westerberg , Jan Dabros , Andi Shyti , Lee Jones , Jiawen Wu , Mengyuan Lou , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maciej Fijalkowski , Andrew Lunn , Duanqiang Wen , "open list:SYNOPSYS DESIGNWARE I2C DRIVER" , "open list:WANGXUN ETHERNET DRIVER" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Apr 24, 2024 at 4:28=E2=80=AFAM Florian Fainelli wrote: > On 4/23/2024 5:01 PM, Andy Shevchenko wrote: > > Tue, Apr 23, 2024 at 04:36:21PM -0700, Florian Fainelli kirjoitti: > >> Rather than open code the i2c_designware string, utilize the newly > >> defined constant in i2c-designware.h. .. > >> -#define INTEL_QUARK_I2C_CONTROLLER_CLK "i2c_designware.0" > >> +#define INTEL_QUARK_I2C_CONTROLLER_CLK I2C_DESIGNWARE_NAME ".0" > > > > So, if you build a module separately for older version of the kernel (a= ssuming > > it allows you to modprobe), this won't work anymore. > > Sorry not following, was that comment supposed to be for patch #1 where > I changed the i2c-designware-pci to i2c_designware-pci? modprobe > recognizes both - and _ as interchangeable BTW. I'm talking about something different. Let's assume you have a running kernel (w.o. signature or version requirement for the modules), then you have a new patch on top of it and then for an unknown reason you changed. e.g., designware to DW in that definition. The newly built module may not be loaded on the running kernel. Also note, here is the instance name and not an ID in use. The replacement is wrong semantically. --=20 With Best Regards, Andy Shevchenko