From patchwork Mon Aug 6 19:12:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 10557791 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 BAE32157D for ; Mon, 6 Aug 2018 19:13:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB4B729B39 for ; Mon, 6 Aug 2018 19:13:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A9BFF29B3E; Mon, 6 Aug 2018 19:13:08 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 50BEC29B39 for ; Mon, 6 Aug 2018 19:13:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728198AbeHFVXg (ORCPT ); Mon, 6 Aug 2018 17:23:36 -0400 Received: from vsp-unauthed02.binero.net ([195.74.38.227]:22637 "EHLO vsp-unauthed02.binero.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733074AbeHFVXg (ORCPT ); Mon, 6 Aug 2018 17:23:36 -0400 X-Halon-ID: bb9f929c-99ac-11e8-b339-005056917f90 Authorized-sender: niklas@soderlund.pp.se Received: from bismarck.berto.se (unknown [89.233.230.99]) by bin-vsp-out-02.atm.binero.net (Halon) with ESMTPA id bb9f929c-99ac-11e8-b339-005056917f90; Mon, 06 Aug 2018 21:13:03 +0200 (CEST) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: Wolfram Sang , Ulf Hansson , linux-mmc@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= Subject: [PATCH 0/2] mmc: renesas_sdhi: extend quirk selection to handle ES revisions Date: Mon, 6 Aug 2018 21:12:25 +0200 Message-Id: <20180806191227.28401-1-niklas.soderlund+renesas@ragnatech.se> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, Recent datasheet updates have made it clear that some quirks are not SoC specific but SoC + ES version specific. Currently the quirks are selected using compatibility values but whit this new information that is not enough. This small series adds support to select quirks based on SoC + ES revision using soc_device_match(). It handles the only quirk upstreamed so far, selection of 4-taps for HS400 mode on R-CarH3(ES1.0,ES2.0) and R-CarM3W(ES1.0,ES1.1). As this solution makes the compatible selection method obsolete it is removed and all Gen3 compat values now points to the same data structure. The specific compats for H3 and M3-W are however kept in the driver for backward compatibility. Based on mmc/next and tested on H3 ES2.0 and M3-N. Niklas Söderlund (2): mmc: renesas_sdhi: handle 4tap hs400 mode quirk based on SoC revision mmc: renesas_sdhi: align compatibility properties for H3 and M3-W drivers/mmc/host/renesas_sdhi_core.c | 26 +++++++++++++++++++ drivers/mmc/host/renesas_sdhi_internal_dmac.c | 20 ++------------ drivers/mmc/host/renesas_sdhi_sys_dmac.c | 17 ++---------- 3 files changed, 30 insertions(+), 33 deletions(-)