Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751735AbdCCHO0 (ORCPT ); Fri, 3 Mar 2017 02:14:26 -0500 Received: from mail-sn1nam01on0066.outbound.protection.outlook.com ([104.47.32.66]:39200 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751083AbdCCHOU (ORCPT ); Fri, 3 Mar 2017 02:14:20 -0500 From: Piotr Sroka To: Shawn Lin CC: "linux-mmc@vger.kernel.org" , Ulf Hansson , Chaotian Jing , Gwendal Grignou , Dong Aisheng , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] mmc: core: fix changing bus witdh in hs400es mode Thread-Topic: [PATCH] mmc: core: fix changing bus witdh in hs400es mode Thread-Index: AQHSk1uUviJba0Zy2keZ/6jjmzwijKGCedCAgAAtIGA= Date: Fri, 3 Mar 2017 06:37:56 +0000 Message-ID: References: <1488462454-905-1-git-send-email-piotrs@cadence.com> <78c1d56c-5272-f6c6-bb55-447857acb6b8@rock-chips.com> In-Reply-To: <78c1d56c-5272-f6c6-bb55-447857acb6b8@rock-chips.com> Accept-Language: pl-PL, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-ref: PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNccGlvdHJzXGFwcGRhdGFccm9hbWluZ1wwOWQ4NDliNi0zMmQzLTRhNDAtODVlZS02Yjg0YmEyOWUzNWJcbXNnc1xtc2ctZWVkODBkNzgtZmZkYi0xMWU2LWFmN2UtYjg3NjNmYWJhNWQxXGFtZS10ZXN0XGVlZDgwZDdhLWZmZGItMTFlNi1hZjdlLWI4NzYzZmFiYTVkMWJvZHkudHh0IiBzej0iMTYxNyIgdD0iMTMxMzI5OTY2NzYxNzY2MTczIiBoPSJsUTN5aDcvU28wdG9pbzk1NGF1V2g3NndRbms9IiBpZD0iIiBibD0iMCIgYm89IjEiLz48L21ldGE+ authentication-results: rock-chips.com; dkim=none (message not signed) header.d=none;rock-chips.com; dmarc=none action=none header.from=cadence.com; x-originating-ip: [213.131.238.28] x-ms-office365-filtering-correlation-id: 17712b9d-fcde-452a-8229-08d461ffd3ef x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:DM5PR07MB3084; x-microsoft-exchange-diagnostics: 1;DM5PR07MB3084;7:SMoxWnFcLsl8XGaUQjXT7r70aQwTU8nMo+ap2MRaxvqABmU0zs/eId43Q8KzsU+KNXQw3CalulMJqVWhCp+jiyMdcwCElPQflLAayR54yS7M1vqFt3frRVpMAOK0bUJfV0UJFYQPNzxWnqfI9RI5DyYzoGLVnUgMp4kogdbG0w4L8jnBwzFI1XlnwNsvHUNbnxYoi8+eXo4KBKl/prfgoX23VEHqaSFnyZaxgkK5RrDxigoN2Ab5suCjuXPU/0ENzYpQwFdU8FhehvbJhvSaQkvB74ZGkpiErDAvORwvx3B1XzOSPQ89lTZ+n5xKn2Rf6CBEqt04UB1XWgSqsdLpDA==;20:mZp1iDWF1I6JrnR7oqCRcKKGBDfqj2KbkcaVoRwqo/VjhTbrcLBHTeqU4AVr4n/f4jto5nS7IAbmnXkfMyAJ3PyP1zb9tuS0FOAkizqeBGbeFSKNqWnukpRsrx49S4R98QYIkcGesSPNVLGLpWSEdA10raA9qMQ8RB5YM/TLuO0ge1aylx84c4l2PcXtZ/VBZxMKLaryK6DMCYG4I6mGW3eF89AbroZwbkgOVqyBkzVNZayek16ePoGmouJ6zvb2 x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(10436049006162)(72806322054110); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6041248)(20161123560025)(20161123558025)(20161123555025)(20161123564025)(20161123562025)(6072148);SRVR:DM5PR07MB3084;BCL:0;PCL:0;RULEID:;SRVR:DM5PR07MB3084; x-forefront-prvs: 0235CBE7D0 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(7916002)(39450400003)(377454003)(13464003)(51914003)(24454002)(53936002)(4326008)(53546006)(110136004)(305945005)(575784001)(8676002)(54906002)(81166006)(6246003)(2900100001)(38730400002)(8936002)(92566002)(106116001)(77096006)(122556002)(102836003)(86362001)(6506006)(6436002)(3846002)(25786008)(6116002)(66066001)(229853002)(50986999)(3280700002)(76176999)(3660700001)(33656002)(54356999)(55016002)(99286003)(8656002)(6306002)(74316002)(9686003)(2906002)(7696004)(7736002)(5660300001)(189998001)(2950100002)(6916009)(19627235001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR07MB3084;H:DM5PR07MB3082.namprd07.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-OriginatorOrg: cadence.com X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Mar 2017 06:37:56.4734 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: d36035c5-6ce6-4662-a3dc-e762e61ae4c9 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR07MB3084 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id v237EUnu003903 Content-Length: 1476 Lines: 50 Hi Shawn Thanks for the information. Best Regards Piotr Sroka > -----Original Message----- > From: Shawn Lin [mailto:shawn.lin@rock-chips.com] > Sent: 03 March, 2017 4:43 AM > Subject: Re: [PATCH] mmc: core: fix changing bus witdh in hs400es mode > > Hi Poitr, > > On 2017/3/2 21:47, Piotr Sroka wrote: > > Fix the code to avoid changing bus width if HS400ES mode is selected. > > > > Thanks for catching this, but Guenter posted a fix[1] already. :) > > [1]: https://urldefense.proofpoint.com/v2/url?u=https- > 3A__patchwork.kernel.org_patch_9599261_&d=DwICbg&c=aUq983L2pue2FqKFoP6PGHMJQyoJ7kl3s3GZ- > _haXqY&r=TGZtNfZu5Cjhu2K8A0Qhsot4HlKpSJ0Xmyc_L8hPwSI&m=z53GwiPyaRw9P09VfO84zhV8cTwdYWUhcbZBPTOUbXE&s=vtPh- > 0g7-O6PZJOdgFp0jZeMrve8EG6qLDpphJN1vuM&e= > > > Signed-off-by: Piotr Sroka > > --- > > drivers/mmc/core/mmc.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index > > 7fd7228..c7d9c9f 100644 > > --- a/drivers/mmc/core/mmc.c > > +++ b/drivers/mmc/core/mmc.c > > @@ -1730,7 +1730,7 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr, > > err = mmc_select_hs400(card); > > if (err) > > goto free_card; > > - } else { > > + } else if (!mmc_card_hs400(card)) { > > /* Select the desired bus width optionally */ > > err = mmc_select_bus_width(card); > > if (err > 0 && mmc_card_hs(card)) { > > > > > -- > Best Regards > Shawn Lin