From patchwork Tue Apr 16 04:41:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Przemys=C5=82aw_Gaj?= X-Patchwork-Id: 10901899 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E4FE217E0 for ; Tue, 16 Apr 2019 04:42:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C9DFF28889 for ; Tue, 16 Apr 2019 04:42:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BE80028942; Tue, 16 Apr 2019 04:42:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 38EE228892 for ; Tue, 16 Apr 2019 04:42:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qu2TLGrHLK4qfxnK13H5YLEqGV8YqX6fkwSINqd5/Z4=; b=XY5qVby0HbBlOE DgWbDvxu2Ob2gCvTmOelx37vwHG7sP5q9/YAQe1UhUzHeXXmpN3i8TCjgzJNga4AGgFkjllEW5LfL fEhAgsiZHX0XP9JOhH5GSsGrreAt+UFvHCPr1HbVBriRBYmrcFsA+mSc7s3N/5NQWC/Z2YkfHP1jO HBRDAjDjG44lAdUx2Y52MTZxaW+oDdwvRzqHf4ENsRh+egFjlrRP3U6aUPoz4FKHvYc1qhEIgjp5O SteCYJcE+33ZMnXomcMAyQO4wyvc6+CkDXK9K8ge9UqV/fKsTnHbseHQ8Lt4+zAiq/hCqgYBeZV4G BzpSO1p465n5KotUSHtg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hGFvG-00087l-SX; Tue, 16 Apr 2019 04:42:18 +0000 Received: from mx0a-0014ca01.pphosted.com ([208.84.65.235]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hGFvB-00085m-Ju for linux-i3c@lists.infradead.org; Tue, 16 Apr 2019 04:42:16 +0000 Received: from pps.filterd (m0042385.ppops.net [127.0.0.1]) by mx0a-0014ca01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x3G4bMTQ016548; Mon, 15 Apr 2019 21:42:06 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cadence.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=proofpoint; bh=+JSFMwcfmr50M3wJ7f4WptR5F6HEeH3hMyURqQGvdeM=; b=hSRNzFFrUGz18xUZDAiUt5BdpjfkZ+EQtJdd6d+IHpOf6xXhU5zdaxxU6ngSARtLJitR KL2fKqf6CfLVKg+/pfOL2aTZAcgpOxpBFwju5N0ot7FYX0U1iFBBoPgZFqeAxdENeWvu UWSsBLpo1v9Dxi6WH9b/5J8VFUdRG0J10fbA8hG8jqe6Z77+rQiUzHu8EchaCd4EOE33 2/lDvfQ4AubARq0BeyrpfZ177QpQT8WoZXIF4XvAcc42764xiUs0VCzbNVjI/S6xf+GL +Ds7W8mw81TtBPe4+MKT0PMDPupmLtm9Y8Jdujgvr9+i6neg4ZIHnoFyNX3Fi9XwwpSV UA== Authentication-Results: cadence.com; spf=pass smtp.mailfrom=pgaj@cadence.com Received: from nam01-sn1-obe.outbound.protection.outlook.com (mail-sn1nam01lp2054.outbound.protection.outlook.com [104.47.32.54]) by mx0a-0014ca01.pphosted.com with ESMTP id 2rw74gr93s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 15 Apr 2019 21:42:06 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cadence.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+JSFMwcfmr50M3wJ7f4WptR5F6HEeH3hMyURqQGvdeM=; b=HIWmhciRldO1CKkHVu+GccqDdz8YlBKejYXJUh/J3rzJrQjJS/Hvw7iIQA4/vuywYRRuJ3d4o2dtf+c6BAVkyG/0jbE9iz1OFI7vRUcCjyn9i4oLSQgLDxp8jm0ESk3kIpCKFXG1EO0a7e+TlBt0/72aoFjALqJVZI/5Oe9dRsY= Received: from DM5PR07CA0069.namprd07.prod.outlook.com (2603:10b6:4:ad::34) by SN1PR07MB4109.namprd07.prod.outlook.com (2603:10b6:802:30::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1792.17; Tue, 16 Apr 2019 04:42:03 +0000 Received: from CO1NAM05FT048.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e50::206) by DM5PR07CA0069.outlook.office365.com (2603:10b6:4:ad::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1792.15 via Frontend Transport; Tue, 16 Apr 2019 04:42:03 +0000 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning cadence.com discourages use of 199.43.4.28 as permitted sender) Received: from rmmaillnx1.cadence.com (199.43.4.28) by CO1NAM05FT048.mail.protection.outlook.com (10.152.96.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1792.7 via Frontend Transport; Tue, 16 Apr 2019 04:42:01 +0000 Received: from maileu3.global.cadence.com (maileu3.cadence.com [10.160.88.99]) by rmmaillnx1.cadence.com (8.14.4/8.14.4) with ESMTP id x3G4fuQS002971 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=OK); Tue, 16 Apr 2019 00:41:59 -0400 X-CrossPremisesHeadersFilteredBySendConnector: maileu3.global.cadence.com Received: from maileu3.global.cadence.com (10.160.88.99) by maileu3.global.cadence.com (10.160.88.99) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 16 Apr 2019 06:41:58 +0200 Received: from lvlogina.cadence.com (10.165.176.102) by maileu3.global.cadence.com (10.160.88.99) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Tue, 16 Apr 2019 06:41:58 +0200 Received: from lvlogina.cadence.com (localhost.localdomain [127.0.0.1]) by lvlogina.cadence.com (8.14.4/8.14.4) with ESMTP id x3G4fv5s003578; Tue, 16 Apr 2019 05:41:57 +0100 Received: (from pgaj@localhost) by lvlogina.cadence.com (8.14.4/8.14.4/Submit) id x3G4fvlU003577; Tue, 16 Apr 2019 05:41:57 +0100 From: Przemyslaw Gaj To: Subject: [PATCH v4 1/4] i3c: master: cdns: Drop support for I2C 10 bit addresing in Cadence I3C master Date: Tue, 16 Apr 2019 05:41:43 +0100 Message-ID: <20190416044146.2382-2-pgaj@cadence.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20190416044146.2382-1-pgaj@cadence.com> References: <20190416044146.2382-1-pgaj@cadence.com> MIME-Version: 1.0 X-OrganizationHeadersPreserved: maileu3.global.cadence.com X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:199.43.4.28; IPV:CAL; SCL:-1; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(39860400002)(346002)(376002)(396003)(136003)(2980300002)(199004)(189003)(36092001)(53936002)(107886003)(26005)(356004)(6666004)(476003)(50226002)(4326008)(86362001)(54906003)(16586007)(5660300002)(97736004)(316002)(446003)(426003)(105596002)(36756003)(186003)(11346002)(486006)(2616005)(76130400001)(336012)(478600001)(87636003)(126002)(8936002)(50466002)(8676002)(76176011)(6916009)(51416003)(14444005)(81166006)(48376002)(81156014)(2906002)(42186006)(5024004)(47776003)(2351001)(1076003)(69596002)(26826003)(106466001)(305945005); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR07MB4109; H:rmmaillnx1.cadence.com; FPR:; SPF:SoftFail; LANG:en; PTR:ErrorRetry; A:1; MX:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1d2bcd78-6fea-474c-315b-08d6c225de16 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600140)(711020)(4605104)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328); SRVR:SN1PR07MB4109; X-MS-TrafficTypeDiagnostic: SN1PR07MB4109: X-Microsoft-Antispam-PRVS: X-Forefront-PRVS: 000947967F X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: OozFcT17LeEUd5gzD46vUQ7gICS6MBG/MtnsfkLroYCvFYidYkVQcECXhs2iKUUFcH8MIHPnvjfyIHqykjhR1gN3Gpr3i+culXgOY3iyWHGgOeKoTUrp4CYWNRNArhWkVmoDa5fcfBfSRzKwhUWBwbdfH4sEmgt7MnpbB+JVwh/44MujO6dMS+s8iNaUWOyocY2FHOFXMQFHAf3EyKkIJpY3KcvOuzVMyCVI/p5NVsBIlFaQK8AdrcXxlR81SvuSlzwZqvjfpA28umcPGUI7E53fR4caVLaPI7gWhh0mngz7bLyArfvOc3M+RkZQDYeFBMYGH8UA4drdG0Tul9jHWkcM0AZPEjxQr9iInS3V/J/a742MXadkJwE1SmBCG9GppgFDWYh7BWiRSHmWru3UiWaMYNe1hoZINA+cOzF+H50= X-OriginatorOrg: cadence.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Apr 2019 04:42:01.2016 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1d2bcd78-6fea-474c-315b-08d6c225de16 X-MS-Exchange-CrossTenant-Id: d36035c5-6ce6-4662-a3dc-e762e61ae4c9 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=d36035c5-6ce6-4662-a3dc-e762e61ae4c9; Ip=[199.43.4.28]; Helo=[rmmaillnx1.cadence.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR07MB4109 X-Proofpoint-SPF-Result: pass X-Proofpoint-SPF-Record: v=spf1 include:spf.smktg.jp include:_spf.salesforce.com include:mktomail.com include:spf-0014ca01.pphosted.com include:spf.protection.outlook.com include:auth.msgapp.com include:spf.mandrillapp.com ~all X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-04-16_02:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_check_notspam policy=outbound_check score=0 priorityscore=1501 malwarescore=0 suspectscore=3 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=620 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904160033 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190415_214213_796400_9762B6B3 X-CRM114-Status: GOOD ( 11.30 ) X-BeenThere: linux-i3c@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux I3C List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-i3c@lists.infradead.org, agolec@cadence.com, Przemyslaw Gaj , rafalc@cadence.com, vitor.soares@synopsys.com Sender: "linux-i3c" Errors-To: linux-i3c-bounces+linux-i3c=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Because this patch series dropped support for 10 bit I2C devices, support is also dropped in Cadence I3C master driver. Signed-off-by: Przemyslaw Gaj --- Main changes between v2 and v3 are: - Remove i2c_funcs() hook implementation. --- drivers/i3c/master/i3c-master-cdns.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/i3c/master/i3c-master-cdns.c b/drivers/i3c/master/i3c-master-cdns.c index 8889a4f..237f24a 100644 --- a/drivers/i3c/master/i3c-master-cdns.c +++ b/drivers/i3c/master/i3c-master-cdns.c @@ -864,11 +864,6 @@ static int cdns_i3c_master_i2c_xfers(struct i2c_dev_desc *dev, return ret; } -static u32 cdns_i3c_master_i2c_funcs(struct i3c_master_controller *m) -{ - return I2C_FUNC_SMBUS_EMUL | I2C_FUNC_I2C | I2C_FUNC_10BIT_ADDR; -} - struct cdns_i3c_i2c_dev_data { u16 id; s16 ibi; @@ -1010,9 +1005,7 @@ static int cdns_i3c_master_attach_i2c_dev(struct i2c_dev_desc *dev) master->free_rr_slots &= ~BIT(slot); i2c_dev_set_master_data(dev, data); - writel(prepare_rr0_dev_address(dev->boardinfo->base.addr) | - (dev->boardinfo->base.flags & I2C_CLIENT_TEN ? - DEV_ID_RR0_LVR_EXT_ADDR : 0), + writel(prepare_rr0_dev_address(dev->boardinfo->base.addr), master->regs + DEV_ID_RR0(data->id)); writel(dev->boardinfo->lvr, master->regs + DEV_ID_RR2(data->id)); writel(readl(master->regs + DEVS_CTRL) | @@ -1518,7 +1511,6 @@ static const struct i3c_master_controller_ops cdns_i3c_master_ops = { .send_ccc_cmd = cdns_i3c_master_send_ccc_cmd, .priv_xfers = cdns_i3c_master_priv_xfers, .i2c_xfers = cdns_i3c_master_i2c_xfers, - .i2c_funcs = cdns_i3c_master_i2c_funcs, .enable_ibi = cdns_i3c_master_enable_ibi, .disable_ibi = cdns_i3c_master_disable_ibi, .request_ibi = cdns_i3c_master_request_ibi, From patchwork Tue Apr 16 04:41:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Przemys=C5=82aw_Gaj?= X-Patchwork-Id: 10901903 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 39F7318FD for ; Tue, 16 Apr 2019 04:42:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1DEF628821 for ; Tue, 16 Apr 2019 04:42:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 012E8288E0; Tue, 16 Apr 2019 04:42:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3821328821 for ; Tue, 16 Apr 2019 04:42:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=42m3lw9vq0ZHef6I578/cyQBmLgKdYdWYr+m/P2bpV8=; b=UcKygBvDe0NSUY hH0aj+pvaWICUa9nz7Qn+5gB3f1Z71AIDeYq46QqCHNrLXVkrJQGlFQUAbTYkr8VaVi15OsR26CIE O5h9fRFLjQp96MbOJLPY3Mh16eKsF/5lkv25ug8fr47G1Oi0A3Y9Mmq7UA6Za3bBbf6Y38DodCX1C xHbetVHoCO9Ll4ObYThFmwlOq+RDDLdTxLcQU2/zvhr+UgT5/H5K/Bd1Sn9qtqKqcIYqCZpdiwebD 49MuKL91h515L314B303Gv7e58l3zYCgVfu9Ls+CqnKw4tflAMFDlK5UUxTTRXoMiMR2zeF4TKbJ0 joYulUulTxjmCQriDi8Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hGFvE-00087B-J9; Tue, 16 Apr 2019 04:42:16 +0000 Received: from mx0a-0014ca01.pphosted.com ([208.84.65.235]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hGFvB-00085n-Hd for linux-i3c@lists.infradead.org; Tue, 16 Apr 2019 04:42:15 +0000 Received: from pps.filterd (m0042385.ppops.net [127.0.0.1]) by mx0a-0014ca01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x3G4b295016451; Mon, 15 Apr 2019 21:42:05 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cadence.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=proofpoint; bh=iXcjCIyR+I5SxaSkc0yCUBbklPT8mgOTx8o7/XqEajE=; b=l+w493hX/7m0zU7O7ggkSyMQPxSqGHghO0H1ShjxlGUxeIJFIpxAkmFtt9pX0gJLaI4r lOp3quhSP4sC5S8zPTSpuEMe5xPcptDgAjVwD0nTS2eovK7/VPnC8PAH6mEyhWvybHIg klQbjj/TFGJdIsidBx9pXFRMIytvXn4GwyNtmc4YrIkYRpOiw+FixH+T9pJdLQmcDoUz 1OH2Pu2W1WPnNLUjfnCuykz7sG/jRJ9NGIudxD49133aewponpj5sdraLhp96LAWAeQm Yh62rLyaYMqL93jUEh4GxyiNXjPNVzRWLJpbPkBLtMGCr1h4fm29wsfM3O5Mdz0f2xab wA== Authentication-Results: cadence.com; spf=pass smtp.mailfrom=pgaj@cadence.com Received: from nam03-by2-obe.outbound.protection.outlook.com (mail-by2nam03lp2059.outbound.protection.outlook.com [104.47.42.59]) by mx0a-0014ca01.pphosted.com with ESMTP id 2rw74gr93q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 15 Apr 2019 21:42:05 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cadence.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iXcjCIyR+I5SxaSkc0yCUBbklPT8mgOTx8o7/XqEajE=; b=TPLmlDB9y3jR5L7LyBHrl+ovujNDFI+ovPXNT0x2QHohKOOkVTklf7+vez62uuAN3tGCpVFc9O8jVNdS6H1VJrp290PXxqrQKD2do5GnvEZUIhR8kHpAZXIkAgYhUDJg0HPhu/4Vo/zBmFNS89XJi6zPnexNKYc8/Bu9cJONec8= Received: from SN4PR0701CA0005.namprd07.prod.outlook.com (2603:10b6:803:28::15) by BN8PR07MB5812.namprd07.prod.outlook.com (2603:10b6:408:68::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1792.19; Tue, 16 Apr 2019 04:42:03 +0000 Received: from DM3NAM05FT055.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::205) by SN4PR0701CA0005.outlook.office365.com (2603:10b6:803:28::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1813.11 via Frontend Transport; Tue, 16 Apr 2019 04:42:03 +0000 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning cadence.com discourages use of 158.140.1.28 as permitted sender) Received: from sjmaillnx1.cadence.com (158.140.1.28) by DM3NAM05FT055.mail.protection.outlook.com (10.152.98.169) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1792.7 via Frontend Transport; Tue, 16 Apr 2019 04:42:02 +0000 Received: from maileu3.global.cadence.com (maileu3.cadence.com [10.160.88.99]) by sjmaillnx1.cadence.com (8.14.4/8.14.4) with ESMTP id x3G4g0pe030122 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=OK); Mon, 15 Apr 2019 21:42:01 -0700 X-CrossPremisesHeadersFilteredBySendConnector: maileu3.global.cadence.com Received: from maileu3.global.cadence.com (10.160.88.99) by maileu3.global.cadence.com (10.160.88.99) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 16 Apr 2019 06:42:00 +0200 Received: from lvlogina.cadence.com (10.165.176.102) by maileu3.global.cadence.com (10.160.88.99) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Tue, 16 Apr 2019 06:42:00 +0200 Received: from lvlogina.cadence.com (localhost.localdomain [127.0.0.1]) by lvlogina.cadence.com (8.14.4/8.14.4) with ESMTP id x3G4fxpv003623; Tue, 16 Apr 2019 05:41:59 +0100 Received: (from pgaj@localhost) by lvlogina.cadence.com (8.14.4/8.14.4/Submit) id x3G4fxwF003619; Tue, 16 Apr 2019 05:41:59 +0100 From: Przemyslaw Gaj To: Subject: [PATCH v4 2/4] i3c: master: dw-i3c-master: Remove i2c_funcs hook implementation Date: Tue, 16 Apr 2019 05:41:44 +0100 Message-ID: <20190416044146.2382-3-pgaj@cadence.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20190416044146.2382-1-pgaj@cadence.com> References: <20190416044146.2382-1-pgaj@cadence.com> MIME-Version: 1.0 X-OrganizationHeadersPreserved: maileu3.global.cadence.com X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:158.140.1.28; IPV:CAL; SCL:-1; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(136003)(396003)(376002)(346002)(39860400002)(2980300002)(189003)(36092001)(199004)(8676002)(47776003)(356004)(486006)(336012)(126002)(2616005)(446003)(6666004)(186003)(316002)(107886003)(76176011)(54906003)(87636003)(16586007)(26005)(42186006)(4326008)(478600001)(86362001)(1076003)(426003)(476003)(11346002)(51416003)(305945005)(7636002)(5024004)(106466001)(2351001)(105596002)(2906002)(8936002)(50226002)(50466002)(36756003)(48376002)(6916009)(76130400001)(5660300002)(246002)(26826003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN8PR07MB5812; H:sjmaillnx1.cadence.com; FPR:; SPF:SoftFail; LANG:en; PTR:corp.cadence.com; MX:1; A:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 33a6d4f7-616e-45b4-e908-08d6c225df02 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600140)(711020)(4605104)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328); SRVR:BN8PR07MB5812; X-MS-TrafficTypeDiagnostic: BN8PR07MB5812: X-Microsoft-Antispam-PRVS: X-Forefront-PRVS: 000947967F X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: 264W5IugxF0AhahdfArKi8Bu7Adt0LJP+kNuoz3jZaTqymEgOZqU/vlbM/cH/8CdhOO9RQoW5UgwXIB4rjQ//TBD82us5oLfore6Ga9cJwmm7Q4xrmBzfYQIww55rgRvpPVawyAzQffwwgllBW1xwoqyW6POpaxQeErfXcoKrbWSiI73d5tWxXF7QK32nyCjqniBMPnA/W3p2kAq+SF/ZVJ8qy8e0ZFR6jHYsDU/fpOCPQlpqUAyDvl0bOIUEZTc5KiMdcRVm+5yyaGMDGpfZMZ5OVEPzL7us2/R039kGbSPfr+Gcvr1h6LdpnwvoFL5k7Klkz5UG+ONkixTjq4xHVJ1dVDMdE/faF9uk9i6qKlasrtugMbg1kWIwBmr6CQIrCvRornMxxjjTghCozN/lLccCJv13h2EjCRQcwvBUFY= X-OriginatorOrg: cadence.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Apr 2019 04:42:02.7599 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 33a6d4f7-616e-45b4-e908-08d6c225df02 X-MS-Exchange-CrossTenant-Id: d36035c5-6ce6-4662-a3dc-e762e61ae4c9 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=d36035c5-6ce6-4662-a3dc-e762e61ae4c9; Ip=[158.140.1.28]; Helo=[sjmaillnx1.cadence.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR07MB5812 X-Proofpoint-SPF-Result: pass X-Proofpoint-SPF-Record: v=spf1 include:spf.smktg.jp include:_spf.salesforce.com include:mktomail.com include:spf-0014ca01.pphosted.com include:spf.protection.outlook.com include:auth.msgapp.com include:spf.mandrillapp.com ~all X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-04-16_02:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_check_notspam policy=outbound_check score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=973 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904160033 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190415_214213_695332_746B9722 X-CRM114-Status: GOOD ( 10.56 ) X-BeenThere: linux-i3c@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux I3C List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-i3c@lists.infradead.org, agolec@cadence.com, Przemyslaw Gaj , rafalc@cadence.com, vitor.soares@synopsys.com Sender: "linux-i3c" Errors-To: linux-i3c-bounces+linux-i3c=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Because this patch series dropped support for 10 bit I2C devices, i2c_funcs() hook has been removed. I removed hook implementation from Synopsys DesignWare I3C master driver. Signed-off-by: Przemyslaw Gaj --- drivers/i3c/master/dw-i3c-master.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/i3c/master/dw-i3c-master.c b/drivers/i3c/master/dw-i3c-master.c index bb03079..9934a12 100644 --- a/drivers/i3c/master/dw-i3c-master.c +++ b/drivers/i3c/master/dw-i3c-master.c @@ -1069,11 +1069,6 @@ static void dw_i3c_master_detach_i2c_dev(struct i2c_dev_desc *dev) kfree(data); } -static u32 dw_i3c_master_i2c_funcs(struct i3c_master_controller *m) -{ - return I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL; -} - static irqreturn_t dw_i3c_master_irq_handler(int irq, void *dev_id) { struct dw_i3c_master *master = dev_id; @@ -1108,7 +1103,6 @@ static const struct i3c_master_controller_ops dw_mipi_i3c_ops = { .attach_i2c_dev = dw_i3c_master_attach_i2c_dev, .detach_i2c_dev = dw_i3c_master_detach_i2c_dev, .i2c_xfers = dw_i3c_master_i2c_xfers, - .i2c_funcs = dw_i3c_master_i2c_funcs, }; static int dw_i3c_probe(struct platform_device *pdev) From patchwork Tue Apr 16 04:41:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Przemys=C5=82aw_Gaj?= X-Patchwork-Id: 10901901 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1EE1B13B5 for ; Tue, 16 Apr 2019 04:42:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 00F9E28892 for ; Tue, 16 Apr 2019 04:42:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E831228942; Tue, 16 Apr 2019 04:42:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4EDB1288E0 for ; Tue, 16 Apr 2019 04:42:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=GVnihwogKp1zrVTDLzmSntrTgcesRyDNO0pnwl81caE=; b=Aw5tHbjeSXuPQC XT4vT+4gBiuTk4DCEbj0E0haXXYfK08q9F7ykUiHqIubxXtcrmoguWYlDz7pYTw0Wvu4/JJTYc1Sv h+7dUwrJhiPezgLzNBlAekbMQa7Af6Z7AgH1hPNnc1/iFE/S5vYl4E3dIBRtrEnxHV5tCbIal9Fc+ rp2AeEIWUUEe6Bsn31KdGKXsB6eWXFdgpBiHs5yPz7Ua3X2wl6okbBCWfgdGT8xmB8KxewI6GRqmi jx0mHZgjdcTWxMzHFpfTkMaPZqrLCN4AG88UNXqmlk9v8pXe0czA9DjuM9+Gh1efr06gbX7sKIUmw 5G2E9CWXRVHAndey03QQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hGFvG-00087q-VE; Tue, 16 Apr 2019 04:42:18 +0000 Received: from mx0b-0014ca01.pphosted.com ([208.86.201.193] helo=mx0a-0014ca01.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hGFvB-00085q-Jq for linux-i3c@lists.infradead.org; Tue, 16 Apr 2019 04:42:16 +0000 Received: from pps.filterd (m0042333.ppops.net [127.0.0.1]) by mx0b-0014ca01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x3G4cwld011437; Mon, 15 Apr 2019 21:42:08 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cadence.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=proofpoint; bh=LvmwZ78fuPgFviYNDjSP10UOLhsyQMU/NIgTtSBjzvU=; b=BFdEIneCPk79H/IJ1xeoxehSslp79lmww4jQjoi3xKb4YoizHBe1Tk/wzZ1swrvEdBbl C1SWpMGsnv7FWxLAmUqzq2TR9r5c5xN1dtyPIMGcb5SgFBu8/8JNYQCd3m83/AKzXsop 8d/lrluzH/vMcLRq1DWNAmD6rNHIWhVXVWHttuCWP5imavPE7OzUMblPM++/eRFeUYjt pxV5jpnoR9PMGSi2kbIZreGWTWuP+uAQ1z+DgLy+pJ6kkE++Y0SlmNyiv1fzUU6KJ3Z8 wijfWkfzsVlsPPsZVPXzSx9DDmor/IDdKpBfFS2xvuAnYndghUn2Xm4kjPT/u9Os5vY9 zQ== Authentication-Results: cadence.com; spf=pass smtp.mailfrom=pgaj@cadence.com Received: from nam04-co1-obe.outbound.protection.outlook.com (mail-co1nam04lp2058.outbound.protection.outlook.com [104.47.45.58]) by mx0b-0014ca01.pphosted.com with ESMTP id 2rw7d9g6gd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 15 Apr 2019 21:42:08 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cadence.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LvmwZ78fuPgFviYNDjSP10UOLhsyQMU/NIgTtSBjzvU=; b=kVcNR9eO0K9YYTYQ8Afkan6zSDbZfJY7hmw8iXYDPA8SH0k9M+VwT4A6+jtpOpoTOqnQXLdOGfzjOkDs+zYyQIvZW8i2ynRP2Atsmv+951WG2Cm+5yG3dxfp1+pVAl35HRv+9L0yoFzozdfYXkD9qg7bnf4cwFE5R73QXo9N1LQ= Received: from DM6PR07CA0024.namprd07.prod.outlook.com (2603:10b6:5:94::37) by DM6PR07MB6811.namprd07.prod.outlook.com (2603:10b6:5:158::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1792.19; Tue, 16 Apr 2019 04:42:04 +0000 Received: from CO1NAM05FT016.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e50::206) by DM6PR07CA0024.outlook.office365.com (2603:10b6:5:94::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1771.16 via Frontend Transport; Tue, 16 Apr 2019 04:42:04 +0000 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning cadence.com discourages use of 158.140.1.28 as permitted sender) Received: from sjmaillnx2.cadence.com (158.140.1.28) by CO1NAM05FT016.mail.protection.outlook.com (10.152.96.123) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1792.7 via Frontend Transport; Tue, 16 Apr 2019 04:42:04 +0000 Received: from maileu3.global.cadence.com (maileu3.cadence.com [10.160.88.99]) by sjmaillnx2.cadence.com (8.14.4/8.14.4) with ESMTP id x3G4g2Fv020168 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=OK); Mon, 15 Apr 2019 21:42:04 -0700 X-CrossPremisesHeadersFilteredBySendConnector: maileu3.global.cadence.com Received: from maileu3.global.cadence.com (10.160.88.99) by maileu3.global.cadence.com (10.160.88.99) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 16 Apr 2019 06:42:02 +0200 Received: from lvlogina.cadence.com (10.165.176.102) by maileu3.global.cadence.com (10.160.88.99) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Tue, 16 Apr 2019 06:42:02 +0200 Received: from lvlogina.cadence.com (localhost.localdomain [127.0.0.1]) by lvlogina.cadence.com (8.14.4/8.14.4) with ESMTP id x3G4g14r003673; Tue, 16 Apr 2019 05:42:01 +0100 Received: (from pgaj@localhost) by lvlogina.cadence.com (8.14.4/8.14.4/Submit) id x3G4g1Vh003672; Tue, 16 Apr 2019 05:42:01 +0100 From: Przemyslaw Gaj To: Subject: [PATCH v4 3/4] i3c: Drop support for I2C 10 bit addresing Date: Tue, 16 Apr 2019 05:41:45 +0100 Message-ID: <20190416044146.2382-4-pgaj@cadence.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20190416044146.2382-1-pgaj@cadence.com> References: <20190416044146.2382-1-pgaj@cadence.com> MIME-Version: 1.0 X-OrganizationHeadersPreserved: maileu3.global.cadence.com X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:158.140.1.28; IPV:CAL; SCL:-1; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(396003)(376002)(39850400004)(346002)(136003)(2980300002)(189003)(199004)(36092001)(336012)(2616005)(476003)(126002)(486006)(106466001)(2351001)(105596002)(76130400001)(5024004)(14444005)(50226002)(51416003)(186003)(76176011)(8676002)(26005)(426003)(5660300002)(11346002)(446003)(8936002)(4326008)(246002)(50466002)(2906002)(48376002)(305945005)(36756003)(26826003)(107886003)(1076003)(7636002)(6666004)(356004)(47776003)(6916009)(54906003)(16586007)(478600001)(316002)(87636003)(42186006)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM6PR07MB6811; H:sjmaillnx2.cadence.com; FPR:; SPF:SoftFail; LANG:en; PTR:corp.cadence.com; MX:1; A:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d050613b-7df4-43fa-b5ff-08d6c225e03b X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600140)(711020)(4605104)(2017052603328); SRVR:DM6PR07MB6811; X-MS-TrafficTypeDiagnostic: DM6PR07MB6811: X-Microsoft-Antispam-PRVS: X-Forefront-PRVS: 000947967F X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: KwqSkaf1g22wmxzbGqQniujyNIgyyPHl3EKjKcHI+q06MCxPJE4ofCy7ewN/ucrqzc5IOPUxsfKSCEe4s5cTRuwqruszfDVsP5+MEl9ocaYTxsNBs4u+SDuTPoVSn3HOQ+S+2T0GS1J3bjiDXubi3CcB8LiTEVo/kKCY7jp7UE31KcEW3NVXOpiCw6fWClNaOop5RXBSXwjw2FElCwyqNxWfaCZrg/Wjj1Y90WxBAq4gmXPW4QJvXfTA0LBGwZTCBxoyduW/x+l2pmCU0IQ/PwFJE6cileleLT42bFt/NLQ8i0IDCMPR4byFEEadIG0hwyo7+4mbbnoIRsdV8V4ujpeygQR22kKfrRdv9riIaXW2PeNt07n/Hrcbr9ncqvh7PcE6CsZu+vZNfnFbIy5uoahD+alts61gzyMeAzObN50= X-OriginatorOrg: cadence.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Apr 2019 04:42:04.9660 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d050613b-7df4-43fa-b5ff-08d6c225e03b X-MS-Exchange-CrossTenant-Id: d36035c5-6ce6-4662-a3dc-e762e61ae4c9 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=d36035c5-6ce6-4662-a3dc-e762e61ae4c9; Ip=[158.140.1.28]; Helo=[sjmaillnx2.cadence.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR07MB6811 X-Proofpoint-SPF-Result: pass X-Proofpoint-SPF-Record: v=spf1 include:spf.smktg.jp include:_spf.salesforce.com include:mktomail.com include:spf-0014ca01.pphosted.com include:spf.protection.outlook.com include:auth.msgapp.com include:spf.mandrillapp.com ~all X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-04-16_02:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_check_notspam policy=outbound_check score=0 priorityscore=1501 malwarescore=0 suspectscore=3 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904160033 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190415_214213_816927_298347EC X-CRM114-Status: GOOD ( 16.50 ) X-BeenThere: linux-i3c@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux I3C List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-i3c@lists.infradead.org, agolec@cadence.com, Przemyslaw Gaj , rafalc@cadence.com, vitor.soares@synopsys.com Sender: "linux-i3c" Errors-To: linux-i3c-bounces+linux-i3c=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch dropps support for I2C devices with 10 bit addressing. When I2C device with 10 bit address is defined in DT, I3C master registration fails. Address space for I2C devices has been reduced and ->i2c_funcs() hook has been removed. Signed-off-by: Przemyslaw Gaj --- Main changes between v3 and v4 are: - Add i3c_master_i2c_funcs() which reflects current I2C devices functionality. Main changes between v2 and v3 are: - Remove i2c_funcs() hook. - Reduce address space for I2C devices. Main changes between v1 and v2 are: - Add error message when registering I2C device with 10 bit address. --- drivers/i3c/master.c | 21 ++++++++++++++------- include/linux/i3c/master.h | 5 +---- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/drivers/i3c/master.c b/drivers/i3c/master.c index 2dc628d..8800514 100644 --- a/drivers/i3c/master.c +++ b/drivers/i3c/master.c @@ -1962,6 +1962,16 @@ of_i3c_master_add_i2c_boardinfo(struct i3c_master_controller *master, if (ret) return ret; + /* + * The I3C Specification does not clearly say I2C devices with 10-bit + * address are supported. These devices can't be passed properly through + * DEFSLVS command. + */ + if (boardinfo->base.flags & I2C_CLIENT_TEN) { + dev_err(&master->dev, "I2C device with 10 bit address not supported."); + return -ENOTSUPP; + } + /* LVR is encoded in reg[2]. */ boardinfo->lvr = reg[2]; @@ -2111,16 +2121,14 @@ static int i3c_master_i2c_adapter_xfer(struct i2c_adapter *adap, return ret ? ret : nxfers; } -static u32 i3c_master_i2c_functionalities(struct i2c_adapter *adap) +static u32 i3c_master_i2c_funcs(struct i2c_adapter *adapter) { - struct i3c_master_controller *master = i2c_adapter_to_i3c_master(adap); - - return master->ops->i2c_funcs(master); + return I2C_FUNC_SMBUS_EMUL | I2C_FUNC_I2C; } static const struct i2c_algorithm i3c_master_i2c_algo = { .master_xfer = i3c_master_i2c_adapter_xfer, - .functionality = i3c_master_i2c_functionalities, + .functionality = i3c_master_i2c_funcs, }; static int i3c_master_i2c_adapter_init(struct i3c_master_controller *master) @@ -2379,8 +2387,7 @@ EXPORT_SYMBOL_GPL(i3c_generic_ibi_recycle_slot); static int i3c_master_check_ops(const struct i3c_master_controller_ops *ops) { if (!ops || !ops->bus_init || !ops->priv_xfers || - !ops->send_ccc_cmd || !ops->do_daa || !ops->i2c_xfers || - !ops->i2c_funcs) + !ops->send_ccc_cmd || !ops->do_daa || !ops->i2c_xfers) return -EINVAL; if (ops->request_ibi && diff --git a/include/linux/i3c/master.h b/include/linux/i3c/master.h index f13fd8b..eca8337 100644 --- a/include/linux/i3c/master.h +++ b/include/linux/i3c/master.h @@ -48,7 +48,7 @@ struct i3c_i2c_dev_desc { #define I3C_LVR_I2C_INDEX(x) ((x) << 5) #define I3C_LVR_I2C_FM_MODE BIT(4) -#define I2C_MAX_ADDR GENMASK(9, 0) +#define I2C_MAX_ADDR GENMASK(6, 0) /** * struct i2c_dev_boardinfo - I2C device board information @@ -390,8 +390,6 @@ struct i3c_bus { * and i2c_put_dma_safe_msg_buf() helpers provided by the I2C * framework. * This method is mandatory. - * @i2c_funcs: expose the supported I2C functionalities. - * This method is mandatory. * @request_ibi: attach an IBI handler to an I3C device. This implies defining * an IBI handler and the constraints of the IBI (maximum payload * length and number of pre-allocated slots). @@ -437,7 +435,6 @@ struct i3c_master_controller_ops { void (*detach_i2c_dev)(struct i2c_dev_desc *dev); int (*i2c_xfers)(struct i2c_dev_desc *dev, const struct i2c_msg *xfers, int nxfers); - u32 (*i2c_funcs)(struct i3c_master_controller *master); int (*request_ibi)(struct i3c_dev_desc *dev, const struct i3c_ibi_setup *req); void (*free_ibi)(struct i3c_dev_desc *dev); From patchwork Tue Apr 16 04:41:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Przemys=C5=82aw_Gaj?= X-Patchwork-Id: 10901895 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C9404139A for ; Tue, 16 Apr 2019 04:42:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AAC2728889 for ; Tue, 16 Apr 2019 04:42:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9910B288E0; Tue, 16 Apr 2019 04:42:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3DDD428889 for ; Tue, 16 Apr 2019 04:42:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1EJQ6XNXgK2IiCJa+Dwv8vO+KEoso1/tvcl2LD/6l9E=; b=XY3WZBUuM7SMSv ycfKjKiCt9kqlbbjufj/D7wkOwxyDZbVluIph9gkoyVK7HEjXG2Agz51bsXNRh+y0JeSlfuFiOvfE lP6WmzamahqyH/hg9FGBFeIwSrOnZxksAVJQBIx4AY/JIIZoJR9wU4A4/+vmWqmxcG8cAWIVHIs1V T0TmG1hLqJ33H5uQlbv5kqj4nHapBvzmapye6NygZGKbXrPDA1DghdN0SEETed7cHNKEP1J6v3cBw afN1JjrkuszyLZYP67RfzI0714YP3ODbNUD9+s8EI53/E1gxWcaVV/cQqs3yvjqg4lGuI20C6u1Ql u5+YwH/cpa3Zt6STwe+A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hGFvE-00087G-N7; Tue, 16 Apr 2019 04:42:16 +0000 Received: from mx0a-0014ca01.pphosted.com ([208.84.65.235]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hGFvB-00085p-D4 for linux-i3c@lists.infradead.org; Tue, 16 Apr 2019 04:42:15 +0000 Received: from pps.filterd (m0042385.ppops.net [127.0.0.1]) by mx0a-0014ca01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x3G4bLa4016537; Mon, 15 Apr 2019 21:42:08 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cadence.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=proofpoint; bh=WaHEDkW2GLP/WDIQ14pqnjNBlC9Mpic66zsbSV3XaGM=; b=APOumdzora09McHwZT3LCVePCwh7cxQ68Y5B7euFVVQXWW9yAdNEb0FdvoqGL4M2sAoM MEy5vPXBsd2iqulqAmFllDPNyAu8f59gfKcU2ytLBhrrwUadTMXZFD90I/yDybCgGpwQ 59t2PbGTZ6MgVUJvzEVZsiPkk/bAFE+zWaIeONpdYreH9kwe+FdZF++ARKL0FJwB0CHz FjEX3RIa0C71wP/ZfLLy3LGukex5AKnib7RcJ0l3YpiODca0r31kzuFa1nayJbCJvubu L+dbtFfRwYM/HgfDUUQycFX99HCs/7YKRLUClBbMwp91hiMcpGC1R8cyAuOWOEGjbtNs 7w== Authentication-Results: cadence.com; spf=pass smtp.mailfrom=pgaj@cadence.com Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2055.outbound.protection.outlook.com [104.47.36.55]) by mx0a-0014ca01.pphosted.com with ESMTP id 2rw74gr93u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 15 Apr 2019 21:42:07 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cadence.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WaHEDkW2GLP/WDIQ14pqnjNBlC9Mpic66zsbSV3XaGM=; b=aoL6pEMvpOAPuMtCmGXVHu1k07kRrDnfaE+VWIyyH46utNxQjiXfCiuGE/osrJODAXLZMui+vnJjPUx61O7QYuUr/LygBKIa2oZt5fnLi7tUz6gru2r2eoIkKkdpJYHyHml/wboK/6b2x4Ue7dPEfrE42Yu0zh2b0P0u8pzLtcE= Received: from BYAPR07CA0030.namprd07.prod.outlook.com (2603:10b6:a02:bc::43) by BL0PR07MB4098.namprd07.prod.outlook.com (2603:10b6:207:4c::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1792.17; Tue, 16 Apr 2019 04:42:05 +0000 Received: from CO1NAM05FT014.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e50::208) by BYAPR07CA0030.outlook.office365.com (2603:10b6:a02:bc::43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1792.18 via Frontend Transport; Tue, 16 Apr 2019 04:42:05 +0000 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning cadence.com discourages use of 158.140.1.28 as permitted sender) Received: from sjmaillnx2.cadence.com (158.140.1.28) by CO1NAM05FT014.mail.protection.outlook.com (10.152.96.121) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1792.7 via Frontend Transport; Tue, 16 Apr 2019 04:42:05 +0000 Received: from maileu3.global.cadence.com (maileu3.cadence.com [10.160.88.99]) by sjmaillnx2.cadence.com (8.14.4/8.14.4) with ESMTP id x3G4g2Fw020168 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=OK); Mon, 15 Apr 2019 21:42:04 -0700 X-CrossPremisesHeadersFilteredBySendConnector: maileu3.global.cadence.com Received: from maileu3.global.cadence.com (10.160.88.99) by maileu3.global.cadence.com (10.160.88.99) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 16 Apr 2019 06:42:04 +0200 Received: from lvlogina.cadence.com (10.165.176.102) by maileu3.global.cadence.com (10.160.88.99) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Tue, 16 Apr 2019 06:42:04 +0200 Received: from lvlogina.cadence.com (localhost.localdomain [127.0.0.1]) by lvlogina.cadence.com (8.14.4/8.14.4) with ESMTP id x3G4g3Le003692; Tue, 16 Apr 2019 05:42:03 +0100 Received: (from pgaj@localhost) by lvlogina.cadence.com (8.14.4/8.14.4/Submit) id x3G4g3mx003691; Tue, 16 Apr 2019 05:42:03 +0100 From: Przemyslaw Gaj To: Subject: [PATCH v4 4/4] dt-bindings: i3c: Document dropped support for I2C 10 bit devices Date: Tue, 16 Apr 2019 05:41:46 +0100 Message-ID: <20190416044146.2382-5-pgaj@cadence.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20190416044146.2382-1-pgaj@cadence.com> References: <20190416044146.2382-1-pgaj@cadence.com> MIME-Version: 1.0 X-OrganizationHeadersPreserved: maileu3.global.cadence.com X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:158.140.1.28; IPV:CAL; SCL:-1; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(136003)(396003)(376002)(346002)(39860400002)(2980300002)(199004)(189003)(36092001)(5660300002)(126002)(47776003)(476003)(76130400001)(2616005)(6916009)(316002)(305945005)(107886003)(246002)(54906003)(48376002)(106466001)(426003)(486006)(50226002)(336012)(105596002)(4326008)(16586007)(42186006)(7636002)(8936002)(8676002)(26005)(36756003)(26826003)(186003)(6666004)(11346002)(356004)(51416003)(2906002)(86362001)(2351001)(446003)(76176011)(478600001)(4744005)(50466002)(87636003)(14444005)(1076003); DIR:OUT; SFP:1101; SCL:1; SRVR:BL0PR07MB4098; H:sjmaillnx2.cadence.com; FPR:; SPF:SoftFail; LANG:en; PTR:corp.cadence.com; A:1; MX:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bd41048f-4a46-433b-f411-08d6c225e05c X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600140)(711020)(4605104)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328); SRVR:BL0PR07MB4098; X-MS-TrafficTypeDiagnostic: BL0PR07MB4098: X-Microsoft-Antispam-PRVS: X-Forefront-PRVS: 000947967F X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: fa7L5SdH/tFFvcbwUmLM7+reolwmLM1QfTdzO2BtDdMOcsvXHaqXrmRzeEP7L7AZuMkCU+gIVywPX14mOODQr80ZaK9slrKKJY01n789JkwgkOYLI8BaPfp6okt2S0DkyG9BlepJFIsZKkRaFoVT5UZDMArmrNRPZ6ObVcRlRRr4hpxE+1x+ixwWC9KCo4HvI3HzvTzwr2SnZNTZMKWohdOFXeT5odKmr7qTomlRUHW5tc52eoHQdce31Lf91mN3drucr4lYVDDh3MDPCMghILE5tPPLwvAgRA4QuCSYKA6/BNkIq1OP8S2FhWlr+TcUVk0lnkaa2nDB9u+MeGD8QqjSPlVqJf/9KlTU5bUkJOFA2zbTVBjbWaRzkA70jTOVNChtXX+0o8RQeTFPCRdtrHlhBDk60OFpT/5BPZvHOB0= X-OriginatorOrg: cadence.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Apr 2019 04:42:05.1829 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bd41048f-4a46-433b-f411-08d6c225e05c X-MS-Exchange-CrossTenant-Id: d36035c5-6ce6-4662-a3dc-e762e61ae4c9 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=d36035c5-6ce6-4662-a3dc-e762e61ae4c9; Ip=[158.140.1.28]; Helo=[sjmaillnx2.cadence.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR07MB4098 X-Proofpoint-SPF-Result: pass X-Proofpoint-SPF-Record: v=spf1 include:spf.smktg.jp include:_spf.salesforce.com include:mktomail.com include:spf-0014ca01.pphosted.com include:spf.protection.outlook.com include:auth.msgapp.com include:spf.mandrillapp.com ~all X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-04-16_02:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_check_notspam policy=outbound_check score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904160033 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190415_214213_670278_3E204A07 X-CRM114-Status: GOOD ( 10.82 ) X-BeenThere: linux-i3c@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux I3C List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-i3c@lists.infradead.org, agolec@cadence.com, Przemyslaw Gaj , rafalc@cadence.com, vitor.soares@synopsys.com Sender: "linux-i3c" Errors-To: linux-i3c-bounces+linux-i3c=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Because this patch series dropped support for 10 bit I2C devices, I'm documenting this. Signed-off-by: Przemyslaw Gaj --- Documentation/devicetree/bindings/i3c/i3c.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/i3c/i3c.txt b/Documentation/devicetree/bindings/i3c/i3c.txt index ab729a0..4ffe059 100644 --- a/Documentation/devicetree/bindings/i3c/i3c.txt +++ b/Documentation/devicetree/bindings/i3c/i3c.txt @@ -39,7 +39,9 @@ valid here, but several new properties have been added. New constraint on existing properties: -------------------------------------- - reg: contains 3 cells - + first cell : still encoding the I2C address + + first cell : still encoding the I2C address. 10 bit addressing is not + supported. Devices with 10 bit address can't be properly passed through + DEFSLVS command. + second cell: shall be 0