Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp488906lqc; Fri, 8 Mar 2024 03:42:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWFC41LO0sQizzOkxD4bl7mPNpfSwxNmDLNekisIG4MfG4B8cES7xqUBbNWLOHE4cwzzwvl1TFAWXYPPn80Gf7l0MPodr1MBmpKPVtpxg== X-Google-Smtp-Source: AGHT+IGQnnTsO5OVcd/UmqwRJjD0oZP5z+3U69YJQFiaFOf2ncVW2mzMgdXn/r/hKpBR07liD9xh X-Received: by 2002:a05:6a21:9998:b0:1a1:69bf:1f96 with SMTP id ve24-20020a056a21999800b001a169bf1f96mr7083568pzb.40.1709898147572; Fri, 08 Mar 2024 03:42:27 -0800 (PST) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id v9-20020a056a00148900b006e61ffc142bsi9821594pfu.10.2024.03.08.03.42.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 03:42:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96944-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@renesas.com header.s=selector1 header.b=WktgQtx7; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-96944-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96944-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=renesas.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 76A59B210E3 for ; Fri, 8 Mar 2024 11:42:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ED2885646D; Fri, 8 Mar 2024 11:41:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="WktgQtx7" Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2046.outbound.protection.outlook.com [40.107.113.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A500756465; Fri, 8 Mar 2024 11:41:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.113.46 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709898107; cv=fail; b=OyO/G3klrB+1I3sWMPaFewegTYSl/yxfFl3/zkXn8ZvKuVSG6zzbKyRB4w1OObcCfVg0PrEHaCNLjpTqiq9DwZ4FGB067FjvcW1cmfDeS9sTGp2zRqWLqRqw9OBop7Pk7P1kUXDhlkCUN928DfuYm5s7GNz5bkTzj8le04Dw48o= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709898107; c=relaxed/simple; bh=OL6jZ5Z6UjGPI2I1j2nLQRvjUIxi7KbWVG+xHgJ3rOA=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=Fts2YmE6XOElBG1/atA2VETeYam6CwQ/ktTHSebKBp6kWwxvL6qlh1Fc7yiCc1j97wA0rIx3T1G7OpXNBJLiLilzv5hUcltiJXbsGMEe6z0egtun7iwBaIDUTiz6v8PVLflO9Bo9E4HgmuLsuFDTca9k/2fxrY2Z0G3ZIT6EBy4= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b=WktgQtx7; arc=fail smtp.client-ip=40.107.113.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eBIASYBQC2Vi+aT+8N4ZRHHX8rsDcP+WzfUJJ/jklXDNVfZ/3HY23smh2mwzQ+qV5qZrWAkxeb/fB26sLPxLVC1Kk+YSIuZoKpELWwDA6SnALrk2sRt0LuPjzIxpVdX3ceT/q6/gZJ9a7nrnDwdqNhF2hXtjD6t7qJ3FrW+OzUsTtViv+5SVlnYnc+65D/AHHFvPRFErSKu+Wb+no4gWjAs+hn/cbYR3I3T3GRBJrsRXCJJR0naWx6tMPs+JJGOVYHv8wNmqpg29UodWoi+MijfZnWus4NrH//gR09AivZg1zstDYcdg+NwrCjpmohcMG39K6fdNooP9rbRkg1ZL5g== 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=OL6jZ5Z6UjGPI2I1j2nLQRvjUIxi7KbWVG+xHgJ3rOA=; b=JuDVcIzmJeLlBe/3j/B9ZIwjrbklGfkuWN/eClOrUmYjteyRg5JD8ZLX8TSPVgKOa2ibmPzna7u62rJGxXyF1dmW/5girj1dA71XlhLbK3x4tRKOkpD8sV9XATaXQEo1HtiP0Vxa79Z6GoryqVZHI7DGW+73qJBBsoCn5vc43C52DyYIc7fMJAsDk3nSOWHyu3p3r6Lcdpfh584pqipOiGUR8ONFA6wnvTbtkOpQu0vawvNSHzHWL9tuD1W99fFAG77FxRKgvozD3C9njkEkJabcN0U8zl98ACMdByLdu1aum0dfxBjM5+Cn+YFChXVqt9G9GsSN86xLMau4i1jWdg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OL6jZ5Z6UjGPI2I1j2nLQRvjUIxi7KbWVG+xHgJ3rOA=; b=WktgQtx7CtBNloByCttEV8GsLNXlSYlc7e1SRyQbfMT/AWgoZV8/TBMjf529W4caQfvtzITeKXTAoCNvrx2X7Hl+BZsbCKcmMJFlKI5/pcMv7G7M6IwxH7L0Q7jIly8TdvzNoqLQOuLSWiA8TpPqpUcYqvItNeJeKWEnWl1fiMM= Received: from TYCPR01MB11040.jpnprd01.prod.outlook.com (2603:1096:400:3a7::6) by TYWPR01MB10774.jpnprd01.prod.outlook.com (2603:1096:400:2a6::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.26; Fri, 8 Mar 2024 11:41:40 +0000 Received: from TYCPR01MB11040.jpnprd01.prod.outlook.com ([fe80::f9d2:106:9dc3:224f]) by TYCPR01MB11040.jpnprd01.prod.outlook.com ([fe80::f9d2:106:9dc3:224f%3]) with mapi id 15.20.7362.029; Fri, 8 Mar 2024 11:41:40 +0000 From: Yoshihiro Shimoda To: Manivannan Sadhasivam , Jingoo Han , Gustavo Pimentel , Lorenzo Pieralisi , =?utf-8?B?S3J6eXN6dG9mIFdpbGN6ecWEc2tp?= , Rob Herring , Bjorn Helgaas , Marek Vasut , Kishon Vijay Abraham I CC: Serge Semin , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-renesas-soc@vger.kernel.org" , "linux-arm-msm@vger.kernel.org" , "mhi@lists.linux.dev" , Siddharth Vadapalli , Frank Li Subject: RE: [PATCH v4 1/5] PCI: dwc: Refactor dw_pcie_edma_find_chip() API Thread-Topic: [PATCH v4 1/5] PCI: dwc: Refactor dw_pcie_edma_find_chip() API Thread-Index: AQHab7Atmh7ui1YNvkGFUQQdigscobEttr5A Date: Fri, 8 Mar 2024 11:41:40 +0000 Message-ID: References: <20240306-dw-hdma-v4-0-9fed506e95be@linaro.org> <20240306-dw-hdma-v4-1-9fed506e95be@linaro.org> In-Reply-To: <20240306-dw-hdma-v4-1-9fed506e95be@linaro.org> Accept-Language: ja-JP, en-US Content-Language: ja-JP X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: TYCPR01MB11040:EE_|TYWPR01MB10774:EE_ x-ms-office365-filtering-correlation-id: d9ea5c2e-e7e1-48af-f75e-08dc3f64b8a4 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: sv/14kbcqmXi2T+37JOk8gsmqB+e0vTS6gbKpN4PpvvCqeIcZaX3vI7HGnWuxbkcVtBLZCskHaCIMZ00kxESEG4QxHdezGUY03DjcNTFGHaDQe5546B5ecTKJ7zBIHUrOF5Tg8qLqGUfVJ/xYz/OyJ67LY0+C1HJPfQyJYHEHzRCRBRaW4IPJcfevFH1tAenr4UEgVDEIlP77xi9QLmAtnlrDCO5Hoq9j/+19AoGnS59BW2RoUyTb9ptFA9+19RXBihqz+AAjtiVfOFF5eF4iLifmNcFBxigClPZaD6aXCwcYNTqKerFeT88ut3bJYthQ7RcFyVI4ZjwBuBZWPkgOhNSIXcKNlVAM6oV1cRENw/Nq80g3NXaBvmr9ZTqWREv78Z1fKKUvgYjKZW+cCG0xt3+W0LVWIeaIzbFzg9ytILDpfJIo/QwCU341fOWzW8ibUE8WiCyGjWGioiRkfqrZb+gF3iBZkiiVZgaMc8Yd3aUMvMOJIHt34S5inZECVdDAonV+CzgxSQ0wzI3ZAA6NabBI5JtqTkCygmZrg64dH0mnsYKWit3SOEtDjWX1aK46yL9065NolInkolGYy5GhVXaapR91Ed/AeydcVKWe0wWImQ4YaIHCPXA9XSw4e4QRMp8OQJeMG/gAp7FN6Pmx7vBVa9g6Qt6O1ryufKk5QPntqowYSc+cboaAj4Q8v4/oLfAGVJArZZrN5spszqBpA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:ja;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYCPR01MB11040.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(376005)(7416005)(38070700009);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?N3ZXb2JLZllUN1Z6Zng0TThJd251RGt5SjBHSk5nMHFQSXIwTkRrZVFMNHAy?= =?utf-8?B?RG1FTW9laVQ3cnVpclRmTTZVVWc2cWJMb3k5NmFWYjJFV2N4aXRmc3hJZWE0?= =?utf-8?B?U0gzK1dZSklTVExaWnF3Q2NseDljYUdzckpZTGRxemlTZ01pYnR2VVhhTVJC?= =?utf-8?B?Zml2eCttZ3k4bmROSEx3L05oQVMxbTVnb3hmbE5HZVVUMEJIOGhUcEJxekQ4?= =?utf-8?B?eCtMWlBtU011dUUxUnpUUVVxMjJhZkpHOE56dG1hOXJaeGpITVNjckdoV3BG?= =?utf-8?B?bERRRjlRVkRXRzBsejJocHkyZzdmNThISWZFVXBzS0s5NE05U0tLbWZiVVhz?= =?utf-8?B?aVJMWU1vY3dHNjd2YUtLZ2tVZ0VhVDQ1QlNua0MvNDlIUjhld25QSklvdEwx?= =?utf-8?B?Z0NUd3ZjUzg4aVJtOEFmcko3VGoyL2tYNjU3eGlCYjBLeTRRbW9QT2RGYWUv?= =?utf-8?B?dERwWW9zajhMSmZVNkNrR1QzOVRzeTN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1NWWThZejl6d2dNUFlsR2VyRDJEbUFzVld1bi9N?= =?utf-8?B?T3B3Yy9wSDB5elpwYUVLbXZQUGw0VThnVmJmODRZRS9GN2phNnkveG93cU1U?= =?utf-8?B?dkkzMnFKV0YzUDNKS0VjVDRHQWh4SHNha3Y1cVVxMk05RzJDakQzR1MrMU5L?= =?utf-8?B?MDdlWlZkV2hKSGZRQjR0QTlvV0YvVURISUxseVdsdlp4VFA2MlBOVGlWYnR1?= =?utf-8?B?cEFqZUVzaFNWTnpkcnBxZFk0VGoxSVJ0UFRsQ3B6UDVXcjUwVFBsaEMreTNy?= =?utf-8?B?WDhudFVKUnhKcUFSeGFxSVVjN0p5Z2NyZWNieTl6cWYySDdtekwwWWZteHc3?= =?utf-8?B?TlM4aWxoNEdTUVIyNDJXRzdiUk9oSU5sQytaZVE1NG5QWFhUcDNvL3FqNDE2?= =?utf-8?B?QlBrSWdneTdMV0RUNnAzYUNmZWh3a2dVNUJNOTBMYVNCQU5yNWNBOGQ5KzRo?= =?utf-8?B?YUV1eWNVQWRsTjYrVnFuZ2FnMDdoOHJyeGlKL2Q0eTNLUEV4Qkdya2dmZzJs?= =?utf-8?B?N1ZoWlphbE91N0lCOUd4SVdkZHI3ZVQ5ZFFleVloRnJjQjJrUUxwUlJuNENR?= =?utf-8?B?WUU3V0s0Y2N0V0NQQmt3TzBKaXJPQ0F4TkswNXlxQkdpNGJDdW5VNzAyRWts?= =?utf-8?B?djZpU04yUWsvVVFpNEhKdnZFV3h1bXEwM1hhSDBkSDlSYjcvMG8wQmZ0VUdQ?= =?utf-8?B?dElhNm1NbE9FZGFTMldYZXlvQU1KZzFjZVNzeDJ2UlJOUmdiQmlDTTFDL0xL?= =?utf-8?B?RFE9PQ==?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB11040.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d9ea5c2e-e7e1-48af-f75e-08dc3f64b8a4 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Mar 2024 11:41:40.6471 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: yMf0mZTH1QPWLdU26ft8FawXjEae++s6I9yXg8xcGOe3BirDmJnRD/UE/rccbAi0kMOe37DrpPICYqhpOGYnxY5EW6oZZcarD6HC76Rh4IJ8q/E+1nBFUS0vHuN4n+t7 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB10774 SGVsbG8gTWFuaXZhbm5hbiwNCg0KPiBGcm9tOiBNYW5pdmFubmFuIFNhZGhhc2l2YW0sIFNlbnQ6 IFdlZG5lc2RheSwgTWFyY2ggNiwgMjAyNCA3OjIyIFBNDQo+IA0KPiBJbiBvcmRlciB0byBhZGQg c3VwcG9ydCBmb3IgSHlwZXIgRE1BIChIRE1BKSwgbGV0J3MgcmVmYWN0b3IgdGhlIGV4aXN0aW5n DQo+IGR3X3BjaWVfZWRtYV9maW5kX2NoaXAoKSBBUEkgYnkgbW92aW5nIHRoZSBjb21tb24gY29k ZSB0byBzZXBhcmF0ZQ0KPiBmdW5jdGlvbnMuDQo+IA0KPiBObyBmdW5jdGlvbmFsIGNoYW5nZS4N Cj4gDQo+IFN1Z2dlc3RlZC1ieTogU2VyZ2UgU2VtaW4gPGZhbmNlci5sYW5jZXJAZ21haWwuY29t Pg0KPiBSZXZpZXdlZC1ieTogU2lkZGhhcnRoIFZhZGFwYWxsaSA8cy12YWRhcGFsbGlAdGkuY29t Pg0KPiBSZXZpZXdlZC1ieTogRnJhbmsgTGkgPEZyYW5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