Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752719AbcCARC3 (ORCPT ); Tue, 1 Mar 2016 12:02:29 -0500 Received: from mail-by2on0073.outbound.protection.outlook.com ([207.46.100.73]:32413 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752414AbcCARC1 (ORCPT ); Tue, 1 Mar 2016 12:02:27 -0500 Authentication-Results: cavium.com; dkim=none (message not signed) header.d=none;cavium.com; dmarc=none action=none header.from=caviumnetworks.com; Message-ID: <56D5CB1D.7010104@caviumnetworks.com> Date: Tue, 1 Mar 2016 09:02:21 -0800 From: David Daney User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: Jan Glauber CC: Wolfram Sang , , Subject: Re: [PATCH] i2c-thunderx: fix compile error for x86_64 References: <25e8960abe506539a230db6d31ab75e7195752b8.1456752497.git.jglauber@cavium.com> <1456840398-9275-1-git-send-email-jglauber@cavium.com> In-Reply-To: <1456840398-9275-1-git-send-email-jglauber@cavium.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [64.2.3.194] X-ClientProxiedBy: SN1PR0701CA0080.namprd07.prod.outlook.com (25.163.126.48) To CY1PR07MB2136.namprd07.prod.outlook.com (25.164.112.14) X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB2136;2:1MuOT4VLfFU5vQvEBTCnnuaMtQdpZqBruUicjU0TSBwFEoWHDBOHs4To51SkJzqoqFfQSXDLe5e5j1Yuzaf4F+BN/WO7HublRnurBSLCIhKrLeQXMTPocsBnEVUhlbdX+6+iUhniKBM5Is5H4HwmAQ==;3:1ebXoLfesx/6fSZvLBC0bceq4qwrVKc6tHIzGCnYME1963Z4fGnTu4pDzViHJGP8O57kfVoM0eJrjOcwjv2215MagfuLXpdC0lJzu0qQQGa5TDuRwxj0q7FxL1WANVyW;25:SLQYGTfoGhRqFtQ6BLcfPj6I2etL+0ci4IM3lDTkZtS/rd2aI3w4ScTimZdH7PJCIZV4bBbpAgqhoer6HqQKDDzmvFW2sjpv34h7EULIq21TklscS89EXtT2D4tBk3rVy7z4ePn0OnBMYZKA7NSxQqG7gYghdq3zYwAUhmCddW1Tcvws+ZPkYLCfYE8cXDZ2xVtUcwl0a0S9wa0ENjQcu/aq7FyDOfuXqbMeCrKUS8ooj7vsjRGoevS0RVFH6fFaQlDy8/vIp++n86rxpR0r852p4mBrMpHEns051OH5f0tVWss9rRvDr3H6O9xw7y13d7DOibQv9SXN2zexwOR/xw== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR07MB2136; X-MS-Office365-Filtering-Correlation-Id: 26c7c16d-40c0-448a-1d75-08d341f342f7 X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB2136;20:iO7n6z6p3PQSTL4K0wNu4iug2s9oUNuxsuERuLYE5kARAUt7TlA4LCmKAGjiFqFt7FbYgC2f9In7Bi7C54DUHeDsKFJrzNzHGa1PTCqGRCXpLvxoHTbv5IRyAyEcNckm1oLYZspexz1GU+Hv1gXLSfdiEEXpBaEtPB+NurDctnU8NWuKbsFy0iRObrU99mkwHDAS69pTmfILuU7+rgZej8Gjh4jcXvN9SaxiHsIX5h3+caGKe4g0jr52OWA7OWXLNGefoDhdU8ZChW7s/CzUj6z43UDi//C4Kwt+ZRVFSf2JS4tTDDyZuNw6zIqr0XqEg/F7rNWfkDrRlYc/KK2hXiQdWRH8CjWmvhSZ62mRrRoGuP5EAwlDV0cFn8Pefqfnse9G1WPWkpwxrJvPOPMhHmZtKsPsoMDWI9GrclDC+DQWHnQZNUZlL7h8lY1Kmkqfr334gBdsis82epG2dq1edtuy1aVcpl5mP9SHkgmDHC6VA6aGlQpebuRUL5VBouqtgbQEb8xOA8UpaE5CnJnXVz4sIKxPmtYBglxeU+7yXOXNK+XGBvB6u/vKv4KZhEed/ukwD+EBuUwkjvnD18bS8NVb2elj9ItduHRFieEvVcw= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001);SRVR:CY1PR07MB2136;BCL:0;PCL:0;RULEID:;SRVR:CY1PR07MB2136; X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB2136;4:isCKGPOjeW11FqhYdDtdfSX0LcO1hppIpgYERcIPWTPnSWk6m6OtAzF8GXh1m2xugZJ3NwmxLdaAuYqVeTYq1DanKjG8EOvq4Fe4H6MYMJzvJQaXM9WXFx67d2PBk4/2gNyyBU+kglcE1eDdNQrCPLjZgTb4n62H1sPx/WVljURb9Qvk/u5MGPe0AKxyHfL2NgwdGQmWVWEMGM2cV4BluUMVJgIc/jOzQsn8ogMwZN8mAjHn/r8VAXnmMF8tDdbAYtMJKaNqgrycXHF/mrHFBvImKhN6BfuSM53vBqFl1UxGdk0wETwJ2iblB7JYkU/Zjgx+k5ZZM2/Gyx+KCDPhbt2XKvXpVY4XLwxlL9z67XdHvNGUELaEj6eomoPc5Lbu X-Forefront-PRVS: 086831DFB4 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(479174004)(377454003)(164054003)(24454002)(2906002)(230700001)(3846002)(19580395003)(42186005)(33656002)(586003)(64126003)(6116002)(77096005)(4326007)(53416004)(4001350100001)(47776003)(23756003)(110136002)(66066001)(19580405001)(83506001)(5001960100004)(81156009)(5008740100001)(36756003)(65956001)(1096002)(87266999)(87976001)(189998001)(40100003)(50986999)(122386002)(2950100001)(54356999)(65806001)(65816999)(76176999)(50466002)(92566002);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR07MB2136;H:dl.caveonetworks.com;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?iso-8859-1?Q?1;CY1PR07MB2136;23:NTnpylskf2A9fO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ft9gmD+GdU1qZ0HPcC0nchXtMH38wX3ykUCzJfhbNrM/aG1PQ2yiZBG/NP?= =?iso-8859-1?Q?uUy3TAxUJ55O5zoAXSqIqez3mB6gMFd56Cv4sdanUXZQwTRGHaKyULumEp?= =?iso-8859-1?Q?WaW57ls+dgoiPsMNTCQxI9Y93QiYDUgurTLRmckczUqqxMoS9locCOl9SP?= =?iso-8859-1?Q?nLpHZf6CaXNK0U3ep3R4njfBefzGF/DP9zyVfTkAaHrF6Mwni7vxVhlije?= =?iso-8859-1?Q?b2+YEmHr8b23u0bsr7a7BgakofPriJqCua2SG7+YeYGI9jL1EGquQ68qQ8?= =?iso-8859-1?Q?4CRY64BDjtg9AVi3Idz/q+Qd3ANo5WLGA=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB2136;5:4OuHWHVoGZRi4CQKY8uuiZobVgbfhHx5edq53FjySWFHmtI8bUZN0/LF5t5EL0tGjcDayTLIrYJ00NExiws3uhy1qF8jIZE0jxXlMjTFaCfq5XrjywhhUFx6buavQnPdhUsck8AHO6JZ2pDS3Piudw==;24:h6V39aSWDRi6aaNKeRnxgvIHu1eNm76mxeiU2paBSELw8YsXnzVzW/XtEVwjAm4I58x1Cu5y+NUsIdtNQGd5gQfSLWX+alIuae6ARxOc3qM= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Mar 2016 17:02:24.1502 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR07MB2136 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1202 Lines: 40 On 03/01/2016 05:53 AM, Jan Glauber wrote: > The i2c-thunderx driver only depends on 64BIT and PCI, > because there is no reason to limit it to ARM64. > > Adjusting the check in the header file that selects Octeon > or ThunderX values to check for CONFIG_I2C_THUNDERX > instead of CONFIG_ARCH_THUNDER fixes the compile error > on x86_64. > > Signed-off-by: Jan Glauber Yes, CONFIG_ARCH_THUNDER must die wherever it is encountered. Acked-by: David Daney That said, since the previous patch set didn't build under some configurations, can you fold this in, and submit a v2 that is complete and stand alone? Thanks, David Daney > --- > drivers/i2c/busses/i2c-cavium.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/i2c/busses/i2c-cavium.h b/drivers/i2c/busses/i2c-cavium.h > index 8357997..c7398f4 100644 > --- a/drivers/i2c/busses/i2c-cavium.h > +++ b/drivers/i2c/busses/i2c-cavium.h > @@ -8,7 +8,7 @@ > #include > > /* Register offsets */ > -#ifdef CONFIG_ARCH_THUNDER > +#ifdef CONFIG_I2C_THUNDERX > #define SW_TWSI 0x1000 > #define TWSI_INT 0x1010 > #define SW_TWSI_EXT 0x1018 >