From patchwork Fri Dec 1 05:51:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 172267 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp902565vqy; Thu, 30 Nov 2023 21:52:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IFeRQ14LrXP6KuUW7AkGODbO2S6222BRUnRqPjLGwAJi2XSyPKnaOpFm7do6WO1Ew0lSKWv X-Received: by 2002:a17:902:b205:b0:1cf:fc91:e4d0 with SMTP id t5-20020a170902b20500b001cffc91e4d0mr13174599plr.16.1701409937706; Thu, 30 Nov 2023 21:52:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701409937; cv=none; d=google.com; s=arc-20160816; b=eVxlTOvky7ctR/r4faolmL/ambCka8RYR2/4oVafYZVgYFa4CeZXTHsRz5wy7z2iC5 HnzWLN5iPaJxBadYqPTm6+72Fp9qP+kJzSh0aytGi0EsdrDXDShgVsehOmj+CmGMbFhk SCrIcahqpo5DGM2wIYkF+ugQp3KGb+ocSmokBzs/caJhPnIfbgIQV6HzKSZ3HXyGzRFH gFJhVnc2luoSQDuTrjxv2Scp80x48H9R2Q+1PB1/qq7HBC1fHU5X0FnFHWEvj2vLfW4j bLQhVCbLHqZ7+LRVKNfnG4oq99Jql+eOTct7IYcL+eMLt9EfjrO3GU1j0PPZi1VbigKU 8ukw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=fEQIY/PD10m5ObiwbCiBSgJ8pMG7R2h3xIOqhN7l6kY=; fh=gFbfgk5hQATmRD79vpULGiym697ma0eawBEUIbHgR40=; b=nRu0j1iJf2R+xDjIhXx2zVqpVKDuok/ZN1Fywla3n8uC9Cj5hpBfCjPydqVuZcOPwS VCVWLmavo9c52/4AuwV8/QOOYjUUFyE5tjvuMQtxm1jhi9GxbygL7WKA/Kxbgz/vZBy0 vyEo/OiTKY8lwcSyaQUsDZt00elhcbqzwvBnuF/tnFD8jWDsky2KNVUpe+gsYQW1OgkA bo3b0e2fy+marb+Fyb6S3q1n/Xj/vAOZx7J0VN0ln6I0y7sR1zcdASupe4eq0iQvixTy 2pTx6U3NoCenBc1FiNRMjB4uvTEboBbYzAYEFl/3k0PO5Ci5n4P4vSxbQ/fr+WMOu+JM 19Ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=J3Y6GAJ8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id e26-20020a65679a000000b005c2423377a8si2688613pgr.759.2023.11.30.21.52.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 21:52:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=J3Y6GAJ8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 11E4980FCBCD; Thu, 30 Nov 2023 21:52:15 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377544AbjLAFwA (ORCPT + 99 others); Fri, 1 Dec 2023 00:52:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377566AbjLAFv6 (ORCPT ); Fri, 1 Dec 2023 00:51:58 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 294921734 for ; Thu, 30 Nov 2023 21:52:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=fEQIY/PD10m5ObiwbCiBSgJ8pMG7R2h3xIOqhN7l6kY=; b=J3Y6GAJ8b2oKbSPrhjOIfHQA5z ImDO/K6arjtQ4MeyJZbODC2wIvwGdwobigg0d7koHXiI285IKzDXOvvLAEiUtbz73HQksa4L9dz1a rbud8kJONWbL6jLjU5+BLFPn4basQoDFn77APeRKK3chzNkFZfL+iwOALbnb8FrJE9/vS5g4EYynI hNCDFecI41pWNIzOrke/THoFn4XNPUb1zQfUEtVIVweqtOBzqrhW1Q9a3CoAnGYhmTV5Bcr9U7pq1 AtRD4rDoaTIorlge6PNb7qc0VYFbwQWEQwQ4rciHSmTZOSuCmYTaWTazOQYQTXbLz3dKcyLKi1BcS P+V9ZSEA==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1r8wRU-00CiyY-06; Fri, 01 Dec 2023 05:52:00 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , kernel test robot , Alistair Popple , Benjamin Herrenschmidt , linuxppc-dev@lists.ozlabs.org, Michael Ellerman Subject: [PATCH] powerpc/44x: select I2C for CURRITUCK Date: Thu, 30 Nov 2023 21:51:59 -0800 Message-ID: <20231201055159.8371-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 30 Nov 2023 21:52:15 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784057626920298590 X-GMAIL-MSGID: 1784057626920298590 Fix build errors when CURRITUCK=y and I2C is not builtin (=m or is not set). Fixes these build errors: powerpc-linux-ld: arch/powerpc/platforms/44x/ppc476.o: in function `avr_halt_system': ppc476.c:(.text+0x58): undefined reference to `i2c_smbus_write_byte_data' powerpc-linux-ld: arch/powerpc/platforms/44x/ppc476.o: in function `ppc47x_device_probe': ppc476.c:(.init.text+0x18): undefined reference to `i2c_register_driver' Fixes: 2a2c74b2efcb ("IBM Akebono: Add the Akebono platform") Signed-off-by: Randy Dunlap Reported-by: kernel test robot Closes: lore.kernel.org/r/202312010820.cmdwF5X9-lkp@intel.com Cc: Alistair Popple Cc: Benjamin Herrenschmidt Cc: linuxppc-dev@lists.ozlabs.org Cc: Michael Ellerman --- arch/powerpc/platforms/44x/Kconfig | 1 + 1 file changed, 1 insertion(+) diff -- a/arch/powerpc/platforms/44x/Kconfig b/arch/powerpc/platforms/44x/Kconfig --- a/arch/powerpc/platforms/44x/Kconfig +++ b/arch/powerpc/platforms/44x/Kconfig @@ -173,6 +173,7 @@ config ISS4xx config CURRITUCK bool "IBM Currituck (476fpe) Support" depends on PPC_47x + select I2C select SWIOTLB select 476FPE select FORCE_PCI