Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp592842iog; Wed, 29 Jun 2022 06:32:55 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uz5ajGAzw4C9+OV17vA+lTOattU7T0AR/2+U7sC+QqHUCmn77QBbjenj1nyVSlIwROci6J X-Received: by 2002:a05:6402:c95:b0:435:8113:1276 with SMTP id cm21-20020a0564020c9500b0043581131276mr4318718edb.193.1656509575700; Wed, 29 Jun 2022 06:32:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1656509575; cv=pass; d=google.com; s=arc-20160816; b=ApzirggSXJbHxyo8OFvLeVtmXkqhUmQsv9a4F45d8qyS9JN6PmVDlgWhfGy6zTCNWv SQWon4llcBT/idF7cfzjAPDzZTo6YROIuUSEQIaN7civ68Gvu1I2kFVA/EIuCrr0L0W3 vThIHvojxbQiJVsX2ph12YyfRUuyPce+Fo9j/6HPI6vKtlxQbngA8A+tBm0B+vQ/NzeJ TEwVWEJenTe++z5GY1PVqmQ9bFmUODfGi1B4GfEZTP/H7GW1WN40LdjAbFIWuiGYGJFP esQvJ0/6+TR18ZdXVfJTHs01fTeCgGR1Qy19WstehY7aMVhshE4qliohdoQTdrGPGvBS lACg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=IVPMPKGY9YALVzy3/Fuf92Yn/eT1QDdy2XEyZ/avEek=; b=JUJOdy/vsHLP1giyZPGRSFrVjc93ZoDKUgSvTg0XtJdXW0XTXBKoRX86R0EQULm7U2 BCQcW0E4HUpGnj8NOpuIk5JK7b0fpsdJ/23klxPA6uor5Z/eHLtXsUu7OjkCXMA8tph9 ziUP0BsXGE2soMdJetZIc3pKrcnomr3z2f8z+zw6UkbQV1ABGAFe+ZjPZymUEHOrZ+QI gOga/GEYrRowsQ6Zn82LRA+55NaIEW9XAlXB7gYEPc27Wpeg90DY+9pch2QnoYcf6pwg voFP7LUUfuxSbPxDypFk/qieqA2pZ9Fc/UJ4PN1NtUglJ0Pen+quP9+P3HSMejE8N1Ea tt5A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nokia.onmicrosoft.com header.s=selector1-nokia-onmicrosoft-com header.b=Dm6OGJiZ; arc=pass (i=1 spf=pass spfdomain=nokia.com dkim=pass dkdomain=nokia.com dmarc=pass fromdomain=nokia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nokia.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds8-20020a170907724800b006ff1a60c3ebsi605938ejc.821.2022.06.29.06.32.24; Wed, 29 Jun 2022 06:32:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nokia.onmicrosoft.com header.s=selector1-nokia-onmicrosoft-com header.b=Dm6OGJiZ; arc=pass (i=1 spf=pass spfdomain=nokia.com dkim=pass dkdomain=nokia.com dmarc=pass fromdomain=nokia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nokia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233779AbiF2NOE (ORCPT + 99 others); Wed, 29 Jun 2022 09:14:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233762AbiF2NOA (ORCPT ); Wed, 29 Jun 2022 09:14:00 -0400 Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50101.outbound.protection.outlook.com [40.107.5.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23AA519C22; Wed, 29 Jun 2022 06:13:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c3l0dLxi2Ox6gpWYY7fr7fasGIVgSbCKteij3RPGTZ9BNqB81NavCpC7NHjsY0Q2M8+pu2O2dPnIxFAMuhzJn77F9s/dUaC5is7vyMO9QiTgEuVYN8FmdVVEohzFI3YOdXdezwA5hagumcqFETMysgRBFBPk3N5sZLXvlFGgK9JOIsb9MXB5jaiMRAYOhh9W+oxU2nA2LCuHws+3a5PYmO/jDf1pA26l9bNmVYP1u25sZszmakTMwB5yojF57fhHtCaPfSFfgQzosV8EkuHnjzcFY52nDHdjZW8YqjDHQZVXIiZDXmI6v/aUYEiSHin9NfnTHhpCbmEFs3tLz2iyGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=IVPMPKGY9YALVzy3/Fuf92Yn/eT1QDdy2XEyZ/avEek=; b=jNWtu6ImvVknsEyIZjEgDk9peshoXKFGV56M1KSZzL6cMgRYBtlFTPuhAu3jsz227tAOLrPlzF74ofAo3f5jDndhzqWDG9QtG4/MAqCUHk3xz9qw04JEu7gBqcz+fyaqRCqbp0aAuynkQVbY5ebQmEcqckUihrsXyl0be2YWAX36sVueNPs3itbOHNJpZd5VxACg9S7yJyfhlPTMydUk+xxcXa+nitFbGngZzsOd2AGMcTeOm3i9cYpeGfTge2m6wEjcJTJgDMBoXLI+Mlg/RMEoJrYwJYkzodS1mfYutk5laGqdluoJJM8Ix0gYs0BYU+sy8EoQtjMv0I0PTHJh+A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nokia.com; dmarc=pass action=none header.from=nokia.com; dkim=pass header.d=nokia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IVPMPKGY9YALVzy3/Fuf92Yn/eT1QDdy2XEyZ/avEek=; b=Dm6OGJiZ+lSXOMIDqtCr2jGrUCe5pgyMtV64Xo8fB9kMgGWLGsd9DAjdM0dlYHXaq1YvtCePqMhbJYx0W1FPNH+p1KTPbGcXLx5XJDvCR44HWOcG3qT1L3nH2250kyJF3pluJvMcHxB9nmdS8CKdcNOQfSds3fjqz2jB+qquABw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nokia.com; Received: from DU2PR07MB8110.eurprd07.prod.outlook.com (2603:10a6:10:239::15) by AM8PR07MB7665.eurprd07.prod.outlook.com (2603:10a6:20b:247::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.11; Wed, 29 Jun 2022 13:13:50 +0000 Received: from DU2PR07MB8110.eurprd07.prod.outlook.com ([fe80::8885:ac49:4a47:2293]) by DU2PR07MB8110.eurprd07.prod.outlook.com ([fe80::8885:ac49:4a47:2293%9]) with mapi id 15.20.5395.014; Wed, 29 Jun 2022 13:13:50 +0000 Message-ID: <6a0df607-3d60-fd8d-54d1-3eb849d9c035@nokia.com> Date: Wed, 29 Jun 2022 15:13:46 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH 12/12] i2c: xiic: Correct the BNB interrupt enable sequence Content-Language: en-US To: Manikanta Guntupalli , michal.simek@xilinx.com, michal.simek@amd.com, linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, git@amd.com Cc: Srinivas Goud References: <1656072327-13628-1-git-send-email-manikanta.guntupalli@xilinx.com> <1656072327-13628-13-git-send-email-manikanta.guntupalli@xilinx.com> From: Krzysztof Adamski In-Reply-To: <1656072327-13628-13-git-send-email-manikanta.guntupalli@xilinx.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: HE1PR05CA0239.eurprd05.prod.outlook.com (2603:10a6:3:fb::15) To DU2PR07MB8110.eurprd07.prod.outlook.com (2603:10a6:10:239::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6a500a2e-e794-4349-1308-08da59d13513 X-MS-TrafficTypeDiagnostic: AM8PR07MB7665:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RsXS15lFSqT4Z60FMo6+tIMaYDyeT0sgXkePAiMgQ2vbJ/w/Wp6dcwv+2u8fddRcDrc6sR0XOFxT0zkO19YayZCE6HSClj6AUwD5fT6WaLGLHUkvKiK2ORi9RqP25+EUEN4r+xyvOwxvQj+nRjBhBqETBfuSYueLoZBc8gQcr/KZieV25lOTdZU5aJrBccwJBeb74KCiVntVnY18eXMi87WO4MNNkyimMqKE8pas6TdMYYer4PmfJvbUZmHvnjFDZZmbwhPxjKIsdJtbk0CQrgJI9lF57/7ZMLLYzLrencvoyh45FYza+ktki+qFBYm7/8eZtP9zwLcZ950z2h1A+qcrJWOR13kzOgnQ37yDrB7UrUQHYJqS0qdAjxnHSS6isDP8NV8YX/iDYwIjSkdiIZRJYy5RQq3pgaON6cX+kj/RSht8mxn/TcQaBRpYcNEk2RjD7kw8y4H6+ZvcCsCDpbVFJZpbxf43z8tQP1PSddCyFmsaCqHNrpO5cN4Ufw+oKo43SI9XG8bnZ476c2KCA0RJM2cGeW27APLH++JfSdcfn+sR7qRa+3+uzm48awUIK2ok7Qcl7cLXVkNuVfvIPFh4k2jP97cA0kJPIom5OnIOjEnAeRDnAwyEHl6wxGH33eBQOQRZrqxLH7Z/ByMOzYHH6wMLVjL4IAvwJDgHIcirBuzDoCsrxTIMOu/ZeDfPJ3JzvXHx2BZDorDxUDmkl1a1UXI2N3aOuti1hln2yGkeiF/AGWMHWemLEathzdeVp75cibVWalpDk1v+d0d1QCqYshhvHzamiLZzlIUMfDkudCYRA1x8GKOTLt1X6b/MQ0pocAkzSU3ECts1Op/AiA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU2PR07MB8110.eurprd07.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(366004)(346002)(136003)(39860400002)(396003)(376002)(2906002)(82960400001)(8936002)(4326008)(8676002)(316002)(31696002)(86362001)(38100700002)(66556008)(5660300002)(66946007)(44832011)(66476007)(2616005)(6666004)(186003)(41300700001)(6486002)(478600001)(26005)(6512007)(6506007)(83380400001)(36756003)(31686004)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Q3ZJUHp4SUF2aTJiZ0pkL2Z4cUZGZUtlbzNpcXQ5Qi9uOFdnZDBrR283dG43?= =?utf-8?B?eXZhRDR6M0RiQjQzbDN2ckJuU21kTmhFSVlZelNFaUM4bWFuOWNZK1IwNnFC?= =?utf-8?B?cVViUzYwTElDSHhPSmlBTThHNEl4TFpmV09sMUU3ZzhCWVRGb21sNVc3Zm16?= =?utf-8?B?K3RTa2NzZXMybkIrQi80SWI2Y1B0dmVWMTVBMnhnSVlDcEhpS0dFSVBwVFVB?= =?utf-8?B?elkzWjA2YVVnWGZvOEpKMk9lQ0Iwb284MjdvWVhsZ0NGOTZrck02YXlaZkht?= =?utf-8?B?V01paUVvYUVXQVl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WdCdUpPRXkvWi9wV0ZkUEM1?= =?utf-8?B?aHdpU05rWUFURjlialN1eWtzR0FVbC9BTXJKTmU2RHJpSysxQ2VtU2lPK3J0?= =?utf-8?B?Y3c9PQ==?= X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6a500a2e-e794-4349-1308-08da59d13513 X-MS-Exchange-CrossTenant-AuthSource: DU2PR07MB8110.eurprd07.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jun 2022 13:13:50.1856 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: X021zS5Y9Q5aA7244UV8dqHIP2/lPBSOi0v56K+emmwRTxrUtef26vwdvxLuoP1vqIm21Lxl/pBZXqjI/ThLAvunr/jRVK+16rE6ohx/Pwk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR07MB7665 X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,FORGED_SPF_HELO,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org W dniu 24.06.2022 o 14:05, Manikanta Guntupalli pisze: > From: Srinivas Goud > > With updated AXI IIC IP core(v2.1)there is change in IP behavior > in dynamic mode, where controller initiate read transfer on IIC > bus only after getting the value for the number of bytes to receive. > > In the existing xiic_start_recv function Bus Not Busy(BNB) > interrupt is enabled just after "slave address + start" > write to FIFO and before the "count + stop"write to FIFO. > Since IIC controller drives the start address of a transaction > on the bus only after it has received the byte count information > the above sequence can lead to spurious BNB interrupt in case > there is any delay after "slave address + start" write to FIFO. > > This is fixed by ensuring that BNB interrupt is enabled only > after "count + stop" has been written to FIFO. > > Signed-off-by: Srinivas Goud > Signed-off-by: Manikanta Guntupalli > --- [...] Does this spurious interrupt cause any trouble or it is just ignored and the only problem is unneeded extra CPU load? Krzysztof