Message ID | 1522135274-15396-1-git-send-email-saipavanboddu@gmail.com |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 409Vp70t19z9rxx for <incoming@patchwork.ozlabs.org>; Tue, 27 Mar 2018 23:34:53 +1100 (AEDT) Received: from localhost ([::1]:34069 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1f0noQ-0005VD-4e for incoming@patchwork.ozlabs.org; Tue, 27 Mar 2018 08:34:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40844) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <saipava@xhdsaipava40.localdomain>) id 1f0lJq-0002Vt-OR for qemu-devel@nongnu.org; Tue, 27 Mar 2018 05:55:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <saipava@xhdsaipava40.localdomain>) id 1f0lJm-0002hI-PS for qemu-devel@nongnu.org; Tue, 27 Mar 2018 05:55:06 -0400 Received: from mail-by2nam03on0087.outbound.protection.outlook.com ([104.47.42.87]:25348 helo=NAM03-BY2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <saipava@xhdsaipava40.localdomain>) id 1f0lJm-0002gb-Fp for qemu-devel@nongnu.org; Tue, 27 Mar 2018 05:55:02 -0400 Received: from BL0PR02CA0065.namprd02.prod.outlook.com (2603:10b6:207:3d::42) by DM5PR02MB2540.namprd02.prod.outlook.com (2603:10b6:3:3f::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.609.10; Tue, 27 Mar 2018 07:21:32 +0000 Received: from SN1NAM02FT064.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e44::202) by BL0PR02CA0065.outlook.office365.com (2603:10b6:207:3d::42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.609.10 via Frontend Transport; Tue, 27 Mar 2018 07:21:32 +0000 Authentication-Results: spf=none (sender IP is 149.199.60.100) smtp.mailfrom=xhdsaipava40.localdomain; nongnu.org; dkim=none (message not signed) header.d=none;nongnu.org; dmarc=fail action=none header.from=gmail.com; Received-SPF: None (protection.outlook.com: xhdsaipava40.localdomain does not designate permitted sender hosts) Received: from xsj-pvapsmtpgw02 (149.199.60.100) by SN1NAM02FT064.mail.protection.outlook.com (10.152.72.143) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.631.7 via Frontend Transport; Tue, 27 Mar 2018 07:21:32 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:47477 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from <saipava@xhdsaipava40.localdomain>) id 1f0ivD-0000bS-Om; Tue, 27 Mar 2018 00:21:31 -0700 Received: from [127.0.0.1] (helo=xsj-smtp-dlp1.xlnx.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from <saipava@xhdsaipava40.localdomain>) id 1f0iv8-0005zC-JN; Tue, 27 Mar 2018 00:21:26 -0700 Received: from xsj-pvapsmtp01 (smtp3.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id w2R7LPXd016694; Tue, 27 Mar 2018 00:21:25 -0700 Received: from [172.23.37.96] (helo=xhdsaipava40.localdomain) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from <saipava@xhdsaipava40.localdomain>) id 1f0iv7-0005yx-Fi; Tue, 27 Mar 2018 00:21:25 -0700 Received: by xhdsaipava40.localdomain (Postfix, from userid 14131) id F1C144C10B3; Tue, 27 Mar 2018 12:51:23 +0530 (IST) From: <saipavanboddu@gmail.com> To: Peter Crosthwaite <crosthwaite.peter@gmail.com>, Alistair Francis <alistair@alistair23.me>, Sai Pavan Boddu <sai.pavan.boddu@xilinx.com>, Peter Maydell <peter.maydell@linaro.org>, "Edgar E. Iglesias" <edgar.iglesias@xilinx.com> Date: Tue, 27 Mar 2018 12:51:12 +0530 Message-ID: <1522135274-15396-1-git-send-email-saipavanboddu@gmail.com> X-Mailer: git-send-email 2.7.4 X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23620.005 X-TM-AS-Result: No--0.838-7.0-31-1 X-imss-scan-details: No--0.838-7.0-31-1;No--0.838-5.0-31-1 X-TM-AS-User-Approved-Sender: No;No X-TM-AS-Result-Xfilter: Match text exemption rules:No X-EOPAttributedMessage: 0 X-Matching-Connectors: 131666088922083627; (f9e945fa-a09a-4caa-7158-08d2eb1d8c44); () X-Forefront-Antispam-Report: CIP:149.199.60.100; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(346002)(39380400002)(396003)(376002)(39860400002)(2970300002)(428003)(199004)(189003)(52956003)(336012)(90966002)(2616005)(103686004)(498600001)(4326008)(26005)(110136005)(42882007)(5660300001)(1857600001)(316002)(47776003)(61266001)(105586002)(356003)(86372001)(87572001)(2906002)(476003)(73392003)(36756003)(81156014)(6250500002)(8936002)(8676002)(59450400001)(2876002)(81166006)(42186006)(305945005)(6666003)(50226002)(50466002)(6266002)(55446002)(82202002)(76482006)(16586007)(63266004)(48376002)(51416003)(86152003)(486005)(406003)(106466001)(486005)(45356006)(107986001)(5001870100001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR02MB2540; H:xsj-pvapsmtpgw02; FPR:; SPF:None; PTR:unknown-60-100.xilinx.com,xapps1.xilinx.com; A:0; MX:0; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1NAM02FT064; 1:p1/UnVhzjZtNePsmhdVc5CaUf6jorkXQCdOXyJV0W1Q6rvVzQ443hhHnE3hPIcvC5GEEkDoDnhtQ2RggMLcrCao/QNlHhnAZipibMpCI9fPMquOjtbLO+pYpLZzqIegW MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b9927e79-7373-4701-e7b4-08d593b35d97 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(5600026)(4604075)(2017052603328); SRVR:DM5PR02MB2540; X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB2540; 3:JhZ7EYIR1yp4lbz3P2Cm2nNYmdnmw9CKp9VHF7nytbhAWjKa8qXxl8p5qIutRjv2vl+Qrk+qFesRLFSTJihMBo327ZEqXyJTk6BwMHPeozi0973tIBYx8ZBy9mtW/VKqpzhCkXgHot2odx2aJkRgRMMSVoDFpZg6+qzZ6uIIklVSzdnwnfY56MxEqRn7JOZabAH8zlfa3Tqtxqp4M619+kqABj5SD1+oJjUCZQ9ElHiuR3kh4/Qzo+1kPJWdaNNUB27ii4nzxXAq1HhA+QGojl654Vud6ZVermWDLeGuE8W9Nn3BsTHubNuRc52/ECro35ASWTGAsm0dq/WmdIyIu58J0MbT2BSd7CWmsij0V6Q=; 25:0PN7avfyUGWv6nCKmJt1mWA7xE35IcbQ2tgLJ2K37dD7RMvAehulee/3TuIR+ZsOrXdn31CnnIGMTob+No9y1ti8ZGjImVppmUVKvW3MOAqKNtoZxhwOInp4bHxaB6r1EVQdTnEkmzJJfwS8JbYmfmQ788bt5u2iwof2C7aibA7eycoKLMv2g26ZYB7ieNSpC2DzwbiYV0Oh72h/QaWOGb3MzXHt57whDir0CIfi0b6EzIOUwvnPJEIU42yeSQ3aMRsoaK2H/lst3X4Z9/KsA7rKf/3U+y6TlRYYV0XQKhq005ZcLVb0hqAyMHz5N45EMRviC/DdHPdOnn9FEOjhMQ== X-MS-TrafficTypeDiagnostic: DM5PR02MB2540: X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB2540; 31:JtYqKHCuKJRd6/g10y0XCcQDqeTTXZBFCqF9WLMdzMbH76aWf1lPpZ25b9OJku1shXrV0ha4kZ98vE0bbHKw9zmKEwF2kiyLE+fVZkzAgU46gd1n+cZyu3QdcnN84d0WwoFgfhKr69m+Yv+hm0GTj/oxiEnNkXmasH9WLmFZQVHvsJu5z9kGLDndIJENVtd+4EOkHtqiIQwnjp2d9b003aAvA2CytybF37nOmEXg1nE=; 4:+3wAxioQ/nJdFhEQfj6YOLdOj3g3ocqbLOGxRsx0RliEi563qNUOC7NPeIC7zEmBbHSOCr9ik4cq3IsHvCwDf6TKJgHRTMqMQgWJro1xRce+nTkp4ZPJx9idaf7fIa9hZonnassQUB6IQoEVAck45QUpBSNdAzy7tq8YvQPEZu6QcEGtMugysqN8VWTQP8SUPid0tFtPhIqdJqqq5VguI9HW+zpxw+yfm5v0dT/gZbkKY165pCcD75zb16X1PvvujXIlevpfsKKyI2LEaiQs+VH29FeoUpef4GK6Nhfc2Jb+nTQhkgUefrIz7pidNiBy X-Microsoft-Antispam-PRVS: <DM5PR02MB25408B0B4A6D2DBBA63EE497C9AC0@DM5PR02MB2540.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231221)(944501327)(52105095)(93006095)(93000095)(6055026)(6096035)(201703131430075)(201703131448075)(201703131433075)(201703151042153)(20161123561025)(20161123559100)(20161123563025)(20161123556025)(20161123565025)(201708071742011); SRVR:DM5PR02MB2540; BCL:0; PCL:0; RULEID:(400006); SRVR:DM5PR02MB2540; X-Forefront-PRVS: 0624A2429E X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR02MB2540; 23:NaviFOR206nTYpGfsSoEnDuJkNu5Xgt0JZUn9DVlk?= aR5w3EAoHZ+S+s9Vc3WAvEIwbWp4M0YuHj5sJs82UJBUc6QXKFu2yKF1ZMJ04IEcqhKnwRq2PdLh0ws1tUsmuR0MbN5uASE4EBItN2IyHhjG6Bo49TyakJhfVqIgyQy78hWlT2CVPkvWGGS1L+2riL0KxoWSfLuDaS8f/pWcE0qYsJdPA77A1MejkjhpiExcbsWQvrPXMCGyyVyWqyamyR0/GY5CVHluXyqa02gHfxC32TEd/T/uDk0/hyvaz+Qr/ajWr/Rdh4jfandw1xY7z3iik9N8Gss3NJL1uPoF0rU06Q1LbtBkAcnb3zWMua1TKvdQTM9amN+F7defgXieI1OjOKYOhvwlnIBHbspNf4bU2Kro21Di/iLICHXW9Ag8itNZdQKAd50XLVQu/vIKc2aouQHD7tDuG8Yg8yqKMZjsoNStr0yHDGGNpHgS17RbjUroUjNQOk4J3kXVzPRGu3HKQ5i+fxG0w+bm4WgLzVW2qBF1n6XHiWIJHrY/2KulRuS3VaiZFM4h8KDY8ipiWLP935E7IXiEmu9gOUbyydn9rFXM0Xv9s53vGXelr2c4fQ3A0mD6jyXo6Ldh5tPoTgoCRe/Lb1xps9R0dx/A3wp6o1mScZvz9/T8WV4SW0gON1G7naqecHFTHkeXKUHA6CzlkE8+LIwB/qyubQsUU7tDAgpocrQ9CrsCdKkVzS8Bp1PYkd7ckcR2zk/UgBHXJim+33LPIVPuSOWqk3KcQY/L60auxZVHfbB58uTHml3pU8+5kFQZCwY2NjIu49gl5nQ8GvwTSdvkz5OEfntKSLnis3uSDJ9bCsLfM8Yx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b12dpQrRDiAsU5NxHkRvcXeOgWSCB6ejd7ZdPWxwsjpk6inwObnutoJoNRUeDrC+HFU1fJIL3fv95OWSEM2fALmYu1s875cunJHM3RXOMrHpLk5KKEHh56Yccog5P35tJtzcLY57IViV0bzEnc/nQ==; 5:R6N3N2pTr3jpxrKBUOoDfmyANM5E8Wh2xyca84DMU8biycXFjJS0iOAKSVuFCbUWSUZqZfuH9DmswOkZ0knQRtGeSTY3e1chOMbDqhwSUOhkoXcVw0vpeYn28iTJbWdRCJvK1fsE+zocICxR8evvRoCWGRIBO5HrXQFbq3xCzz4=; 24:729cbEBQ4GdlzyckaH5icTJ152Az/nH3mm6bTqRi1e/iRIxRgi1uoFrTa+XYYa7iAasQ80LxDPB7+sbw/yf+y+UHsxBr/MLazPPWJdZjG0I= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB2540; 7:hHEeH5/PDiFOxUim+Szbb5IlG+eTbTBL0sTmO0W7ATip4ekiPbY+39nuu0T4na7FOZc9y9irfq3auochuoc8Aktp3VATK2aPBxeU8YaXW/5NfHnh99jTzhKZdf+wbiCdsbaiCBZZc5Yzeh2x7WwxLAAiQ+TFCtbWuWmLjfWdNoaOcWqfvPll3yoCZVYVTEZ1FZnBTBW6Sdc4H2Ue0Bs9eO1HfOp4lvWH3NX+OVYPWYK3Jp0IHPuX2+xb9hODltlw X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Mar 2018 07:21:32.0208 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b9927e79-7373-4701-e7b4-08d593b35d97 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[149.199.60.100]; Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR02MB2540 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.42.87 X-Mailman-Approved-At: Tue, 27 Mar 2018 08:34:08 -0400 Subject: [Qemu-devel] [qemu-devel][PATCH v1 1/2] ssi.c: Check if slave already attached to a parent bus X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> |
Series |
[v1,1/2] ssi.c: Check if slave already attached to a parent bus
|
expand
|
diff --git a/hw/ssi/ssi.c b/hw/ssi/ssi.c index 7eaaf56..6953c92 100644 --- a/hw/ssi/ssi.c +++ b/hw/ssi/ssi.c @@ -152,7 +152,7 @@ static int ssi_auto_connect_slave(Object *child, void *opaque) SSISlave *dev = (SSISlave *)object_dynamic_cast(child, TYPE_SSI_SLAVE); qemu_irq cs_line; - if (!dev) { + if (!dev || qdev_get_parent_bus(DEVICE(dev))) { return 0; }